Skip to content

Commit 46bc8d5

Browse files
authored
Merge pull request #819 from Dstack-TEE/fix/full-stack-local-pccs
fix(e2e): use host PCCS configuration
2 parents 2505ce5 + fcd6e42 commit 46bc8d5

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

test-suites/full-stack-compose/.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ DSTACK_E2E_CID_START=15000
5050
DSTACK_E2E_QGS_PORT=4050
5151
DSTACK_E2E_QEMU_PATH=/usr/bin/qemu-system-x86_64
5252

53-
# SGX QCNL config used by the Local-Key-Provider that seals each KMS CVM disk.
54-
DSTACK_E2E_QCNL_CONF=../../dstack/local-key-provider/build/sgx_default_qcnl.conf
53+
# Host SGX QCNL config used by the Local-Key-Provider that seals each KMS CVM disk.
54+
# It should point at a PCCS provisioned for this physical platform.
55+
DSTACK_E2E_QCNL_CONF=/etc/sgx_default_qcnl.conf
5556

5657
# Runner behaviour.
5758
DSTACK_E2E_CLEAN_START=true

test-suites/full-stack-compose/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ would make a passing result irrelevant to production:
6363

6464
- `/dev/kvm`, `/dev/vhost-vsock`, Intel TDX, and QGS (default port `4050`)
6565
- `/dev/sgx_enclave` and `/dev/sgx_provision`
66-
- a working SGX QCNL/PCCS configuration
66+
- a working host SGX QCNL configuration at `/etc/sgx_default_qcnl.conf`
67+
whose PCCS is provisioned for this physical platform; override its path
68+
with `DSTACK_E2E_QCNL_CONF` when needed. A public PCCS only works after
69+
this platform's PCK certificate has been registered there.
6770
- an IPv4/DNS name for the host that is reachable from both the host-side
6871
deployment client and QEMU user-networked CVMs; the suite derives
6972
`<default-route-ip>.nip.io`, or accepts `DSTACK_E2E_KMS_RPC_DOMAIN`

test-suites/full-stack-compose/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ services:
109109
- "/dev/sgx_enclave:/dev/sgx_enclave"
110110
- "/dev/sgx_provision:/dev/sgx_provision"
111111
volumes:
112-
- ${DSTACK_E2E_QCNL_CONF:-../../dstack/local-key-provider/build/sgx_default_qcnl.conf}:/etc/sgx_default_qcnl.conf:ro
112+
- ${DSTACK_E2E_QCNL_CONF:-/etc/sgx_default_qcnl.conf}:/etc/sgx_default_qcnl.conf:ro
113113
- aesmd-sock:/var/run/aesmd/
114114
restart: unless-stopped
115115

0 commit comments

Comments
 (0)