Skip to content

Commit

Permalink
attempt to fix secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
matilote committed May 14, 2024
1 parent ed59b1b commit 07a0f96
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions charts/espresso/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,36 @@ data:
index=$(hostname | grep -o -E "[0-9]+$")
echo "Detected Pod Index: $index"
nodes:
normal:
replicaCount: 3
volumeMount: true
externalSecrets:
data:
- secretKey: espresso-sequencer-private-keys-normal-eu
remoteRef:
key: "espresso-sequencer-private-keys-normal"
da:
replicaCount: 0
sqlStorage: false
externalSecrets:
data:
- secretKey: espresso-sequencer-private-keys-da-eu
remoteRef:
key: "espresso-sequencer-private-keys-da"
- secretKey: espresso-sequencer-postgres-da-eu
remoteRef:
key: "espresso-da-db-nethermind-prod-sequencers"

# Construct the variable names
state_key_var="ESPRESSO_SEQUENCER_PRIVATE_STATE_KEY_$index"
staking_key_var="ESPRESSO_SEQUENCER_PRIVATE_STAKING_KEY_$index"
key_prefix="espresso-sequencer-private-keys-{{ $type }}="
key_prefix="{{ index $specs.externalSecrets.data $index | first | quote }}="
{{- if $specs.sqlStorage }}
postgres_host_var="ESPRESSO_SEQUENCER_POSTGRES_HOST"
postgres_user_var="ESPRESSO_SEQUENCER_POSTGRES_USER"
postgres_pass_var="ESPRESSO_SEQUENCER_POSTGRES_PASSWORD"
postgres_prefix="espresso-sequencer-postgres-{{ $type }}="
postgres_prefix="espresso-sequencer-postgres-{{ index $specs.externalSecrets.data $index | first | quote }}="
{{- end }}

# Process each key and write to the .env file
Expand Down

0 comments on commit 07a0f96

Please sign in to comment.