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
test(test-utils): address review on the regenerated fixtures
- strip the NUL that terminates the PEM chains in the node's collateral, so
the fixture stays valid PEM for consumers stricter than dcap-qvl, and
regenerate the borsh arg fixture
- stop asserting the borsh fixture's final byte in .editorconfig: it is
whatever the encoded collateral ends with
- give the secret key file a trailing newline, and confirm in the runbook that
its account exists on no public network
- warn loudly when a pre-launch script is baked in, and document in the deploy
guide and default.env that such a CVM cannot pass attestation
- state the DCAP verdict of the localnet verify_quote call without depending on
today's date, in both runbooks and the sandbox module doc
- make the regeneration reminder unconditional (the committed key is normally
present but stale), document the borsh/report-value refresh step, and drop the
vestigial --run-ignored
- assert the compiled-in pre-launch policy through validate_app_compose_config,
not only through the helper, and rename the new tests to the should_ form
> **Never set `PRELAUNCH_SCRIPT` for a real deployment.** It bakes a script into
166
+
> the app-compose that runs as root inside the CVM before the node starts.
167
+
> Attestation verification rejects any app-compose carrying one, so such a CVM
168
+
> can never join the network; it exists only to collect test fixtures (see
169
+
> `localnet/tee/scripts/rust-launcher/README.md`). The `.env` file is sourced
170
+
> under `set -a`, so a leftover line takes effect silently — `deploy-launcher.sh`
171
+
> prints a warning when it finds one.
172
+
165
173
---
166
174
167
175
Based on: [Original Dstack deploy script](https://github.com/Dstack-TEE/dstack/blob/be9d0476a63e937eda4c13659547a25088393394/kms/dstack-app/deploy-to-vmm.sh)
0 commit comments