The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hyperlane-monorepo/rust/helm/abacus-agent/templates/processor-external-secret.yaml

35 lines
1.1 KiB

apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
name: {{ include "abacus-agent.fullname" . }}-processor-external-secret
labels:
{{- include "abacus-agent.labels" . | nindent 4 }}
spec:
secretStoreRef:
name: {{ include "abacus-agent.cluster-secret-store.name" . }}
kind: ClusterSecretStore
refreshInterval: "1h"
# The secret that will be created
target:
name: {{ include "abacus-agent.fullname" . }}-processor-secret
template:
type: Opaque
metadata:
labels:
{{- include "abacus-agent.labels" . | nindent 10 }}
data:
{{- range .Values.abacus.processor.transactionSigners }}
{{- if not (hasKey . "aws") }}
OPT_BASE_SIGNERS_{{ .name | upper }}_KEY: {{ printf "'{{ .transaction_signer_%s_key | toString }}'" .name }}
{{- end }}
{{- end }}
data:
{{- range .Values.abacus.processor.transactionSigners }}
{{- if not (hasKey . "aws") }}
- secretKey: {{ printf "transaction_signer_%s_key" .name }}
remoteRef:
key: {{ printf "abacus-key-%s-processor-signer" $.Values.abacus.runEnv }}
property: privateKey
{{- end }}
{{- end }}