Skip to content

release: cloudsmith-cli v1.21.0 - #343

Merged
BartoszBlizniak merged 2 commits into
masterfrom
release/cloudsmith-cli-v1.21.0
Aug 3, 2026
Merged

release: cloudsmith-cli v1.21.0#343
BartoszBlizniak merged 2 commits into
masterfrom
release/cloudsmith-cli-v1.21.0

Conversation

@BartoszBlizniak

@BartoszBlizniakBartoszBlizniak commented Aug 3, 2026

Copy link
Copy Markdown
Member

Description

Release Cloudsmith CLI v1.21.0 and add the generic credential-helper command.

The changes were merged into the custom domain PR due to the re-pointing of stacked PRs, so I'm just bringing this over as part of the release here and will update the stack branch accordingly.

cloudsmith credential-helper generic resolves the effective credential through the CLI's existing provider chain and emits a versioned JSON document for subprocess consumers:

{"version": 1, "username": "token", "password": "<resolved credential>"}

The command:

  • uses the existing credential precedence: CLI flag, environment, credentials.ini, system keyring, then OIDC;
  • writes the complete credential document to standard output in one operation;

The release updates the packaged version and bumpversion configuration from
1.20.2 to 1.21.0, with a matching changelog entry.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring
  • Other: minor release

Additional Notes

cloudsmith-iduffyand others added 2 commits August 3, 2026 13:04
Emits a resolved credential as a versioned JSON document on stdout, so tools that cannot import the CLI can still authenticate through the full provider chain (API key, credentials.ini, system keyring, OIDC).
The command takes no arguments because a Cloudsmith token is organisation-wide, so the host where it will be used does not change which credential resolves.
The document is serialised in one step and a single broad exception guard protects the protocol boundary, so subprocess consumers never receive a partial document or traceback. Refusals exit non-zero with a human-readable line on stderr and nothing on stdout. The CLI wiring tests resolve from --api-key, so they never read a developer's real credentials.ini or keyring.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@BartoszBlizniakBartoszBlizniak changed the title Release/cloudsmith cli v1.21.0 release: cloudsmith-cli v1.21.0Aug 3, 2026
@BartoszBlizniak
BartoszBlizniak marked this pull request as ready for review August 3, 2026 12:37
CopilotAI review requested due to automatic review settings August 3, 2026 12:37
@BartoszBlizniak
BartoszBlizniak requested a review from a team as a code ownerAugust 3, 2026 12:37

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Releases Cloudsmith CLI v1.21.0 and introduces a new cloudsmith credential-helper generic subcommand intended for subprocess consumers, emitting a versioned JSON credential document resolved via the existing credential provider chain.

Changes:

  • Bump packaged CLI version to 1.21.0 and update bumpversion configuration.
  • Add credential-helper generic command and runtime to emit a versioned JSON credential document.
  • Add unit tests and a changelog entry documenting the new helper and release.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
cloudsmith_cli/data/VERSIONBumps packaged CLI version to 1.21.0.
.bumpversion.cfgUpdates bumpversion current_version to 1.21.0.
CHANGELOG.mdAdds 1.21.0 release entry describing the new generic credential helper.
cloudsmith_cli/credential_helpers/generic.pyImplements generic helper runtime that returns a versioned JSON document (or refusal).
cloudsmith_cli/cli/commands/credential_helper/generic.pyAdds the Click command wrapper that wires resolved credentials into the generic helper runtime.
cloudsmith_cli/cli/commands/credential_helper/init.pyRegisters the new generic subcommand under credential-helper.
cloudsmith_cli/cli/tests/commands/test_credential_helper_generic.pyAdds tests for the runtime contract and CLI wiring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadcloudsmith_cli/credential_helpers/generic.py
Comment threadcloudsmith_cli/credential_helpers/generic.py
@BartoszBlizniak
BartoszBlizniak merged commit ca3819c into masterAug 3, 2026
27 checks passed
@BartoszBlizniak
BartoszBlizniak deleted the release/cloudsmith-cli-v1.21.0 branch August 3, 2026 14:09
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@BartoszBlizniak@estebangarcia@cloudsmith-iduffy