Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions cloudsmith_cli/cli/commands/upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,20 @@ def build_row(u):
click.style(fmt_bool(u["verify_ssl"]), fg="green"),
]

if upstream_fmt == "alpine":
# RSA verification fields are alpine-only
row.append(
click.style(
maybe_truncate_string(str(u.get("rsa_key_inline", "") or "")),
fg="yellow",
)
)
Comment thread
poconnor-cloud marked this conversation as resolved.
row.append(click.style(str(u.get("rsa_key_url", "") or ""), fg="yellow"))
row.append(click.style(str(u.get("rsa_verification", "")), fg="yellow"))
row.append(
click.style(str(u.get("rsa_verification_status", "")), fg="yellow")
)
Comment thread
poconnor-cloud marked this conversation as resolved.
Outdated

if upstream_fmt == "deb":
# `Component`, `Distribution Versions` and `Upstream Distribution` are deb-only
row.append(click.style(str(u.get("component", None)), fg="yellow"))
Expand Down Expand Up @@ -104,6 +118,12 @@ def build_row(u):
"Verify SSL",
]

if upstream_fmt == "alpine":
headers.append("RSA Key Inline")
headers.append("RSA Key URL")
headers.append("RSA Verification")
headers.append("RSA Verification Status")

if upstream_fmt == "deb":
headers.append("Component")
headers.append("Distribution Versions")
Expand Down
Loading