Skip to content

Commit 5eb4788

Browse files
authored
feat: add TDX attestation support (#13)
Add optional Intel TDX configuration for quote verification. Creates tdx-config ConfigMap when kbs.tdx.enabled is true. Disabled by default. Signed-off-by: Beraldo Leal <[email protected]>
1 parent 766335c commit 5eb4788

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

templates/kbs.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ spec:
1818
kbsResourcePolicyConfigMapName: resource-policy
1919

2020
# TDX specific configuration (optional)
21-
# tdxConfigSpec:
22-
# kbsTdxConfigMapName: tdx-config
21+
{{- if .Values.kbs.tdx.enabled }}
22+
tdxConfigSpec:
23+
kbsTdxConfigMapName: tdx-config
24+
{{- end }}
2325

2426
# IBM SE specific configuration (optional)
2527
# ibmSEConfigSpec:

templates/tdx-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- if .Values.kbs.tdx.enabled }}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: tdx-config
6+
namespace: trustee-operator-system
7+
data:
8+
sgx_default_qcnl.conf: |
9+
{
10+
"collateral_service": "{{ .Values.kbs.tdx.collateralService }}"
11+
}
12+
{{- end }}

values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ kbs:
2727
# key: "secret/data/hub/kbsres1"
2828
# - name: "passphrase"
2929
# key: "secret/data/hub/passphrase"
30+
31+
# Intel TDX (Trust Domain Extensions) configuration
32+
tdx:
33+
# Enable TDX attestation support
34+
enabled: false
35+
# PCCS collateral service URL for quote verification
36+
# For Azure: Use https://global.acccache.azure.net/sgx/certification/v4/
37+
# For bare metal/Intel: Use https://api.trustedservices.intel.com/sgx/certification/v4/
38+
collateralService: "https://api.trustedservices.intel.com/sgx/certification/v4/"

0 commit comments

Comments
 (0)