File tree Expand file tree Collapse file tree 15 files changed +19
-16
lines changed
multi-user-signing/metadata
online-version-bump/metadata
root-key-rotation/metadata
signing-event-creation/metadata
target-file-changes/metadata
target-files-in-delegated-roles/metadata Expand file tree Collapse file tree 15 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ def _collect_online_key(user_config: User) -> Key:
260260 if choice == 0 :
261261 # This could be generic support, but for now it's a hidden test key.
262262 # key value 1d9a024348e413892aeeb8cc8449309c152f48177200ee61a02ae56f450c6480
263- uri = "envvar:LOCAL_TESTING_KEY "
263+ uri = f"file2: { os . getenv ( 'TUF_ON_CI_TEST_KEY' ) } "
264264 pub_key = "fa472895c9756c2b9bcd1440bf867d0fa5c4edee79e9792fa9822be3dd6fcbb3"
265265 return SSlibKey (
266266 "fa47289" ,
Original file line number Diff line number Diff line change 1616# Python dependencies
1717# * signer: pip install ./signer/
1818# * repo: pip install ./repo/
19- # * pynacl: pip install pynacl # for the testing ed25519 key
2019#
2120#
2221# Set DEBUG_TESTS=1 for more visibility. This will leave the temp directories in place.
@@ -519,7 +518,7 @@ repo_online_sign()
519518
520519 cd $REPO_GIT
521520
522- if LOCAL_TESTING_KEY= $ONLINE_KEY tuf-on-ci-online-sign --push >> $REPO_DIR /out 2>&1 ; then
521+ if tuf-on-ci-online-sign --push >> $REPO_DIR /out 2>&1 ; then
523522 echo " generated=true" >> $REPO_DIR /out
524523 else
525524 echo " generated=false" >> $REPO_DIR /out
@@ -917,7 +916,9 @@ export TZ="UTC"
917916WORK_DIR=$( mktemp -d)
918917SCRIPT_DIR=$( dirname $( readlink -f " $0 " ) )
919918
920- ONLINE_KEY=" 1d9a024348e413892aeeb8cc8449309c152f48177200ee61a02ae56f450c6480"
919+ # setup online signing workaround with file based key
920+ export TUF_ON_CI_TEST_KEY=online-test-key
921+ export CRYPTO_SIGNER_PATH_PREFIX=$SCRIPT_DIR
921922
922923# Run tests
923924test_basic
Original file line number Diff line number Diff line change 2424 "public" : " fa472895c9756c2b9bcd1440bf867d0fa5c4edee79e9792fa9822be3dd6fcbb3"
2525 },
2626 "scheme" : " ed25519" ,
27- "x-tuf-on-ci-online-uri" : " envvar:LOCAL_TESTING_KEY "
27+ "x-tuf-on-ci-online-uri" : " file2:online-test-key "
2828 }
2929 },
3030 "roles" : {
Original file line number Diff line number Diff line change 2424 "public" : " fa472895c9756c2b9bcd1440bf867d0fa5c4edee79e9792fa9822be3dd6fcbb3"
2525 },
2626 "scheme" : " ed25519" ,
27- "x-tuf-on-ci-online-uri" : " envvar:LOCAL_TESTING_KEY "
27+ "x-tuf-on-ci-online-uri" : " file2:online-test-key "
2828 }
2929 },
3030 "roles" : {
Original file line number Diff line number Diff line change 3232 "public" : " fa472895c9756c2b9bcd1440bf867d0fa5c4edee79e9792fa9822be3dd6fcbb3"
3333 },
3434 "scheme" : " ed25519" ,
35- "x-tuf-on-ci-online-uri" : " envvar:LOCAL_TESTING_KEY "
35+ "x-tuf-on-ci-online-uri" : " file2:online-test-key "
3636 }
3737 },
3838 "roles" : {
Original file line number Diff line number Diff line change 3232 "public" : " fa472895c9756c2b9bcd1440bf867d0fa5c4edee79e9792fa9822be3dd6fcbb3"
3333 },
3434 "scheme" : " ed25519" ,
35- "x-tuf-on-ci-online-uri" : " envvar:LOCAL_TESTING_KEY "
35+ "x-tuf-on-ci-online-uri" : " file2:online-test-key "
3636 }
3737 },
3838 "roles" : {
Original file line number Diff line number Diff line change 2424 "public" : " fa472895c9756c2b9bcd1440bf867d0fa5c4edee79e9792fa9822be3dd6fcbb3"
2525 },
2626 "scheme" : " ed25519" ,
27- "x-tuf-on-ci-online-uri" : " envvar:LOCAL_TESTING_KEY "
27+ "x-tuf-on-ci-online-uri" : " file2:online-test-key "
2828 }
2929 },
3030 "roles" : {
Original file line number Diff line number Diff line change 2424 "public" : " fa472895c9756c2b9bcd1440bf867d0fa5c4edee79e9792fa9822be3dd6fcbb3"
2525 },
2626 "scheme" : " ed25519" ,
27- "x-tuf-on-ci-online-uri" : " envvar:LOCAL_TESTING_KEY "
27+ "x-tuf-on-ci-online-uri" : " file2:online-test-key "
2828 }
2929 },
3030 "roles" : {
Original file line number Diff line number Diff line change 3636 "public" : " fa472895c9756c2b9bcd1440bf867d0fa5c4edee79e9792fa9822be3dd6fcbb3"
3737 },
3838 "scheme" : " ed25519" ,
39- "x-tuf-on-ci-online-uri" : " envvar:LOCAL_TESTING_KEY "
39+ "x-tuf-on-ci-online-uri" : " file2:online-test-key "
4040 }
4141 },
4242 "roles" : {
Original file line number Diff line number Diff line change 2424 "public" : " fa472895c9756c2b9bcd1440bf867d0fa5c4edee79e9792fa9822be3dd6fcbb3"
2525 },
2626 "scheme" : " ed25519" ,
27- "x-tuf-on-ci-online-uri" : " envvar:LOCAL_TESTING_KEY "
27+ "x-tuf-on-ci-online-uri" : " file2:online-test-key "
2828 }
2929 },
3030 "roles" : {
You can’t perform that action at this time.
0 commit comments