Skip to content

Commit 8d13857

Browse files
authored
Merge pull request #822 from Dstack-TEE/chore/use-host-qcnl-config
chore(key-provider): use host QCNL config
2 parents 46bc8d5 + cff5e79 commit 8d13857

5 files changed

Lines changed: 6 additions & 16 deletions

File tree

REUSE.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ SPDX-License-Identifier = "Apache-2.0"
5959
path = [
6060
"dstack/gateway/templates/wg.conf",
6161
"dstack/guest-agent/templates/metrics.tpl",
62-
"dstack/local-key-provider/build/sgx_default_qcnl.conf",
6362
]
6463
SPDX-FileCopyrightText = "Copyright (c) 2024-2025 The Project Contributors"
6564
SPDX-License-Identifier = "Apache-2.0"

docs/tutorials/gramine-key-provider.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ git clone https://github.com/Dstack-TEE/dstack.git
7070
cd dstack/dstack/local-key-provider/build
7171
```
7272

73-
The bundled `sgx_default_qcnl.conf` points AESM at the Phala PCCS. To use a
74-
different PCCS, edit its `pccs_url` while keeping certificate verification
75-
enabled, and export the provider's base URL as `PCCS_URL` before running
76-
Compose.
73+
Compose mounts the host's `/etc/sgx_default_qcnl.conf` into the AESM
74+
container. Make sure that file points at a working PCCS before starting the
75+
services. To use a different PCCS for the provider, export its base URL as
76+
`PCCS_URL` before running Compose.
7777

7878
Build and start both AESM and the provider:
7979

docs/tutorials/troubleshooting-prerequisites.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ docker logs aesmd 2>&1 | tail -30
289289
**Solution:**
290290
1. Verify QCNL configuration points to `https://pccs.phala.network/sgx/certification/v4/`
291291
2. Check network connectivity: `curl -sk https://pccs.phala.network/sgx/certification/v4/rootcacrl`
292-
3. Verify the QCNL config file exists at `~/dstack/dstack/local-key-provider/build/sgx_default_qcnl.conf`
292+
3. Verify the host QCNL config file exists at `/etc/sgx_default_qcnl.conf`
293293

294294
### HTTP health checks fail
295295

dstack/local-key-provider/build/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
- "/dev/sgx_enclave:/dev/sgx_enclave"
2323
- "/dev/sgx_provision:/dev/sgx_provision"
2424
volumes:
25-
- "./sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf"
25+
- "/etc/sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf:ro"
2626
- "aesmd:/var/run/aesmd/"
2727
network_mode: "host"
2828

dstack/local-key-provider/build/sgx_default_qcnl.conf

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)