Skip to content

Commit

Permalink
Merge pull request #92 from Cpcrook/feature/#91-azurekms-support
Browse files Browse the repository at this point in the history
Feature/#91 azurekms support
  • Loading branch information
maraino authored Feb 18, 2022
2 parents 59914f9 + 54e1443 commit 8a9685b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions step-certificates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ chart and their default values.
| `ca.db.accessModes` | Persistent volume access mode | `["ReadWriteOnce"]` |
| `ca.db.size` | Persistent volume size | `10Gi` |
| `ca.db.existingClaim` | Persistent volume existing claim name. If defined, PVC must be created manually before volume will be bound | `""` |
| `ca.kms` | Key management system to use. | `""` |
| `ca.env` | Environment variables to set in `step-certificates` container. | `[]` |
| `ca.runAsRoot` | Run the CA as root. | `false` |
| `ca.bootstrap.postInitHook` | Extra script snippet to run after `step ca init` has completed. | `""` |
| `linkedca.token` | The token used to configure step-ca using the linkedca mode. | `""` |
Expand Down
3 changes: 3 additions & 0 deletions step-certificates/templates/ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ spec:
env:
- name: NAMESPACE
value: "{{ .Release.Namespace }}"
{{- if .Values.ca.env }}
{{- toYaml .Values.ca.env | nindent 10 }}
{{- end }}
{{- if or .Values.linkedca.token (and .Values.linkedca.secretKeyRef.name .Values.linkedca.secretKeyRef.key) }}
- name: STEP_CA_TOKEN
valueFrom:
Expand Down
1 change: 1 addition & 0 deletions step-certificates/templates/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ data:
--provisioner "{{.Values.ca.provisioner.name}}" \
--with-ca-url "{{include "step-certificates.url" .}}" \
--password-file "$TMP_CA_PASSWORD" \
{{ if not (eq .Values.ca.kms.type "") }}--kms="{{.Values.ca.kms.type}}" \{{ end }}
--provisioner-password-file "$TMP_CA_PROVISIONER_PASSWORD" {{ if not .Values.ca.db.enabled }}--no-db{{ end }}
rm -f $TMP_CA_PASSWORD $TMP_CA_PROVISIONER_PASSWORD
Expand Down
6 changes: 5 additions & 1 deletion step-certificates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ ca:
name: admin
# password is the password used to encrypt the provisioner private key.
password:
# db contains the step-certificate dataabase configuration.
# db contains the step-certificate database configuration.
db:
# enabled defines if the database is enabled.
enabled: true
Expand All @@ -257,6 +257,10 @@ ca:
- ReadWriteOnce
# size is the Persistent Volume size.
size: 10Gi
# kms type to utilize
kms: ""
# additional environment variables to set in the step-certificates container
env: []
# runAsRoot runs the ca as root instead of the step user. This is required in
# some storage provisioners.
runAsRoot: false
Expand Down

0 comments on commit 8a9685b

Please sign in to comment.