Skip to main content

Pod Security

Keep your secrets off standard nodes

On a standard node the provider operates the host and can read a running pod's files, environment and memory, so never put wallet private keys or seed phrases on it; use a Confidential Computing node for those and fetch other secrets at runtime (Handling credentials).

What a provider can see on a standard node​

A standard node is any node that is not CVM-enabled. Its provider has full access to the host, so they can:

  • Read files inside your pod.
  • Read environment variables, including secrets passed with --env or .env files.
  • Read process memory, including loaded keys and tokens.

Doing this is forbidden by the rental privacy rules. If you think it happened, report it through official Discord support.

Other pods on the same node​

Another customer's pod on the same node cannot connect to your pod. It can only reach the ports Lium publishes, like anyone else. Pods started before this protection shipped get it only after a re-deploy.

Never put these on a standard node​

  • Wallet private keys and seed phrases
  • SSH private keys
  • Cloud and API tokens (OpenAI, Hugging Face, AWS and similar)
  • Database passwords
  • Proprietary model weights

Confidential Computing​

CVM-enabled nodes run your pod in an Intel TDX confidential VM: its memory is encrypted in hardware, and you can verify the VM's TDX attestation yourself (Private models and datasets). Nodes are labeled CVM-enabled in the UI. If a node is not labeled, assume the provider can access your pod.

Through the API, each node in GET /executors carries the label in its specs object:

FieldMeaning
specs.tdx_attestation_passedtrue when the node's Intel TDX attestation was verified and its GPU attestation did not fail. This is the CVM-enabled label; the CVM filter and badge on Browse Pods read the same field
specs.tdx_host_supportedtrue when the host CPU supports Intel TDX, false when it does not, null when not measured. Support alone does not make a node CVM-enabled

There is no query parameter for it, so filter the listing yourself:

curl -s "https://lium.io/api/executors" \
| jq '[.[] | select(.specs.tdx_attestation_passed == true)]'

See the CVM guide and Private models and datasets.

Handling credentials​

If you must use a standard node:

  • Fetch secrets at runtime from a secrets manager. Don't bake them into the image.
  • Use short-lived tokens with the smallest scope.
  • Rotate every secret you used once the pod is gone.

Encrypted local volumes protect data at rest only, not a running pod.

Attesting from inside your pod​

On a Confidential Computing node, your pod can prove it runs inside the node's TDX VM. Every pod gets a dstack socket at:

/var/run/dstack.sock

Get a quote

from dstack_sdk import DstackClient

client = DstackClient() # dials /var/run/dstack.sock
quote = client.get_quote(b"my-64-byte-nonce-or-key-hash")
info = client.info() # app_id, tcb_info (RTMRs, event log), app compose
  • Only GetQuote, Info and Version work. Key-derivation calls return 403; bring your own keys.
  • Put your key hash or a nonce in report_data (up to 64 bytes) so the quote is bound to your session.
  • The measurements cover the node, not your image.

Verify the quote

Use the dstack verifier or any Intel DCAP quote verifier. Private models and datasets has the full flow.