File tree Expand file tree Collapse file tree 7 files changed +46
-6
lines changed Expand file tree Collapse file tree 7 files changed +46
-6
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ helm install [RELEASE_NAME] oci://ghcr.io/chainloop-dev/charts/chainloop \
99
99
# Secrets backend
100
100
--set secretsBackend.backend=gcpSecretManager \
101
101
--set secretsBackend.gcpSecretManager.projectId=[GCP Project ID] \
102
- --set secretsBackend.gcpSecretManager.authKey =[GCP Auth KEY] \
102
+ --set secretsBackend.gcpSecretManager.serviceAccountKey =[GCP Auth KEY] \
103
103
# Server Auth KeyPair
104
104
# ...
105
105
```
@@ -317,7 +317,7 @@ secretsBackend:
317
317
backend: gcpSecretManager
318
318
gcpSecretManager:
319
319
projectId: [PROJECT_ID]
320
- authKey : [KEY]
320
+ serviceAccountKey : [KEY]
321
321
` ` `
322
322
323
323
# ## Send exceptions to Sentry
@@ -370,7 +370,7 @@ chainloop config save \
370
370
| `secretsBackend.awsSecretManager.secretKey` | AWS Secret Key | |
371
371
| `secretsBackend.awsSecretManager.region` | AWS Secret Manager Region | |
372
372
| `secretsBackend.gcpSecretManager.projectId` | GCP Project ID | |
373
- | `secretsBackend.gcpSecretManager.authKey ` | GCP Auth Key | |
373
+ | `secretsBackend.gcpSecretManager.serviceAccountKey ` | GCP Auth Key | |
374
374
375
375
### Authentication
376
376
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ awsSecretManager:
82
82
gcpSecretManager:
83
83
secretPrefix: { { required " secret prefix required" .secretPrefix | quote } }
84
84
projectId: { { required " project id required" .gcpSecretManager.projectId | quote } }
85
- authKey: { { required " auth key required " .gcpSecretManager.authKey | quote } }
85
+ serviceAccountKey: "/gcp-secrets/serviceAccountKey.json"
86
86
87
87
{ {- end } }
88
88
{ {- end } }
Original file line number Diff line number Diff line change 58
58
mountPath : " /data/conf"
59
59
- name : jwt-public-key
60
60
mountPath : " /tmp"
61
+ {{- if eq "gcpSecretManager" .Values.secretsBackend.backend }}
62
+ - name : gcp-secretmanager-serviceaccountkey
63
+ mountPath : /gcp-secrets
64
+ {{- end }}
61
65
volumes :
62
66
- name : config
63
67
projected :
69
73
- name : jwt-public-key
70
74
secret :
71
75
secretName : {{ include "chainloop.cas.fullname" . }}-jwt-public-key
76
+ {{- if eq "gcpSecretManager" .Values.secretsBackend.backend }}
77
+ - name : gcp-secretmanager-serviceaccountkey
78
+ secret :
79
+ secretName : {{ include "chainloop.controlplane.fullname" . }}-gcp-secretmanager-serviceaccountkey
80
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ {{- if eq "gcpSecretManager" .Values.secretsBackend.backend }}
2
+ apiVersion : v1
3
+ kind : Secret
4
+ metadata :
5
+ name : {{ include "chainloop.cas.fullname" . }}-gcp-secretmanager-serviceaccountkey
6
+ labels :
7
+ {{- include "chainloop.cas.labels" . | nindent 4 }}
8
+ type : Opaque
9
+ data :
10
+ serviceAccountKey.json : {{ .Values.secretsBackend.gcpSecretManager.serviceAccountKey | b64enc | quote }}
11
+ {{- end }}
Original file line number Diff line number Diff line change 85
85
mountPath : /tmp
86
86
- name : jwt-cas-private-key
87
87
mountPath : /secrets
88
+ {{- if eq "gcpSecretManager" .Values.secretsBackend.backend }}
89
+ - name : gcp-secretmanager-serviceaccountkey
90
+ mountPath : /gcp-secrets
91
+ {{- end }}
88
92
volumes :
89
93
- name : config
90
94
projected :
99
103
- name : jwt-cas-private-key
100
104
secret :
101
105
secretName : {{ include "chainloop.controlplane.fullname" . }}-jwt-cas
106
+ {{- if eq "gcpSecretManager" .Values.secretsBackend.backend }}
107
+ - name : gcp-secretmanager-serviceaccountkey
108
+ secret :
109
+ secretName : {{ include "chainloop.controlplane.fullname" . }}-gcp-secretmanager-serviceaccountkey
110
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ {{- if eq "gcpSecretManager" .Values.secretsBackend.backend }}
2
+ apiVersion : v1
3
+ kind : Secret
4
+ metadata :
5
+ name : {{ include "chainloop.controlplane.fullname" . }}-gcp-secretmanager-serviceaccountkey
6
+ labels :
7
+ {{- include "chainloop.controlplane.labels" . | nindent 4 }}
8
+ type : Opaque
9
+ data :
10
+ serviceAccountKey.json : {{ .Values.secretsBackend.gcpSecretManager.serviceAccountKey | b64enc | quote }}
11
+ {{- end }}
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ secretsBackend:
55
55
# region: ""
56
56
57
57
# # @extra secretsBackend.gcpSecretManager.projectId GCP Project ID
58
- # # @extra secretsBackend.gcpSecretManager.authKey GCP Auth Key
58
+ # # @extra secretsBackend.gcpSecretManager.serviceAccountKey GCP Auth Key
59
59
# #
60
60
# gcpSecretManager:
61
61
# projectId: ""
62
- # authKey : ""
62
+ # serviceAccountKey : ""
63
63
64
64
# # @section Authentication
65
65
# #
You can’t perform that action at this time.
0 commit comments