Aembit Client ID
The Aembit Client ID method serves as a fallback for Client Workload identification when other suitable methods are unavailable. This method entails generating a unique ID by the Aembit Cloud, which is then provisioned to the Client Workload.
Applicable deployment type
Section titled “Applicable deployment type”This method is suitable for Aembit Edge-based deployments.
Configuration
Section titled “Configuration”Aembit Cloud
Section titled “Aembit Cloud”- Create a new Client Workload.
- Choose “Aembit Client ID” for client identification.
- Complete the remaining fields.
- Copy the newly generated ID that Aembit displays for the Aembit Client ID identifier.
- Save the Client Workload.

Client Workload on a virtual machine
Section titled “Client Workload on a virtual machine”During Agent Proxy installation, specify the CLIENT_WORKLOAD_ID environment variable.
CLIENT_WORKLOAD_ID=<ClientWorkloadID> AEMBIT_TENANT_ID=<TenantID> AEMBIT_AGENT_CONTROLLER_ID=<AgentControllerId> ./installClient Workload in Kubernetes
Section titled “Client Workload in Kubernetes”Add the aembit.io/agent-inject annotation to your Client Workload.
See the following example:
apiVersion: apps/v1kind: Deploymentmetadata: name: example-appspec: replicas: 1 selector: matchLabels: app: example-app template: metadata: labels: app: example-app annotations: aembit.io/agent-inject: "enabled" aembit.io/client-id: "7e75e718-7634-480b-9f7b-a07bb5a4f11d"Client Workload that uses the Edge SDK
Section titled “Client Workload that uses the Edge SDK”Pass the Aembit Client ID in the Edge SDK client’s clientWorkloadDetails option, as
os.environment.CLIENT_WORKLOAD_ID.
This TypeScript example builds the client with an OIDC ID Token Trust Provider object.
Replace each placeholder with your own value:
import { EdgeClient, trustProviders } from "@aembit/edge-sdk";
const client = new EdgeClient({ baseUrl: "https://<tenant>.ec.<stack>.aembit.io", clientId: "your-edge-sdk-client-id", trustProvider: trustProviders.oidcIdToken({ identityToken: "your-oidc-id-token", }), clientWorkloadDetails: { os: { environment: { CLIENT_WORKLOAD_ID: "7e75e718-7634-480b-9f7b-a07bb5a4f11d" } }, },});In Python, pass the same structure as client_workload_details:
from aembit_edge import EdgeClient, EdgeClientConfigfrom aembit_edge.trust_providers import OidcIdTokenTrustProvider
client = EdgeClient( EdgeClientConfig( base_url="https://<tenant>.ec.<stack>.aembit.io", client_id="your-edge-sdk-client-id", trust_provider=OidcIdTokenTrustProvider(identity_token="your-oidc-id-token"), client_workload_details={ "os": {"environment": {"CLIENT_WORKLOAD_ID": "7e75e718-7634-480b-9f7b-a07bb5a4f11d"}} }, ))