Skip to content

Commit 62c2035

Browse files
committed
feat(key-provider): add in-tree local provider
1 parent 9ed633a commit 62c2035

36 files changed

Lines changed: 1841 additions & 1188 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/dstack/target
2+
/dstack/local-key-provider/build/target
23
/certs
34
/build-config.sh
45
/build/*

REUSE.toml

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

docs/onboarding.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ sudo dstackup install
9393

9494
`dstackup install` auto-detects TDX or AMD SEV-SNP. If no local guest image exists, it downloads the latest unified image from [dstack guest-OS releases](https://github.com/Dstack-TEE/dstack/releases?q=guest-os-v), requires the release SHA-256 digest by default, verifies the tarball, stages the unpack, and only then adopts the image. Current images include NVIDIA support conditionally and work on CPU-only hosts too. Pinned versions below 0.6.0 are read directly from the archived [`meta-dstack` releases](https://github.com/Dstack-TEE/meta-dstack/releases); versions 0.6.0 and later come from this repository.
9595

96-
On TDX, `dstackup install` starts the SGX key provider automatically from `/usr/local/share/dstack/key-provider-build`. To use a different provider, pass one of:
96+
On TDX, `dstackup install` starts the SGX key provider automatically from `/usr/local/share/dstack/local-key-provider/build`. To use a different provider, pass one of:
9797

9898
```bash
99-
sudo dstackup install --key-provider-src /path/to/key-provider-build
99+
sudo dstackup install --key-provider-src /path/to/local-key-provider/build
100100
sudo dstackup install --use-existing-key-provider 127.0.0.1:3443
101101
```
102102

@@ -281,7 +281,7 @@ TDX uses an SGX-backed key provider for KMS sealing. `dstackup install` uses the
281281

282282
```bash
283283
sudo dstackup install --use-existing-key-provider 127.0.0.1:3443
284-
sudo dstackup install --key-provider-src /path/to/key-provider-build
284+
sudo dstackup install --key-provider-src /path/to/local-key-provider/build
285285
```
286286

287287
AMD SEV-SNP does not use this key provider.

docs/tutorials/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ running your first confidential application.
2323
| 2 | SSL Certificate Setup | [ssl-certificate-setup.md](ssl-certificate-setup.md) |
2424
| 3 | Docker Setup | [docker-setup.md](docker-setup.md) |
2525
| 3 | HAProxy Setup | [haproxy-setup.md](haproxy-setup.md) |
26-
| 4 | Gramine Key Provider | [gramine-key-provider.md](gramine-key-provider.md) |
26+
| 4 | Local Key Provider | [gramine-key-provider.md](gramine-key-provider.md) |
2727
| 4 | Local Docker Registry | [local-docker-registry.md](local-docker-registry.md) |
2828
| 5 | Blockchain Wallet Setup | [blockchain-setup.md](blockchain-setup.md) |
2929

3030
> Steps 3–4 contain parallel tracks. Docker Setup and HAProxy Setup are
31-
> both step 3; Gramine Key Provider and Local Docker Registry are both
31+
> both step 3; Local Key Provider and Local Docker Registry are both
3232
> step 4. Complete both within each step number.
3333
3434
### 3. dstack Installation

docs/tutorials/clone-build-dstack-vmm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ All build commands should be run as the `ubuntu` user. Only the final installati
5656
### Step 2: Verify dstack Repository
5757

5858
The dstack repository should already be cloned and checked out on the current
59-
`master` branch from [Gramine Key Provider](/tutorial/gramine-key-provider):
59+
`master` branch from [Local Key Provider](/tutorial/gramine-key-provider):
6060

6161
```bash
6262
cd ~/dstack

docs/tutorials/docker-setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ estimatedTime: "10 minutes"
1717

1818
# Docker Setup
1919

20-
This tutorial guides you through installing Docker Engine on your TDX server. Docker is required for the Gramine Key Provider and Local Docker Registry.
20+
This tutorial guides you through installing Docker Engine on your TDX server. Docker is required for the Local Key Provider and Local Docker Registry.
2121

2222
## What You'll Install
2323

@@ -148,7 +148,7 @@ For detailed solutions, see the [Prerequisites Troubleshooting Guide](/tutorial/
148148

149149
With Docker installed, proceed to:
150150

151-
- [Gramine Key Provider](/tutorial/gramine-key-provider) - Deploy SGX-based key provider
151+
- [Local Key Provider](/tutorial/gramine-key-provider) - Deploy SGX-based key provider
152152

153153
## Additional Resources
154154

0 commit comments

Comments
 (0)