Skip to content

Commit d50a658

Browse files
committed
Use worker-based jsonrpc api key
1 parent 7f1142a commit d50a658

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

operations/staking-rewards-controller-stage.hcl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ job "staking-rewards-controller-stage" {
5656
REWARDS_POOL_KEY="{{.Data.data.STAKING_REWARDS_CONTROLLER_KEY}}"
5757
BUNDLER_NETWORK="{{.Data.data.BUNDLER_NETWORK}}"
5858
BUNDLER_CONTROLLER_KEY="{{.Data.data.STAKING_REWARDS_CONTROLLER_KEY}}"
59-
EVM_JSON_RPC="{{.Data.data.EVM_JSON_RPC}}"
6059
CONSUL_TOKEN_CONTROLLER_CLUSTER="{{.Data.data.CONSUL_TOKEN_CONTROLLER_CLUSTER}}"
6160
{{end}}
6261
@@ -77,6 +76,12 @@ job "staking-rewards-controller-stage" {
7776
{{- end }}
7877
ONIONOO_REQUEST_TIMEOUT="60000"
7978
ONIONOO_REQUEST_MAX_REDIRECTS="3"
79+
80+
{{ $apiKeyPrefix := "api_key_" }}
81+
{{ $allocIndex := env "NOMAD_ALLOC_INDEX" }}
82+
{{ with secret "kv/jsonrpc/stage/operator-registry-controller/infura/eth" }}
83+
EVM_JSON_RPC="https://sepolia.infura.io/v3/{{ index .Data.data (print $apiKeyPrefix $allocIndex) }}"
84+
{{ end }}
8085
EOH
8186
destination = "secrets/file.env"
8287
env = true

0 commit comments

Comments
 (0)