Commit cd141f4
feat: add dstack-ingress for custom domain TLS (CPL-152) (#181)
* feat: add dstack-ingress for custom domain TLS (CPL-152)
Add dstack-ingress service to docker-compose.phala.yml for attestation-
bound TLS termination inside the TEE. On main branch, deploys with
DOMAIN=api.chipotle.litprotocol.com using Let's Encrypt DNS-01 via
Route 53. On next branch, dstack-ingress is removed from the deploy
compose file (no custom domain).
- docker-compose.phala.yml: add dstack-ingress service behind
"custom-domain" profile with Route 53 DNS provider config
- deploy-phala.yml: add domain output, substitute TLS secrets in
deploy step, conditionally strip profiles or remove service block
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: use test.chipotle.litprotocol.com for next branch
Reserve api.chipotle.litprotocol.com for main branch deployments.
The next branch gets its own custom domain at test.chipotle.litprotocol.com.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: rename Route 53 secret refs to AWS_*_CERTBOT
The GitHub secrets for the certbot Route 53 IAM credentials are named
AWS_ACCESS_KEY_ID_CERTBOT and AWS_SECRET_ACCESS_KEY_CERTBOT.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: remove compose profiles, strip dstack-ingress when no domain
Phala deploy doesn't support compose profiles, so dstack-ingress is now
unconditionally defined. The deploy workflow strips the entire service
block when DOMAIN is empty.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: rename secrets to CERTBOT_AWS_ACCESS_KEY_ID prefix convention
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: rename AWS credential placeholders to CERTBOT_ prefix
Consistent naming end-to-end: compose file placeholders, workflow sed
patterns, and GitHub secret references all use CERTBOT_AWS_ACCESS_KEY_ID
and CERTBOT_AWS_SECRET_ACCESS_KEY.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: note dstack-ingress expected env var names with Phala docs link
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: rename DOMAIN placeholder to CERTBOT_DOMAIN for consistency
All dstack-ingress secrets now use CERTBOT_ prefix in the compose file
(CERTBOT_DOMAIN, CERTBOT_AWS_ACCESS_KEY_ID, CERTBOT_AWS_SECRET_ACCESS_KEY).
The deploy workflow maps them to the values dstack-ingress expects internally.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: replace dead Phala docs link with working blog post URL
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: link to dstack-ingress DNS_PROVIDERS.md for Route 53 docs
The previous link pointed to a Cloudflare-focused blog post. The actual
Route 53 env var documentation lives in the Dstack-TEE examples repo.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: show optional AWS_ROLE_ARN/AWS_REGION for Route 53 role assumption
Commented out since the IAM user has direct Route 53 permissions.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add missing GATEWAY_DOMAIN for dstack-ingress
Required common variable per dstack-ingress docs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: restore underscore prefix in GATEWAY_DOMAIN
GATEWAY_DOMAIN should be _.dstack-base-prod5.phala.network per dstack-ingress docs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: CERTBOT_AWS_ACCESS_KEY_ID is a var, not a secret
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: remove optional domain logic — custom domain is mandatory
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: hardcode CERTBOT_EMAIL to admin@litprotocol.com
Not sensitive — it's public in the ACME registration anyway.
Remove the secret reference and sed substitution.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: derive base_url and api_root_url from domain
Set DOMAIN as a shell variable per branch, then derive all URL outputs
from it — removes redundant hardcoded URLs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0d3bf69 commit cd141f4
2 files changed
Lines changed: 44 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
95 | 128 | | |
96 | 129 | | |
| 130 | + | |
0 commit comments