This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds AWS KMS KeyManager support (#435)
Co-authored-by: Marco Franssen <marco.franssen@gmail.com> Co-authored-by: kfox1111 <Kevin.Fox@pnnl.gov>
- Loading branch information
1 parent
77fe43f
commit 5e2e8a9
Showing
8 changed files
with
110 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
bin/ | ||
.idea/ | ||
.vscode/ | ||
*.swp | ||
charts/**/*.tgz | ||
.DS_Store |
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
10 changes: 10 additions & 0 deletions
10
charts/spire/charts/spire-server/templates/aws-kms-configmap.yaml
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,10 @@ | ||
{{- if ne .Values.keyManager.awsKMS.keyPolicy.policy "" }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "spire-server.fullname" . }}-aws-kms | ||
namespace: {{ include "spire-server.namespace" . }} | ||
data: | ||
policy.json: | | ||
{{ .Values.keyManager.awsKMS.keyPolicy.policy | nindent 4 }} | ||
{{- end }} |
17 changes: 17 additions & 0 deletions
17
charts/spire/charts/spire-server/templates/aws-kms-secret.yaml
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,17 @@ | ||
{{- $root := . }} | ||
{{- with .Values.keyManager.awsKMS }} | ||
{{- if or (ne .accessKeyID "") (ne .secretAccessKey "") }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "spire-server.fullname" $root }}-aws-kms | ||
namespace: {{ include "spire-server.namespace" $root }} | ||
data: | ||
{{- if ne .accessKeyID "" }} | ||
AWS_KMS_ACCESS_KEY_ID: {{ .accessKeyID | b64enc }} | ||
{{- end }} | ||
{{- if ne .secretAccessKey "" }} | ||
AWS_KMS_SECRET_ACCESS_KEY: {{ .secretAccessKey | b64enc }} | ||
{{- end }} | ||
{{- end }} | ||
{{- 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