Skip to content

Commit 6c00f29

Browse files
authored
fix(vpn-indexer): secrets for AWS credentials and backend URLs (#238)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 00a2227 commit 6c00f29

File tree

4 files changed

+59
-1
lines changed

4 files changed

+59
-1
lines changed

charts/vpn-indexer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: vpn-indexer
33
description: VPN indexer helm chart
44
type: application
55

6-
version: 0.5.0
6+
version: 0.5.1
77

88
appVersion: "0.5.0"
99

charts/vpn-indexer/templates/secret.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,23 @@ metadata:
55
name: {{ include "vpn-indexer.fullname" . }}
66
type: Opaque
77
data:
8+
{{- with .Values.s3.accessKey }}
9+
aws_access_key_id: {{ b64enc . }}
10+
{{- end }}
11+
{{- with .Values.s3.secretKey }}
12+
aws_secret_access_key: {{ b64enc . }}
13+
{{- end }}
814
ca.crt: {{ b64enc .Values.ca.cert }}
915
ca.key: {{ b64enc .Values.ca.key }}
1016
{{- with .Values.ca.passphrase }}
1117
ca.passphrase: {{ b64enc . }}
1218
{{- end }}
19+
{{- with .Values.tx.kupoUrl }}
20+
kupo_url: {{ b64enc . }}
21+
{{- end }}
22+
{{- with .Values.tx.ogmiosUrl }}
23+
ogmios_url: {{ b64enc . }}
24+
{{- end }}
25+
{{- with .Values.tx.submitUrl }}
26+
submit_url: {{ b64enc . }}
27+
{{- end }}

charts/vpn-indexer/templates/statefulset.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,41 @@ spec:
9595
- name: VPN_PORT
9696
value: {{ . }}
9797
{{- end }}
98+
{{- with .Values.s3.accessKey }}
99+
- name: AWS_ACCESS_KEY_ID
100+
valueFrom:
101+
secretKeyRef:
102+
name: secrets
103+
key: aws_access_key_id
104+
{{- end }}
105+
{{- with .Values.s3.secretKey }}
106+
- name: AWS_SECRET_ACCESS_KEY
107+
valueFrom:
108+
secretKeyRef:
109+
name: secrets
110+
key: aws_secret_access_key
111+
{{- end }}
112+
{{- with .Values.tx.kupoUrl }}
113+
- name: TXBUILDER_KUPO_URL
114+
valueFrom:
115+
secretKeyRef:
116+
name: secrets
117+
key: kupo_url
118+
{{- end }}
119+
{{- with .Values.tx.ogmiosUrl }}
120+
- name: TXBUILDER_OGMIOS_URL
121+
valueFrom:
122+
secretKeyRef:
123+
name: secrets
124+
key: ogmios_url
125+
{{- end }}
126+
{{- with .Values.tx.submitUrl }}
127+
- name: TXBUILDER_SUBMIT_URL
128+
valueFrom:
129+
secretKeyRef:
130+
name: secrets
131+
key: submit_url
132+
{{- end }}
98133
{{- range $k, $v := .Values.extraEnv }}
99134
- name: {{ $k }}
100135
value: {{ $v }}

charts/vpn-indexer/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,18 @@ crl: {}
9090
# revokeTime:
9191

9292
s3: {}
93+
# accessKey:
94+
# secretKey:
95+
# region:
9396
# clientBucket:
9497
# clientKeyPrefix:
9598
# endpoint:
9699

100+
tx: {}
101+
# kupoUrl
102+
# ogmiosUrl
103+
# submitUrl
104+
97105
vpn: {}
98106
# domain:
99107
# region:

0 commit comments

Comments
 (0)