Skip to content

Commit

Permalink
authorized keys deployed in activation as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Oct 23, 2023
1 parent 913c0ec commit 9a93bc2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/config-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ def expose_secret_key(account_name):
pod. It returns the obvious Boolean.
"""
if MY_POD_TYPE == "activating":
all_authorized_keys = [key for node in NODES.values() for instance in node['instances'] for key in instance['authorized_keys']]
if account_name in all_authorized_keys:
# populate all known authorized keys in the activation account.
# This avoids annoying edge cases for activating private chains, when security is not critical.
return True
return NETWORK_CONFIG["activation_account_name"] == account_name

if MY_POD_TYPE == "signing":
Expand Down

0 comments on commit 9a93bc2

Please sign in to comment.