diff --git a/cloudsmith_cli/cli/commands/upstream.py b/cloudsmith_cli/cli/commands/upstream.py index d6252613..902006fb 100644 --- a/cloudsmith_cli/cli/commands/upstream.py +++ b/cloudsmith_cli/cli/commands/upstream.py @@ -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", + ) + ) + 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") + ) + if upstream_fmt == "deb": # `Component`, `Distribution Versions` and `Upstream Distribution` are deb-only row.append(click.style(str(u.get("component", None)), fg="yellow")) @@ -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")