Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ In order to use this chart, you will need to:
| kbs.secretResources[1].name | string | `"passphrase"` | |
| kbs.snp.enabled | bool | `false` | |
| kbs.snp.vcekSecrets | list | `[]` | |
| kbs.spire.enabled | bool | `false` | |
| kbs.spire.adminSocketPath | string | `"/run/spire/sockets/admin.sock"` | |
| kbs.spire.socketHostPath | string | `"/run/spire/admin/admin.sock"` | |
| kbs.tdx.collateralFileName | string | `"platform_collaterals.json"` | |
| kbs.tdx.collateralMountPath | string | `"/opt/confidential-containers/attestation-service/tdx"` | |
| kbs.tdx.collateralService | string | `"file:///opt/confidential-containers/attestation-service/tdx/platform_collaterals.json"` | |
Expand Down
7 changes: 7 additions & 0 deletions templates/kbs-config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,10 @@ data:

[storage_backend.backends.local_json]
dir_path = "/opt/confidential-containers/storage/local_json"

{{- if .Values.kbs.spire.enabled }}

[[plugins]]
name = "spire"
admin_socket_path = "{{ .Values.kbs.spire.adminSocketPath }}"
{{- end }}
13 changes: 13 additions & 0 deletions templates/kbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,16 @@ spec:
mountPath: "/opt/confidential-containers/attestation-service/kds-store/vcek/{{ .hwid }}"
{{- end }}
{{- end }}

# SPIRE Delegated Identity plugin: mount the agent admin socket
{{- if .Values.kbs.spire.enabled }}
extraVolumes:
- name: spire-admin-socket
hostPath:
path: {{ .Values.kbs.spire.socketHostPath }}
type: Socket
extraVolumeMounts:
- name: spire-admin-socket
mountPath: {{ dir .Values.kbs.spire.adminSocketPath }}
readOnly: true
{{- end }}
13 changes: 13 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ kbs:
# - hwid: "abc123def456..."
# secretName: "snp-vcek-abc123def456"

# SPIRE Delegated Identity plugin configuration
# Requires a KBS image built with the spire-plugin cargo feature
# (upstream trustee v0.23.0+, or a custom build via custom catalog source).
# When enabled, serves kbs+spire:// resource URIs (X.509 SVIDs fetched
# from the cluster's SPIRE agent) and mounts the agent's admin socket
# into the KBS pod.
spire:
enabled: false
# Path of the SPIRE agent admin socket as seen inside the KBS pod
adminSocketPath: "/run/spire/sockets/admin.sock"
# hostPath on the node where the SPIRE agent exposes its admin socket
socketHostPath: "/run/spire/admin/admin.sock"

# Private registry CA certificate injection
# Enable to inject private registry CA cert into imperative namespace for
# initdata generation. Requires registryCaCert in Vault.
Expand Down
Loading