Skip to content

Commit

Permalink
adds tsa. (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhundere authored Jan 7, 2024
1 parent a423179 commit d2e17eb
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/tuf/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: tuf
description: A framework for securing software update systems - the scaffolding implementation
type: application
version: 0.1.9
version: 0.1.10
appVersion: "0.6.10"

home: https://sigstore.dev/
Expand Down
6 changes: 5 additions & 1 deletion charts/tuf/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tuf

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

A framework for securing software update systems - the scaffolding implementation

Expand Down Expand Up @@ -53,6 +53,10 @@ A framework for securing software update systems - the scaffolding implementatio
| secrets.rekor.key | string | `"key"` | |
| secrets.rekor.name | string | `"rekor-public-key"` | |
| secrets.rekor.path | string | `"rekor.pub"` | |
| secrets.tsa.create | bool | `false` | |
| secrets.tsa.key | string | `"cert-chain"` | |
| secrets.tsa.name | string | `"tsa-cert-chain"` | |
| secrets.tsa.path | string | `"tsa.certchain.pem"` | |
| service.name | string | `"tuf-server"` | |
| service.port | int | `80` | |
| serviceAccountName | string | `"tuf"` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/tuf/ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ secrets:
ctlog:
create: true
value: baz
tsa:
create: true
value: qux
5 changes: 5 additions & 0 deletions charts/tuf/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ spec:
items:
- key: {{ .Values.secrets.rekor.key }}
path: {{ .Values.secrets.rekor.path }}
- secret:
name: {{ .Values.secrets.tsa.name }}
items:
- key: {{ .Values.secrets.tsa.key }}
path: {{ .Values.secrets.tsa.path }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
Expand Down
11 changes: 11 additions & 0 deletions charts/tuf/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,15 @@ metadata:
type: Opaque
data:
{{ .Values.secrets.ctlog.key }}: {{ b64enc .Values.secrets.ctlog.value }}
---
{{ end }}
{{ if .Values.secrets.tsa.create }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.secrets.tsa.name }}
{{ include "tuf.namespace" . | indent 2 }}
type: Opaque
data:
{{ .Values.secrets.tsa.key }}: {{ b64enc .Values.secrets.tsa.value }}
{{ end }}
47 changes: 47 additions & 0 deletions charts/tuf/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,41 @@
"key": "key",
"path": "ctfe.pub"
}]
},
"tsa": {
"type": "object",
"properties": {
"create": {
"type": "boolean",
"examples": [
false
]
},
"name": {
"type": "string",
"examples": [
"tsa-cert-chain"
]
},
"key": {
"type": "string",
"examples": [
"cert-chain"
]
},
"path": {
"type": "string",
"examples": [
"tsa.certchain.pem"
]
}
},
"examples": [{
"create": false,
"name": "tsa-cert-chain",
"key": "cert-chain",
"path": "tsa.certchain.pem"
}]
}
},
"examples": [{
Expand All @@ -228,6 +263,12 @@
"name": "ctlog-public-key",
"key": "key",
"path": "ctfe.pub"
},
"tsa": {
"create": false,
"name": "tsa-cert-chain",
"key": "cert-chain",
"path": "tsa.certchain.pem"
}
}]
},
Expand Down Expand Up @@ -389,6 +430,12 @@
"name": "ctlog-public-key",
"key": "key",
"path": "ctfe.pub"
},
"tsa": {
"create": false,
"name": "tsa-cert-chain",
"key": "key",
"path": "tsa.certchain.pem"
}
},
"ingress": {
Expand Down
5 changes: 5 additions & 0 deletions charts/tuf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ secrets:
name: ctlog-public-key
key: public
path: ctfe.pub
tsa:
create: false
name: tsa-cert-chain
key: cert-chain
path: tsa.certchain.pem

ingress:
create: true
Expand Down

0 comments on commit d2e17eb

Please sign in to comment.