Skip to content

Commit

Permalink
Merge pull request #832 from sfox-equinix/rekor-aws-kms-support
Browse files Browse the repository at this point in the history
rekor: Added support for AWS KMS settings.
  • Loading branch information
bobcallaway authored Sep 10, 2024
2 parents b45eef7 + 54964e0 commit 5e78385
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/rekor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Part of the sigstore project, Rekor is a timestamping server and tr

type: application

version: 1.4.8
version: 1.5.0
appVersion: 1.3.6

keywords:
Expand Down
5 changes: 4 additions & 1 deletion charts/rekor/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# rekor

![Version: 1.4.8](https://img.shields.io/badge/Version-1.4.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.6](https://img.shields.io/badge/AppVersion-1.3.6-informational?style=flat-square)
![Version: 1.5.0](https://img.shields.io/badge/Version-1.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.6](https://img.shields.io/badge/AppVersion-1.3.6-informational?style=flat-square)

Part of the sigstore project, Rekor is a timestamping server and transparency log for storing signatures, as well as an API based server for validation

Expand Down Expand Up @@ -144,6 +144,8 @@ Part of the sigstore project, Rekor is a timestamping server and transparency lo
| server.attestation_storage.persistence.size | string | `"5Gi"` | |
| server.attestation_storage.persistence.storageClass | string | `""` | |
| server.attestation_storage.persistence.subPath | string | `""` | |
| server.awsKmsCredentialsSecretName | string | `"aws-kms-credentials"` | kubernetes secret name containing IAM credentials for use with AWS KMS |
| server.awsKmsRegion | string | `"us-east-1"` | AWS region if using AWS KMS for signing key |
| server.config.key | string | `"treeID"` | |
| server.config.treeID | string | `""` | |
| server.enabled | bool | `true` | |
Expand All @@ -170,6 +172,7 @@ Part of the sigstore project, Rekor is a timestamping server and transparency lo
| server.ingresses[0].name | string | `"gce-ingress"` | |
| server.ingresses[0].staticGlobalIP | string | `"lb-ext-ip"` | |
| server.ingresses[0].tls | list | `[]` | |
| server.kmsType | string | `"none"` | KMS type for signing key (possible values: "" / "none", "aws") |
| server.livenessProbe.failureThreshold | int | `3` | |
| server.livenessProbe.httpGet.path | string | `"/ping"` | |
| server.livenessProbe.httpGet.port | int | `3000` | |
Expand Down
14 changes: 14 additions & 0 deletions charts/rekor/templates/server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,20 @@ spec:
{{- if eq (.Values.server.searchIndex).storageProvider "mysql" }}
{{- include "searchIndex.mysql.envCredentials" . | indent 12 }}
{{- end }}
{{- if eq .Values.server.kmsType "aws" }}
- name: AWS_DEFAULT_REGION
value: {{ .Values.server.awsKmsRegion }}
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: {{ .Values.server.awsKmsCredentialsSecretName }}
key: accessKeyId
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ .Values.server.awsKmsCredentialsSecretName }}
key: secretAccessKey
{{- end }}
args:
{{ include "rekor.server.args" . | indent 12 }}
ports:
Expand Down
9 changes: 9 additions & 0 deletions charts/rekor/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,12 @@
},
"type": "object"
},
"awsKmsCredentialsSecretName": {
"type": "string"
},
"awsKmsRegion": {
"type": "string"
},
"config": {
"properties": {
"key": {
Expand Down Expand Up @@ -698,6 +704,9 @@
},
"type": "array"
},
"kmsType": {
"type": "string"
},
"livenessProbe": {
"properties": {
"failureThreshold": {
Expand Down
6 changes: 6 additions & 0 deletions charts/rekor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ server:
pullPolicy: IfNotPresent
# crane digest gcr.io/projectsigstore/rekor-server:v1.3.6
version: sha256:1237f29e2105d7f5451bbe15a3aca8677ddd1bb80620ca2fd06f74262437cf51
# -- KMS type for signing key (possible values: "" / "none", "aws")
kmsType: none
# -- AWS region if using AWS KMS for signing key
awsKmsRegion: us-east-1
# -- kubernetes secret name containing IAM credentials for use with AWS KMS
awsKmsCredentialsSecretName: aws-kms-credentials
logging:
production: false
ingress:
Expand Down

0 comments on commit 5e78385

Please sign in to comment.