Skip to content

Commit 24b6fd0

Browse files
modify alpine upstream rsa fields
1 parent ab00984 commit 24b6fd0

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

cloudsmith_cli/cli/commands/upstream.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ def build_row(u):
6666
click.style(fmt_bool(u["verify_ssl"]), fg="green"),
6767
]
6868

69+
if upstream_fmt == "alpine":
70+
# RSA verification fields are alpine-only
71+
row.append(
72+
click.style(
73+
maybe_truncate_string(str(u.get("rsa_key_inline", "") or "")),
74+
fg="yellow",
75+
)
76+
)
77+
row.append(click.style(str(u.get("rsa_key_url", "") or ""), fg="yellow"))
78+
row.append(click.style(str(u.get("rsa_verification", "")), fg="yellow"))
79+
row.append(
80+
click.style(str(u.get("rsa_verification_status", "")), fg="yellow")
81+
)
82+
6983
if upstream_fmt == "deb":
7084
# `Component`, `Distribution Versions` and `Upstream Distribution` are deb-only
7185
row.append(click.style(str(u.get("component", None)), fg="yellow"))
@@ -104,6 +118,12 @@ def build_row(u):
104118
"Verify SSL",
105119
]
106120

121+
if upstream_fmt == "alpine":
122+
headers.append("RSA Key Inline")
123+
headers.append("RSA Key URL")
124+
headers.append("RSA Verification")
125+
headers.append("RSA Verification Status")
126+
107127
if upstream_fmt == "deb":
108128
headers.append("Component")
109129
headers.append("Distribution Versions")

0 commit comments

Comments
 (0)