Skip to content

Commit

Permalink
Merge pull request #136 from anchore/use_env_for_tokens
Browse files Browse the repository at this point in the history
Use env for tokens
  • Loading branch information
Btodhunter authored Apr 27, 2021
2 parents 25d17d4 + b054c3a commit 277717b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/anchore-engine/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: anchore-engine
version: 1.12.10
version: 1.12.11
appVersion: 0.9.3
description: Anchore container analysis and policy evaluation engine service
keywords:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ data:
enabled: {{ default "true" .Values.anchoreEnterpriseFeeds.vulndbDriverEnabled }}
msrc:
enabled: {{ .Values.anchoreEnterpriseFeeds.msrcDriverEnabled }}
api_key: {{ .Values.anchoreEnterpriseFeeds.msrcApiKey }}
api_key: ${ANCHORE_MSRC_KEY}
{{- with .Values.anchoreEnterpriseFeeds.msrcWhitelist }}
whitelist:
- {{ . }}
{{- end }}
github:
enabled: {{ .Values.anchoreEnterpriseFeeds.githubDriverEnabled }}
token: {{ .Values.anchoreEnterpriseFeeds.githubDriverToken }}
token: ${ANCHORE_GITHUB_TOKEN}
{{- if .Values.anchoreGlobal.internalServicesSsl.enabled }}
ssl_enable: {{ .Values.anchoreGlobal.internalServicesSsl.enabled }}
ssl_cert: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}"
Expand Down
6 changes: 6 additions & 0 deletions stable/anchore-engine/templates/enterprise_feeds_secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ stringData:
{{- with .Values.anchoreGlobal.saml.secret }}
ANCHORE_SAML_SECRET: {{ . }}
{{- end }}
{{- with .Values.anchoreEnterpriseFeeds.msrcApiKey }}
ANCHORE_MSRC_KEY: {{ . | quote }}
{{- end }}
{{- with .Values.anchoreEnterpriseFeeds.githubDriverToken }}
ANCHORE_GITHUB_TOKEN: {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 277717b

Please sign in to comment.