-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move secrets to secrets resource (#82)
This PR moves the NATS token and `accessToken.soure.clientCredentials.clientSecret` out from the configMap and into secrets loaded as environment variables in the container. FileToken.TokenPath gets flagged by secrets scanners despite it not being a sensitive credential, so that got renamed to just `File` which still makes sense in the config path `accessToken.source.file.tokenPath`. AccessToken was also giving chart consumers trouble with security scans Signed-off-by: Adam Mohammed <admohammed@equinix.com>
- Loading branch information
1 parent
fd273cb
commit bc97b30
Showing
8 changed files
with
69 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- define "iam-runtime-infratographer.secrets" }} | ||
{{- $values := (index .Subcharts "iam-runtime-infratographer").Values -}} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "iam-runtime-infratographer.resource.fullname" (dict "suffix" "secrets" "context" $) | quote }} | ||
labels: {{- include "common.labels.standard" $ | nindent 4 }} | ||
data: | ||
natsToken: {{ $values.secrets.nats.token | quote }} | ||
clientSecret: {{ $values.secrets.accessToken.source.clientSecret | quote }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters