You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains ready-to-deploy examples demonstrating how to build and run applications on [dstack](https://github.com/Dstack-TEE/dstack), the developer-friendly SDK for deploying containerized apps in Trusted Execution Environments (TEE).
21
21
22
-
## Prerequisites
22
+
## Getting Started
23
23
24
-
- Access to a dstack environment (self-hosted or [Phala Cloud](https://cloud.phala.network))
25
-
- Basic understanding of [TEE concepts](https://docs.phala.network/dstack)
|[trust-center](./refs/trust-center)| Full attestation verification platform — **start here** for production attestation patterns | Reference |
60
-
|[attestation-sdk](./attestation-sdk)| Using Dstack client SDK to fetch attestations | Coming Soon |
61
-
|[timelock-nts](./timelock-nts)| Shows raw `/var/run/dstack.sock` usage (what the SDK wraps) | Available |
62
-
|[attestation/configid-based](./attestation/configid-based)| ConfigID-based verification (demonstrates current format) | Available |
100
+
| [attestation-with-sdk](./attestation-with-sdk) | Complete SDK example with HTTP server | Available |
101
+
| [timelock-nts](./timelock-nts) | Raw socket usage (what the SDK wraps) | Available |
102
+
| [attestation/configid-based](./attestation/configid-based) | ConfigID-based verification | Available |
63
103
64
104
### Gateway & Domains
65
105
@@ -110,6 +150,27 @@ Interesting demonstrations.
110
150
111
151
---
112
152
153
+
## Other Use Cases
154
+
155
+
External projects and templates worth exploring. These are maintained elsewhere but demonstrate interesting TEE patterns.
156
+
157
+
| Project | Description | Link |
158
+
|---------|-------------|------|
159
+
| **Oracle Template** | Price aggregator with verifiable networking (hardened TLS) and multi-source validation | [Gldywn/phala-cloud-oracle-template](https://github.com/Gldywn/phala-cloud-oracle-template) |
160
+
| **VRF Template** | Verifiable Random Function — hardware-backed cryptographic randomness | [Phala-Network/phala-cloud-vrf-template](https://github.com/Phala-Network/phala-cloud-vrf-template) |
161
+
| **Open WebUI** | Self-hosted AI chat interface in TEE | [phala-cloud/templates/openwebui](https://github.com/Phala-Network/phala-cloud/tree/main/templates/prebuilt/openwebui) |
162
+
| **n8n Automation** | Workflow automation (400+ integrations) with OAuth in TEE | [Marvin-Cypher/phala-n8n-template](https://github.com/Marvin-Cypher/phala-n8n-template) |
| **NEAR Shade Agent** | Blockchain oracle/agent for NEAR with TEE attestation | [phala-cloud/templates/near-shade-agent](https://github.com/Phala-Network/phala-cloud/tree/main/templates/prebuilt/near-shade-agent) |
165
+
| **Presidio** | Microsoft's PII de-identification running in TEE | [HashWarlock/presidio](https://github.com/HashWarlock/presidio/tree/phala-cloud) |
166
+
| **ByteBot** | AI desktop agent — computer control in isolated TEE sandbox | [phala-cloud/templates/bytebot](https://github.com/Phala-Network/phala-cloud/tree/main/templates/prebuilt/bytebot) |
167
+
168
+
> **Note**: These templates use pre-built Docker images. For full auditability, review their source repos before deployment.
169
+
170
+
See the full [Phala Cloud templates](https://github.com/Phala-Network/phala-cloud#templates) for more options.
171
+
172
+
---
173
+
113
174
## Details
114
175
115
176
Implementation details and infrastructure patterns.
**Note**: Requires dstack OS 0.5.x+ (uses `/var/run/dstack.sock`). Older 0.3.x images use `/var/run/tappd.sock` which is not compatible with the current SDK.
39
+
40
+
## Verify with Trust Center
41
+
42
+
Once deployed, verify your attestation using [trust-center](https://github.com/Phala-Network/trust-center):
43
+
44
+
1. Get your app's attestation endpoint (e.g., `https://your-app.phala.network/`)
0 commit comments