Skip to content

Integrating with Aembit involves two separate decisions. First, choose how your workload gets credentials at runtime: through infrastructure that intercepts its traffic, or through code or commands that request them explicitly. Second, choose how you manage the Aembit configuration behind every path: in the Aembit Tenant UI, through the Cloud API, or as Terraform code. This page maps all the paths so you can pick the combination that matches how you build.

Aembit divides its work between two planes. Both planes run in Aembit Cloud: Aembit Cloud serves as both the central control plane and management plane, making authorization decisions, evaluating policies, coordinating credential issuance, and providing administrative interfaces for configuration.Learn more. The management plane is where people and automation define the configuration. They write it through the UI of your Aembit Tenant: Aembit Tenants serve as isolated, dedicated environments within Aembit that provide complete separation of administrative domains and security configurations.Learn more, the Cloud API, or the Terraform provider. That configuration is the Access Policies, each binding a Client Workload, Trust Provider, Credential Provider, and Server Workload. The control plane authorizes workload access at runtime: it verifies the workload’s identity, evaluates the Access Policy, and brokers the credential. Nobody works in the control plane directly: Aembit Edge: Aembit Edge represents components deployed within your operational environments that enforce Access Policies by intercepting traffic, verifying identities, and injecting credentials just-in-time.Learn more components and the Edge SDK, Edge API, and Aembit CLI talk to it on a workload’s behalf. No workload gets a credential through the management plane, and no one configures Access Policies through the control plane.

PlaneWho works thereInterfacesResponsibility
Management planeAdministrators, security engineers, and platform automationTenant UI, Cloud API, Terraform providerDefine and maintain the Access Policies and their components, and audit access
Control planeWorkloads, through Aembit Edge components or the runtime pathsAgent Proxy, Edge SDK, Edge API, CLIVerify identity, evaluate the Access Policy, and broker the credential

For who does what in each plane and how the planes interact at runtime, see Planes and responsibilities.

Get credentials into your workload at runtime

Section titled “Get credentials into your workload at runtime”

Aembit gives you four ways to get a credential into a workload. They differ mainly in where the credential-handling logic lives: in infrastructure you deploy, or in code you write.

PathRuns asApplication changesBest for
Agent ProxyA component you deploy in your environmentNone, because it intercepts outbound trafficWorkloads you can’t modify, and long-running services on Kubernetes or virtual machines
Edge SDKA library inside your application processYour code calls the SDKApplications, AI agents, MCP servers, serverless functions, and short-lived jobs where you own the source but can’t run a proxy
Aembit CLIA command in your shell or pipelineNone, because you invoke a commandScripts, CI/CD steps, and interactive terminal use
Edge APIHTTP requests you write yourselfYour code calls the APILanguages the SDKs don’t cover, or when you need direct control over the HTTP layer

These four paths retrieve credentials at runtime. The Cloud API is the programmatic path for the other decision, creating and managing the configuration that authorizes them, which Manage your Aembit configuration covers.

The Agent Proxy path involves no application code beyond placeholder credentials, so a team can adopt Aembit entirely through the Tenant UI. Configure the Access Policy and its components there, deploy Agent Proxy, and leave the application unchanged.

The Edge SDK and Edge API paths put credential retrieval in your source. In-code retrieval suits environments where a proxy isn’t practical, such as serverless functions, ephemeral CI containers, and platforms where you don’t control the runtime. Choose the Edge SDK when a supported language library exists, because it handles workload attestation, token caching, and refresh for you. Drop to the Edge API when you need the raw HTTP layer or work in a language without an SDK.

The Aembit CLI retrieves credentials into environment variables, which fits scripts, CI/CD jobs, and local development.

Whichever path you choose, the integration pages cover the work that follows:

Every runtime path depends on the same Aembit configuration. A Trust Provider: Trust Providers validate Client Workload identities through workload attestation, verifying identity claims from the workload's runtime environment rather than relying on pre-shared secrets.Learn more verifies the workload’s identity, and a Credential Provider: Credential Providers obtain the specific access credentials—such as API keys, OAuth tokens, or temporary cloud credentials—that Client Workloads need to authenticate to Server Workloads.Learn more supplies the credential. An Access Policy: Access Policies define, enforce, and audit access between Client and Server Workloads by cryptographically verifying workload identity and contextual factors rather than relying on static secrets.Learn more authorizes a specific Client Workload: Client Workloads represent software applications, scripts, or automated processes that initiate access requests to Server Workloads, operating autonomously without direct user interaction.Learn more to reach a specific Server Workload: Server Workloads represent target services, APIs, databases, or applications that receive and respond to access requests from Client Workloads.Learn more.

You can manage that configuration three ways:

PathWorks asBest for
Aembit Tenant UIConfiguration screens in your TenantInteractive setup and day-to-day administration
Cloud APIREST endpoints for every Aembit resource, with an OpenAPI specificationAutomation, custom tooling, and clients you generate in your own language
Terraform providerInfrastructure-as-code resources such as aembit_server_workloadDeclarative, version-controlled configuration alongside your existing Terraform

The User Guide documents every component’s Tenant UI configuration screens, and the Access Policies section covers the Access Policy components the runtime paths depend on.

For example, the following Cloud API request and Terraform configuration each define the same Server Workload for a PostgreSQL database:

Terminal window
curl -X POST -L 'https://<tenant>.aembit.io/api/v1/server-workloads' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Example PostgreSQL workload",
"isActive": true,
"resourceSet": "<resource-set-id>",
"serviceEndpoint": {
"host": "database.example.com",
"port": 5432,
"requestedPort": 5432,
"appProtocol": "PostgreSQL",
"transportProtocol": "TCP",
"tls": true,
"requestedTls": true,
"tlsVerification": "full",
"workloadServiceAuthentication": {
"method": "Password Authentication",
"scheme": "Password"
}
}
}'

The Cloud API overview covers authentication and the request conventions, and the OpenAPI specification linked there documents every endpoint.