Skip to content

feat(ENG-11221): modify alpine upstream rsa fields - #284

Open
poconnor-cloud wants to merge 5 commits into
masterfrom
ENG-11221-poconnor-alpine-rsa-cli
Open

feat(ENG-11221): modify alpine upstream rsa fields#284
poconnor-cloud wants to merge 5 commits into
masterfrom
ENG-11221-poconnor-alpine-rsa-cli

Conversation

@poconnor-cloud

Copy link
Copy Markdown

Description

Add CLI support for the new RSA signature verification fields on Alpine upstreams. The web-server API now exposes rsa_key_inline, rsa_key_url, rsa_verification, and rsa_verification_status on Alpine upstream configs. This change surfaces those fields in the cloudsmith upstream alpine ls table output.

Create and update commands require no changes since they pass JSON config directly to the API.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring
  • Other (please describe)

Additional Notes

Requires a cloudsmith-api SDK bump when the new SDK version ships with the updated AlpineUpstream model; until then, the fields will gracefully show empty strings via

Copilot AI review requested due to automatic review settings April 8, 2026 18:34
@poconnor-cloud
poconnor-cloud requested a review from a team as a code owner April 8, 2026 18:34

Copilot AI 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

Adds CLI table output support for Alpine upstream RSA signature verification fields, aligning cloudsmith upstream alpine ls with newly exposed API configuration properties.

Changes:

  • Appends Alpine-only RSA fields to upstream table rows (rsa_key_inline, rsa_key_url, rsa_verification, rsa_verification_status).
  • Adds corresponding Alpine-only table headers for the new RSA fields.

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

Comment thread cloudsmith_cli/cli/commands/upstream.py Outdated
Comment thread cloudsmith_cli/cli/commands/upstream.py
@poconnor-cloud poconnor-cloud changed the title modify alpine upstream rsa fields feat(ENG-11221): modify alpine upstream rsa fields Apr 8, 2026
@apoclyps

apoclyps commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

It's worth moving this one back to draft, as without the update to the cloudsmith-api bindings, these changes won't exist yet. Once the API changes are merged, then a new set of bindings can be generated within

@apoclyps
apoclyps requested a review from a team April 9, 2026 07:56
@poconnor-cloud
poconnor-cloud marked this pull request as draft April 9, 2026 08:14
@BartoszBlizniak
BartoszBlizniak requested a balanced review from Copilot August 26, 2026 15:07

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

BartoszBlizniak and others added 2 commits August 26, 2026 17:10
- Simplify the alpine RSA field null-coalescing in print_upstreams()
  to the single `u.get(...) or ""` idiom already used elsewhere in
  build_row(), and truncate rsa_key_url like the other unbounded
  upstream_url/rsa_key_inline columns for consistent table widths.
- Add the missing @pytest.mark.integration marker to
  test_alpine_upstream_ls_pretty_rsa_columns, which calls the live
  Cloudsmith API but was previously running in neither the unit nor
  the integration CI job.
- Give rsa_key_url a value distinct from upstream_url so the
  assertion can actually catch a dropped RSA Key URL column, replace
  the tautological "RSA Verification"/"RSA Verification Status"
  substring asserts with a single occurrence count, and assert on
  rendered rsa_verification/rsa_verification_status values to cover
  the two remaining untested RSA columns.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Copilot AI 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

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

@BartoszBlizniak
BartoszBlizniak marked this pull request as ready for review August 26, 2026 16:22
@apoclyps apoclyps self-assigned this Aug 26, 2026
@apoclyps
apoclyps self-requested a review August 26, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants