diff --git a/utils/config-generator.py b/utils/config-generator.py index 4b9d3ab81..eecaedf2b 100755 --- a/utils/config-generator.py +++ b/utils/config-generator.py @@ -232,9 +232,6 @@ def fill_in_missing_accounts(): baker_values["bake_using_account"] = None baker_values["bake_using_accounts"] = accts - # add authorized_keys if any, so signing requests can be auth'd - accts = [ *accts, *baker_values.get["authorized_keys"] ] - for acct in accts: if acct not in ACCOUNTS: print(f"Creating account: {acct}") @@ -343,6 +340,8 @@ def expose_secret_key(account_name): if MY_POD_TYPE == "node": if MY_POD_CONFIG.get("bake_using_account", "") == account_name: return True + if account_name in MY_POD_CONFIG.get("authorized_keys", {}): + return True return account_name in MY_POD_CONFIG.get("bake_using_accounts", {}) return False