Skip to content

Commit

Permalink
only load needed private key in injector
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Dec 13, 2023
1 parent 6b1551c commit a1acea7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,13 @@ dalNodes: {}
# storageSize: 50Gi
# attesterProfiles: tz1foXHgRzdYdaLgX6XhpZGxbBv42LZ6ubvE

# Optional - a pod that injects slots for DAL - will go away once rollups do it
#dal_deploy_slot_injector:
# enabled: true
# inject_using_account: mybaker
# node_rpc_url: http://tezos-baking-node-0.tezos-baking-node:8732
# dal_node_rpc_url: http://dal1:10732

# When spinning up nodes, tezos-k8s will attempt to download a snapshot from a
# known source. This should be a url to a json metadata file in the format
# xtz-shots uses. If you want to sync from scratch or for a private chain, set
Expand Down
5 changes: 3 additions & 2 deletions utils/config-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,11 @@ def expose_secret_key(account_name):
if MY_POD_TYPE == "signing":
return account_name in MY_POD_CONFIG.get("accounts")

if MY_POD_TYPE == "rollup":
if MY_POD_TYPE in [ "rollup", "slot-injector" ]:
return account_name == MY_POD_CONFIG.get("operator_account")
if MY_POD_TYPE == "slot-injector":
return True
# deploy all secret keys
return account_name == os.environ["INJECTOR_ACCOUNT"]

if MY_POD_TYPE in ["node", "baker"]:
baking_account = MY_POD_CONFIG.get("bake_using_account", "")
Expand Down

0 comments on commit a1acea7

Please sign in to comment.