Skip to content

Commit 74c1683

Browse files
Allow online keys for targets role.
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
1 parent 36e58b8 commit 74c1683

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

signer/tuf_on_ci_sign/delegate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def verify_signers(response: str) -> list[str]:
9292
if choice == 0:
9393
break
9494
if choice == 1:
95-
# if role is not root or targets, allow online keys
96-
if role in ["root", "targets"]:
95+
# if role is not root, allow online keys
96+
if role in ["root"]:
9797
config.signers = click.prompt(
9898
bold(f"Please enter list of {role} signers"),
9999
default=", ".join(config.signers),

tests/e2e.sh

+1
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ signer_init_multiuser()
287287
INPUT=(
288288
"" # Configure root? [enter to continue]
289289
"1" # Configure targets? [1: configure signers]
290+
"1" # Chose offline signer
290291
"@tuf-on-ci-user1, @tuf-on-ci-user2" # Enter signers
291292
"2" # Enter threshold
292293
"" # Configure targets? [enter to continue]

0 commit comments

Comments
 (0)