Secure host management and orchestration API for dstack TEE infrastructure
Host API Security Architecture
The Host API represents the foundational security interface for TEE host management within dstack, implementing a three-endpoint secure interface that provides critical security services including host information retrieval, event notification handling, and sealing key provisioning. This API server operates as an integral component of the VMM using the RA-RPC framework for secure remote procedure calls, establishing the trust foundation for all confidential computing operations.
Cryptographic Security Foundation
The system employs military-grade cryptographic algorithms designed for enterprise-level security requirements. The cryptographic foundation relies on HKDF-SHA256 for secure key derivation using a dedicated βRATLSβ salt, ECDSA P-256 for digital signatures with PKCS#8 encoding, and X25519 for Diffie-Hellman key exchange derived from ECDSA keys. This comprehensive cryptographic suite supports multi-algorithm hash operations including SHA-256, SHA-384, SHA-512, SHA-3, and Keccak variants.Key derivation functions implement cryptographically secure context-based derivation where derived keys are generated using HKDF with configurable context data and output sizes up to 256 bytes. The system ensures forward secrecy through proper key rotation and derivation chains, preventing compromise of future keys even if current key material is exposed.
Authentication and Authorization Framework
The Host API enforces strict mutual TLS authentication with comprehensive client certificate verification and attestation validation. The authentication system extracts and validates app-specific identifiers from client certificates using custom OID extensions, creating a robust identity verification mechanism that extends beyond traditional certificate validation.The system utilizes custom X.509 certificate extensions with enterprise-registered OIDs for embedding attestation data. Quote extensions store SGX and TDX quotes, event log extensions preserve TDX event logs, app ID extensions provide application identification, and certificate usage extensions handle special certificate purposes. This extension system creates a comprehensive identity and attestation framework.
Intel TDX Attestation and Hardware Security
The attestation system implements comprehensive TDX quote verification using Intelβs DCAP QVL library for collateral retrieval and verification. The system performs strict Trusted Computing Base validation including debug mode prevention and signer verification, ensuring that only production-ready hardware environments can participate in secure operations.Runtime measurement validation utilizes cryptographic event log replay using SHA-384 hashing to validate Runtime Measurement Registers, ensuring boot-time and runtime integrity. Event logs are validated against computed measurements with strict matching requirements, preventing runtime tampering and ensuring execution environment integrity throughout the operational lifecycle.The quote content validation framework supports multiple content types for quote data validation including KMS root CA verification, RA-TLS certificates, and application-specific data with configurable hash algorithms. This flexibility enables diverse security policies while maintaining consistent verification standards.
Secure Key Management and Provisioning
The Host API provides hardware-backed sealing key provisioning through integration with dedicated key provider services. The system uses NaCl sealed boxes for secure key transport with public key cryptography, ensuring that sensitive key material remains protected during transmission and storage operations.Key provider communication implements secure TCP-based protocols with length-prefixed JSON messaging and payload limits for quote transmission. All key operations require valid TDX quotes and SGX enclave verification before key release, creating a comprehensive verification pipeline that prevents unauthorized key access.The KMS system manages multiple key types including TLS CA certificates for trust anchor establishment, disk encryption keys for full disk encryption, environment variable encryption keys using X25519, ECDSA keys for Ethereum-compatible signing operations, and K256 signatures with root key validation. This diverse key management capability supports various cryptographic requirements within the confidential computing environment.
Communication Security and Isolation
The Host API utilizes VSOCK communication channels for secure host-guest isolation with dedicated CID and port assignments. This approach provides hardware-enforced isolation between host and guest environments, preventing unauthorized access and ensuring that sensitive operations remain contained within appropriate security boundaries.Request processing security implements comprehensive request validation with configurable size limits, content-type verification, and method-specific payload restrictions. All requests undergo multi-layer security processing including attestation verification and certificate validation, ensuring that only authorized and verified requests can access sensitive API endpoints.
Advanced Security Controls and Multi-Tenant Isolation
The VMM provides secure VM lifecycle management with hardware isolation controls including NUMA node pinning for hardware isolation, hugepage allocation for performance and security, GPU attachment security with PCI device validation, and resource quota enforcement per tenant. These controls ensure that multiple tenants can operate securely within the same hardware environment without compromising isolation guarantees.The system enforces strict tenant isolation through hardware resource partitioning via NUMA nodes, memory and CPU quota limits with configurable maximums, network isolation with dedicated address spaces, and encrypted environment variables per application. This comprehensive isolation model prevents cross-tenant information leakage and ensures that confidential workloads remain protected.
Certificate Authority and Attestation Operations
The system implements secure RA-TLS certificate generation with embedded attestation data and configurable validity periods up to 10 years. Certificates include digitally signed attestation quotes and event logs for complete verification, enabling comprehensive trust establishment for secure communications.Certificate signing processes implement strict validation requirements including confirmation word verification, ECDSA signature validation using P-256 curves, public key format verification with DER encoding, and algorithm compatibility checks. These requirements ensure that only authorized certificate requests can be processed and that all certificates maintain cryptographic integrity.
Production Security Configuration
The KMS implements enterprise-grade TLS configuration with mutual TLS enforcement and CA certificate validation. The system supports configurable client certificate requirements, dedicated certificate directories for secure storage, and subject name validation with domain verification. This comprehensive TLS configuration ensures that all communications remain secure and properly authenticated.Authentication API integration supports multiple authentication backends including webhook-based authentication and development mode overrides with configurable gateway app ID validation. This flexibility enables diverse deployment scenarios while maintaining consistent security standards across different operational environments.
Security Monitoring and Compliance
The Host API implements detailed security event logging with request tracing, method identification, and unique request ID assignment for audit trail maintenance. This comprehensive logging capability enables security teams to track all API interactions and investigate potential security incidents effectively.Error handling security utilizes sanitized error messages and structured error encoding that prevents information disclosure while maintaining debugging capability. This approach ensures that security-sensitive information remains protected even when errors occur during normal operations.The Host API security implementation aligns with enterprise security standards including NIST guidelines for cryptographic implementations, Intel TDX specifications for attestation protocols, zero-trust architecture principles with continuous verification, and defense-in-depth security strategies with multiple validation layers. This comprehensive approach ensures that the system meets stringent security requirements for confidential computing workloads while maintaining operational efficiency and scalability.
βI
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"dstack","colors":{"primary":"#0069ED","light":"#4D9CFF","dark":"#0050B4"},"logo":{"light":"https://mintcdn.com/phalanetwork/EDH2CSxg-w7_HARR/docs/public/logo/light.png?fit=max\u0026auto=format\u0026n=EDH2CSxg-w7_HARR\u0026q=85\u0026s=76209a44c466cba578ae1698c948891e","dark":"https://mintcdn.com/phalanetwork/EDH2CSxg-w7_HARR/docs/public/logo/dark.png?fit=max\u0026auto=format\u0026n=EDH2CSxg-w7_HARR\u0026q=85\u0026s=e18c38e871c30bced58dfd894c166322"},"favicon":"/docs/public/favicon.png","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://api.dstack.dev"}},"background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/phalanetwork/docs/public/background.png"},"navbar":{"links":[{"label":"Hosted by Phala - GitHub","href":"https://github.com/Dstack-TEE/dstack"}],"primary":{"type":"button","label":"Publications","href":"https://collective.flashbots.net/t/dstack-speedrunning-a-p2p-confidential-vm/3876"}},"footer":{"socials":{"github":"https://github.com/Dstack-TEE/dstack","twitter":"https://twitter.com/PhalaNetwork","discord":"https://discord.gg/phala"},"links":[{"items":[{"label":"π Authors Note -- TEE Guide","href":"https://www.intothebytecode.com/46-andrew-miller/"}]},{"items":[{"label":"Eliza AI Deploys on the dStack π€―","href":"https://www.youtube.com/watch?v=QkGLilgQ2Yc"},{"label":"DStack Worker Agents using TEE π€―","href":"https://www.youtube.com/watch?v=MCUWLUZuqJc"}]},{"items":[{"label":"πΊ Phala dStack MCP agent video guide","href":"https://www.youtube.com/watch?v=qG-9f66z-G8"}]}]},"integrations":{"ga4":{"measurementId":"G-XXXXXXXXXX"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"phalanetwork","hasAudioNarration":false,"actualSubdomain":"phalanetwork","customDomains":[],"gitSource":{"type":"github","owner":"dylanckawalec","repo":"dstack","deployBranch":"docs","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae928cb204c106d987d0d82:success","clientVersion":"0.0.4248","searchFilterCounts":[{"language":"default","tag":"Security + Research","count":38},{"language":"default","tag":"Key Component Infrastructure","count":30},{"language":"default","tag":"Getting Started","count":23},{"language":"default","tag":"Cloud Deployment Preparation Manual","count":15},{"language":"default","tag":"Core Concepts","count":11},{"language":"default","tag":"Additional Reading","count":9},{"language":"default","tag":"kms","count":8},{"language":"default","tag":"vmm","count":8},{"language":"default","tag":"KSM, VMM \u0026 Gateway","count":7},{"language":"default","tag":"Advanced Deployment Steps","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"docs/security-research/extra-sec-ops/host-api-security","slug":"/docs/security-research/extra-sec-ops/host-api-security","pageMetadata":{"title":"Host API Security","description":"Secure host management and orchestration API for dstack TEE infrastructure","href":"/docs/security-research/extra-sec-ops/host-api-security"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Secure host management and orchestration API for dstack TEE infrastructure\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`host-api-security-architecture`,children:`Host API Security Architecture`}),`\n`,_jsx(_components.p,{children:`The Host API represents the foundational security interface for TEE host management within dstack, implementing a three-endpoint secure interface that provides critical security services including host information retrieval, event notification handling, and sealing key provisioning. This API server operates as an integral component of the VMM using the RA-RPC framework for secure remote procedure calls, establishing the trust foundation for all confidential computing operations.`}),`\n`,_jsx(Heading,{level:`2`,id:`cryptographic-security-foundation`,children:`Cryptographic Security Foundation`}),`\n`,_jsx(_components.p,{children:`The system employs military-grade cryptographic algorithms designed for enterprise-level security requirements. The cryptographic foundation relies on HKDF-SHA256 for secure key derivation using a dedicated βRATLSβ salt, ECDSA P-256 for digital signatures with PKCS#8 encoding, and X25519 for Diffie-Hellman key exchange derived from ECDSA keys. This comprehensive cryptographic suite supports multi-algorithm hash operations including SHA-256, SHA-384, SHA-512, SHA-3, and Keccak variants.`}),`\n`,_jsx(_components.p,{children:`Key derivation functions implement cryptographically secure context-based derivation where derived keys are generated using HKDF with configurable context data and output sizes up to 256 bytes. The system ensures forward secrecy through proper key rotation and derivation chains, preventing compromise of future keys even if current key material is exposed.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication-and-authorization-framework`,children:`Authentication and Authorization Framework`}),`\n`,_jsx(_components.p,{children:`The Host API enforces strict mutual TLS authentication with comprehensive client certificate verification and attestation validation. The authentication system extracts and validates app-specific identifiers from client certificates using custom OID extensions, creating a robust identity verification mechanism that extends beyond traditional certificate validation.`}),`\n`,_jsx(_components.p,{children:`The system utilizes custom X.509 certificate extensions with enterprise-registered OIDs for embedding attestation data. Quote extensions store SGX and TDX quotes, event log extensions preserve TDX event logs, app ID extensions provide application identification, and certificate usage extensions handle special certificate purposes. This extension system creates a comprehensive identity and attestation framework.`}),`\n`,_jsx(Heading,{level:`2`,id:`intel-tdx-attestation-and-hardware-security`,children:`Intel TDX Attestation and Hardware Security`}),`\n`,_jsx(_components.p,{children:`The attestation system implements comprehensive TDX quote verification using Intelβs DCAP QVL library for collateral retrieval and verification. The system performs strict Trusted Computing Base validation including debug mode prevention and signer verification, ensuring that only production-ready hardware environments can participate in secure operations.`}),`\n`,_jsx(_components.p,{children:`Runtime measurement validation utilizes cryptographic event log replay using SHA-384 hashing to validate Runtime Measurement Registers, ensuring boot-time and runtime integrity. Event logs are validated against computed measurements with strict matching requirements, preventing runtime tampering and ensuring execution environment integrity throughout the operational lifecycle.`}),`\n`,_jsx(_components.p,{children:`The quote content validation framework supports multiple content types for quote data validation including KMS root CA verification, RA-TLS certificates, and application-specific data with configurable hash algorithms. This flexibility enables diverse security policies while maintaining consistent verification standards.`}),`\n`,_jsx(Heading,{level:`2`,id:`secure-key-management-and-provisioning`,children:`Secure Key Management and Provisioning`}),`\n`,_jsx(_components.p,{children:`The Host API provides hardware-backed sealing key provisioning through integration with dedicated key provider services. The system uses NaCl sealed boxes for secure key transport with public key cryptography, ensuring that sensitive key material remains protected during transmission and storage operations.`}),`\n`,_jsx(_components.p,{children:`Key provider communication implements secure TCP-based protocols with length-prefixed JSON messaging and payload limits for quote transmission. All key operations require valid TDX quotes and SGX enclave verification before key release, creating a comprehensive verification pipeline that prevents unauthorized key access.`}),`\n`,_jsx(_components.p,{children:`The KMS system manages multiple key types including TLS CA certificates for trust anchor establishment, disk encryption keys for full disk encryption, environment variable encryption keys using X25519, ECDSA keys for Ethereum-compatible signing operations, and K256 signatures with root key validation. This diverse key management capability supports various cryptographic requirements within the confidential computing environment.`}),`\n`,_jsx(Heading,{level:`2`,id:`communication-security-and-isolation`,children:`Communication Security and Isolation`}),`\n`,_jsx(_components.p,{children:`The Host API utilizes VSOCK communication channels for secure host-guest isolation with dedicated CID and port assignments. This approach provides hardware-enforced isolation between host and guest environments, preventing unauthorized access and ensuring that sensitive operations remain contained within appropriate security boundaries.`}),`\n`,_jsx(_components.p,{children:`Request processing security implements comprehensive request validation with configurable size limits, content-type verification, and method-specific payload restrictions. All requests undergo multi-layer security processing including attestation verification and certificate validation, ensuring that only authorized and verified requests can access sensitive API endpoints.`}),`\n`,_jsx(Heading,{level:`2`,id:`advanced-security-controls-and-multi-tenant-isolation`,children:`Advanced Security Controls and Multi-Tenant Isolation`}),`\n`,_jsx(_components.p,{children:`The VMM provides secure VM lifecycle management with hardware isolation controls including NUMA node pinning for hardware isolation, hugepage allocation for performance and security, GPU attachment security with PCI device validation, and resource quota enforcement per tenant. These controls ensure that multiple tenants can operate securely within the same hardware environment without compromising isolation guarantees.`}),`\n`,_jsx(_components.p,{children:`The system enforces strict tenant isolation through hardware resource partitioning via NUMA nodes, memory and CPU quota limits with configurable maximums, network isolation with dedicated address spaces, and encrypted environment variables per application. This comprehensive isolation model prevents cross-tenant information leakage and ensures that confidential workloads remain protected.`}),`\n`,_jsx(Heading,{level:`2`,id:`certificate-authority-and-attestation-operations`,children:`Certificate Authority and Attestation Operations`}),`\n`,_jsx(_components.p,{children:`The system implements secure RA-TLS certificate generation with embedded attestation data and configurable validity periods up to 10 years. Certificates include digitally signed attestation quotes and event logs for complete verification, enabling comprehensive trust establishment for secure communications.`}),`\n`,_jsx(_components.p,{children:`Certificate signing processes implement strict validation requirements including confirmation word verification, ECDSA signature validation using P-256 curves, public key format verification with DER encoding, and algorithm compatibility checks. These requirements ensure that only authorized certificate requests can be processed and that all certificates maintain cryptographic integrity.`}),`\n`,_jsx(Heading,{level:`2`,id:`production-security-configuration`,children:`Production Security Configuration`}),`\n`,_jsx(_components.p,{children:`The KMS implements enterprise-grade TLS configuration with mutual TLS enforcement and CA certificate validation. The system supports configurable client certificate requirements, dedicated certificate directories for secure storage, and subject name validation with domain verification. This comprehensive TLS configuration ensures that all communications remain secure and properly authenticated.`}),`\n`,_jsx(_components.p,{children:`Authentication API integration supports multiple authentication backends including webhook-based authentication and development mode overrides with configurable gateway app ID validation. This flexibility enables diverse deployment scenarios while maintaining consistent security standards across different operational environments.`}),`\n`,_jsx(Heading,{level:`2`,id:`security-monitoring-and-compliance`,children:`Security Monitoring and Compliance`}),`\n`,_jsx(_components.p,{children:`The Host API implements detailed security event logging with request tracing, method identification, and unique request ID assignment for audit trail maintenance. This comprehensive logging capability enables security teams to track all API interactions and investigate potential security incidents effectively.`}),`\n`,_jsx(_components.p,{children:`Error handling security utilizes sanitized error messages and structured error encoding that prevents information disclosure while maintaining debugging capability. This approach ensures that security-sensitive information remains protected even when errors occur during normal operations.`}),`\n`,_jsx(_components.p,{children:`The Host API security implementation aligns with enterprise security standards including NIST guidelines for cryptographic implementations, Intel TDX specifications for attestation protocols, zero-trust architecture principles with continuous verification, and defense-in-depth security strategies with multiple validation layers. This comprehensive approach ensures that the system meets stringent security requirements for confidential computing workloads while maintaining operational efficiency and scalability.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Host API Security","description":"Secure host management and orchestration API for dstack TEE infrastructure","href":"/docs/security-research/extra-sec-ops/host-api-security"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Host API Security Architecture","slug":"host-api-security-architecture","depth":1,"children":[]},{"title":"Cryptographic Security Foundation","slug":"cryptographic-security-foundation","depth":2,"children":[]},{"title":"Authentication and Authorization Framework","slug":"authentication-and-authorization-framework","depth":2,"children":[]},{"title":"Intel TDX Attestation and Hardware Security","slug":"intel-tdx-attestation-and-hardware-security","depth":2,"children":[]},{"title":"Secure Key Management and Provisioning","slug":"secure-key-management-and-provisioning","depth":2,"children":[]},{"title":"Communication Security and Isolation","slug":"communication-security-and-isolation","depth":2,"children":[]},{"title":"Advanced Security Controls and Multi-Tenant Isolation","slug":"advanced-security-controls-and-multi-tenant-isolation","depth":2,"children":[]},{"title":"Certificate Authority and Attestation Operations","slug":"certificate-authority-and-attestation-operations","depth":2,"children":[]},{"title":"Production Security Configuration","slug":"production-security-configuration","depth":2,"children":[]},{"title":"Security Monitoring and Compliance","slug":"security-monitoring-and-compliance","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/phalanetwork/606b937e9aa8a45b/kms/auth-eth/jest.config.js","/_mintlify/custom/phalanetwork/689b27803445aca6/kms/auth-eth/jest.integration.config.js","/_mintlify/custom/phalanetwork/f0772d963a5076c3/vmm/src/x25519.js"],"subdomain":"phalanetwork","siteName":"dstack","title":"Host API Security - dstack","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T08:50:01.178Z","originalFileLocation":"docs/security-research/extra-sec-ops/host-api-security.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Secure host management and orchestration API for dstack TEE infrastructure\">\u003cmeta data-mint-head name=\"application-name\" content=\"dstack\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Host API Security - dstack\">\u003cmeta data-mint-head property=\"og:description\" content=\"Secure host management and orchestration API for dstack TEE infrastructure\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"dstack\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://phalanetwork.mintlify.site/_mintlify/api/og/v2?division=extra-sec-ops\u0026amp;title=Host+API+Security\u0026amp;description=Secure+host+management+and+orchestration+API+for+dstack+TEE+infrastructure\u0026amp;theme=12e2df2e8005e235c2a7e23a\u0026amp;signature=50e282f5eb4cf64bdd6638093b2b137a6dd8a50aea2cc229b6ad88d834afdf5a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Host API Security - dstack\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Secure host management and orchestration API for dstack TEE infrastructure\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://phalanetwork.mintlify.site/_mintlify/api/og/v2?division=extra-sec-ops\u0026amp;title=Host+API+Security\u0026amp;description=Secure+host+management+and+orchestration+API+for+dstack+TEE+infrastructure\u0026amp;theme=12e2df2e8005e235c2a7e23a\u0026amp;signature=50e282f5eb4cf64bdd6638093b2b137a6dd8a50aea2cc229b6ad88d834afdf5a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"dstack\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0069ED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/security-research/extra-sec-ops/host-api-security.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://phalanetwork.mintlify.app/#organization\",\"name\":\"dstack\",\"url\":\"https://phalanetwork.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/phalanetwork/EDH2CSxg-w7_HARR/docs/public/logo/light.png?fit=max\u0026auto=format\u0026n=EDH2CSxg-w7_HARR\u0026q=85\u0026s=76209a44c466cba578ae1698c948891e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://phalanetwork.mintlify.app#website\",\"name\":\"dstack\",\"url\":\"https://phalanetwork.mintlify.app\",\"publisher\":{\"@id\":\"https://phalanetwork.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security#webpage\",\"url\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security\",\"name\":\"Host API Security\",\"description\":\"Secure host management and orchestration API for dstack TEE infrastructure\",\"dateModified\":\"2026-01-07T08:50:01.178Z\",\"isPartOf\":{\"@id\":\"https://phalanetwork.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Additional Reading\",\"item\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/before-reading\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"extra-sec-ops\",\"item\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/certbot-security\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Host API Security\",\"item\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security#article\",\"headline\":\"Host API Security\",\"name\":\"Host API Security\",\"description\":\"Secure host management and orchestration API for dstack TEE infrastructure\",\"url\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security\",\"mainEntityOfPage\":{\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/host-api-security#webpage\"},\"dateModified\":\"2026-01-07T08:50:01.178Z\",\"publisher\":{\"@id\":\"https://phalanetwork.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://phalanetwork.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"dstack\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"dstack\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/security-research/extra-sec-ops/host-api-security.md","siteName":"dstack","nav":{"global":null,"dropdowns":[{"dropdown":"Overview","pages":[{"group":"Welcome to DStack","icon":{"style":"solid","name":"party-horn"},"pages":[{"title":"Getting Started","href":"/docs"}]},{"group":"Introduction to DStack","icon":{"style":"regular","name":"hand-wave"},"pages":[{"title":"What is DStack?","href":"/docs/overview/introduction"},{"title":"DStack Architecture","href":"/docs/overview/what-is-dstack"}]},{"group":"Additional Reading","icon":{"style":"regular","name":"head-side-gear"},"pages":[{"title":"TDX Technology","href":"/docs/overview/key-features"},{"title":"Value Add","href":"/docs/overview/benefits"},{"title":"Terms / Glossary","href":"/docs/overview/glossary"}]}]},{"dropdown":"Getting Started","icon":{"style":"solid","name":"stars"},"pages":[{"title":"Start deploying apps with dstack","href":"/docs/getting-started/start"},{"group":"Application Deployment Guide ","icon":{"style":"solid","name":"rocket-launch"},"pages":[{"title":"Getting Started Now","href":"/docs/getting-started/install/app-jupiter-guide"}]},{"group":"DStack Framework Installation","icon":{"style":"solid","name":"download"},"pages":[{"title":"Installation","href":"/docs/getting-started/install/installation"},{"group":"Steps","icon":{"style":"duotone","name":"shoe-prints"},"pages":[{"title":"Step 1: Prerequisites \u0026 System Requirements","href":"/docs/getting-started/install/step-1-prerequisites"},{"title":"Step 2: Update Your Server for dstack Installation","href":"/docs/getting-started/install/step-2-update-server"},{"title":"Step 3 β Install Required Packages for dstack","href":"/docs/getting-started/install/step-3-install-required-packages"},{"title":"Step 4 β Build and Run dstack components","href":"/docs/getting-started/install/step-4-install-dstack-runtime"}]}]},{"group":"Cloud Deployment Preparation Manual","icon":{"style":"solid","name":"cloud-bolt"},"pages":[{"title":"Application Deployment Overview","href":"/docs/getting-started/first-deployment-steps/first-deployment"},{"title":"Full Dstack Deployment Guide","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-of-dstack-advanced"},{"group":"Advanced Deployment Steps","icon":{"style":"duotone","name":"shoe-prints"},"pages":[{"title":"Step 1: Clone and Setup Repository","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-1"},{"title":"Step 2: Compile and Run dstack-vmm","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-2"},{"title":"Step 3: Deploy the KmsAuth Contract","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-3"},{"title":"Step 4: Deploy KMS into CVM","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-4"},{"title":"Step 5: Deploy dstack-gateway in CVM","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-5"},{"title":"Step 6: Deploy Additional VMM Instances","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-6"},{"title":"Step 7: Deploy Applications","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-7"}]},{"group":"dstack deployment for dummies","icon":{"style":"duotone","name":"shoe-prints"},"pages":[{"title":"How to Pull \u0026 inspect the example container image","href":"/docs/getting-started/first-deployment-steps/fd-1"},{"title":"How to Write the dstack deployment manifest","href":"/docs/getting-started/first-deployment-steps/fd-2"},{"title":"How to Sign \u0026 push the image to your private registry","href":"/docs/getting-started/first-deployment-steps/fd-3"},{"title":"How to Verify a TDX Attestation \u0026 perform a remote proof of trust","href":"/docs/getting-started/first-deployment-steps/fd-5"},{"title":"Expose an API endpoint via the Gateway","href":"/docs/getting-started/first-deployment-steps/fd-6"},{"title":"How to Update, roll back, and tear down safely","href":"/docs/getting-started/first-deployment-steps/fd-7"}]}]},{"group":"Examples","icon":{"style":"regular","name":"circle-stop"},"pages":[{"title":"Tool Deployment Tutorials","href":"/docs/tutorials/super-quick-start"}]}]},{"dropdown":"Core Concepts","icon":{"style":"solid","name":"comet"},"pages":[{"group":"Diving Deep","icon":{"style":"solid","name":"star-sharp"},"pages":[{"title":"Component Summary","href":"/docs/concepts/overview"},{"title":"Component Glossary","href":"/docs/concepts/core-glossary"}]},{"group":"KSM, VMM \u0026 Gateway","icon":{"style":"solid","name":"code"},"pages":[{"title":"High Level Component Overview","href":"/docs/concepts/basic-components"},{"group":"Core Implementations","icon":{"style":"solid","name":"list-ol"},"pages":[{"title":"VMM Core","href":"/docs/concepts/core-vmm"},{"title":"Gateway Core","href":"/docs/concepts/core-gateway"},{"title":"KMS Core","href":"/docs/concepts/core-kms"},{"title":"Guest-Agent Core","href":"/docs/concepts/core-guest-agent"},{"title":"DStack-Util Core","href":"/docs/concepts/core-tdxctl"},{"title":"DStack-OS Core","href":"/docs/concepts/core-os"}]}]},{"group":"DStack Component Architecture","icon":{"style":"thin","name":"sitemap"},"pages":[{"title":"System Architecture","href":"/docs/concepts/architecture"},{"title":"Networking Architecture","href":"/docs/concepts/networking"}]}]},{"dropdown":"Security + Research","icon":{"style":"solid","name":"shield-plus"},"pages":[{"title":"Security \u0026 Research Section","href":"/docs/security-research/overview"},{"group":"DStack crypto","icon":{"style":"solid","name":"key"},"pages":[{"title":"Cryptography","href":"/docs/security-research/security-model"}]},{"group":"Key Component Infrastructure","icon":{"style":"solid","name":"dice-four"},"pages":[{"group":"tdx","pages":[{"title":"TDX Attestation Overview","href":"/docs/security-research/tdx-att/tdx-overview"},{"title":"TDX Security Architecture","href":"/docs/security-research/tdx-att/tdx-security-arch"},{"title":"TDX Quote Generation and Verification","href":"/docs/security-research/tdx-att/tdx-quote-gen"},{"title":"TDX Verification Security Model","href":"/docs/security-research/tdx-att/tdx-verification-model"},{"title":"TDX Integration Security and Guest Agent","href":"/docs/security-research/tdx-att/tdx-integration-review"},{"title":"TDX Threat Model and Security Guarantees","href":"/docs/security-research/tdx-att/tdx-threat-model-garentees"},{"title":"TDX Cryptographic Implementation Details","href":"/docs/security-research/tdx-att/tdx-implementation"}]},{"group":"vmm","pages":[{"title":"VMM Security Overview","href":"/docs/security-research/vmm/vmm-overview"},{"title":"TDX Measurement and Attestation in VMM","href":"/docs/security-research/vmm/vmm-tdx-attestation-and-measurement"},{"title":"VMM Key Management Integration","href":"/docs/security-research/vmm/vmm-key-management"},{"title":"VMM Implementation Security Details","href":"/docs/security-research/vmm/vmm-implementation"},{"title":"VMM Attestation and Verification Mechanisms","href":"/docs/security-research/vmm/vmm-attestation-and-verification"},{"title":"VMM Resource Protection and DoS Prevention","href":"/docs/security-research/vmm/vmm-dos-protection"},{"title":"VMM Security Verification Procedures","href":"/docs/security-research/vmm/vmm-procedures"},{"title":"VMM Integration Security Architecture","href":"/docs/security-research/vmm/vmm-integration-arch"}]},{"group":"gateway","pages":[{"title":"Gateway Security Overview","href":"/docs/security-research/gate/gate-overview"},{"title":"Gateway CVM Registration and Attestation","href":"/docs/security-research/gate/gate-cvm-registration"},{"title":"Gateway Cluster State Synchronization","href":"/docs/security-research/gate/gate-state-sync"},{"title":"Gateway Implementation Security Details","href":"/docs/security-research/gate/gate-implementation"},{"title":"Gateway Attestation and Verification Mechanisms","href":"/docs/security-research/gate/gate-attestation-verification"},{"title":"Gateway Connection Strategies and Load Balancing","href":"/docs/security-research/gate/gate-load-balancing"},{"title":"Gateway Cryptographic Implementation and Security Notes","href":"/docs/security-research/gate/gate-notes"}]},{"group":"kms","pages":[{"title":"KMS Security Overview","href":"/docs/security-research/kms/kms-overview"},{"title":"KMS Certificate Management and RA-TLS","href":"/docs/security-research/kms/kms-cert-manager"},{"title":"KMS Cryptographic Implementation Details","href":"/docs/security-research/kms/kms-implementation"},{"title":"KMS Verification and Audit Procedures","href":"/docs/security-research/kms/kms-audit-procedures"},{"title":"KMS Blockchain Integration","href":"/docs/security-research/kms/kms-blockchain-integration"},{"title":"KMS Security Architecture Details","href":"/docs/security-research/kms/kms-security-arch"},{"title":"KMS Security Properties and Guarantees","href":"/docs/security-research/kms/kms-security-props"},{"title":"KMS Security: Performance, Best Practices, and Threat Model","href":"/docs/security-research/kms/kms-security"}]}]},{"group":"Additional Reading","icon":{"style":"solid","name":"book-open"},"pages":[{"title":"Security Modules","href":"/docs/security-research/extra-sec-ops/before-reading"},{"group":"extra-sec-ops","pages":[{"title":"Certbot TEE Security","href":"/docs/security-research/extra-sec-ops/certbot-security"},{"title":"Cert Client Security","href":"/docs/security-research/extra-sec-ops/cert-client-security"},{"title":"CT Monitor Security","href":"/docs/security-research/extra-sec-ops/ct-monitor-security"},{"title":"IOHash Security Architecture","description":"Content-addressed storage and cryptographic integrity verification for dstack","href":"/docs/security-research/extra-sec-ops/iohash-security"},{"title":"Host API Security","href":"/docs/security-research/extra-sec-ops/host-api-security"}]}]}]},{"dropdown":"Tutorials","icon":{"style":"solid","name":"apple-whole"},"pages":[{"title":"Quick dstack Guide","description":"Fastest way to learn and deploy with dstack","href":"/docs/tutorials/index-quick-start"},{"group":"Additional Starter Guides","icon":{"style":"regular","name":"book"},"pages":[{"title":"Run basic Express.js in a TEE with Node.js","href":"/docs/tutorials/javascript-example"},{"title":"Deploy a FastAPI Python Script in a TEE with dstack","href":"/docs/tutorials/python-example"},{"title":"Deploy a Tokio API in a TEE with dstack","href":"/docs/tutorials/rust-example"}]}]},{"dropdown":"Community \u0026 Support","icon":"users","pages":[{"title":"Community \u0026 Ecosystem","href":"/docs/community-section/community"},{"title":"Contributing to dstack","href":"/docs/community-section/contribution"}]}]},"basePath":"","title":"Host API Security - dstack","deploymentId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","buildId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","dynamics":[],"chunks":[]}