Programmatic Identity Attestation for Microservices with Didit
Secure your containerized microservices by implementing robust programmatic identity attestation. This post explores how Didit, combined with Envoy Proxy, enables automated, headless identity verification for machine-to-machine.

Contents
In this guide
Jump to the part you need.
Automated Machine IdentityModern microservice architectures demand automated, programmatic methods for establishing and verifying machine identities, moving beyond traditional client-server authentication models.
Envoy as an Enforcement PointEnvoy Proxy excels as a critical enforcement point for identity attestation, capable of intercepting requests and integrating with external authorization services to validate service identities.
Programmatic Identity Attestation ChallengesImplementing programmatic identity attestation requires a robust, API-first identity verification platform that can handle machine-to-machine registration and credential management without human intervention or browser interaction.
Didit's AI-Native SolutionDidit provides the most agent-friendly identity verification platform, enabling programmatic registration and API key issuance in just two API calls, perfect for automated deployment pipelines and containerized environments.
The Need for Programmatic Identity in Containerized Microservices
In the dynamic landscape of modern cloud-native applications, microservices communicate constantly, often across ephemeral containers and diverse network boundaries. Traditional identity management, typically designed for human users, falls short when securing machine-to-machine interactions. Each microservice, whether it's a payment gateway, a data processing unit, or an authentication service, requires a verifiable identity. This is not just about authentication; it's about attestation—proving that a service is who it claims to be, and that it's authorized to perform specific actions.
Container orchestrators like Kubernetes provide mechanisms for managing workloads, but securing the communication channels and verifying the identities of the services themselves often falls to specialized tools. Programmatic identity attestation becomes crucial for several reasons: preventing unauthorized access, ensuring data integrity, compliance with regulatory standards, and enabling granular access control policies. Without a robust system, an attacker could impersonate a legitimate service, leading to data breaches or system compromise. This is where an AI-native, developer-first platform like Didit, combined with powerful tools like Envoy Proxy, can make a significant difference.
Envoy Proxy: The Edge of Trust for Microservices
Envoy Proxy has emerged as a cornerstone of modern service mesh architectures, acting as a high-performance, programmable L7 proxy. Its role extends beyond simple request routing to include advanced traffic management, observability, and, critically, security. Envoy can be deployed as a sidecar to each microservice, forming a mesh that intercepts all incoming and outgoing traffic. This strategic positioning makes Envoy an ideal enforcement point for programmatic identity attestation.
By leveraging Envoy's external authorization (ext_authz) filter, developers can offload identity verification to an external service. When a microservice sends a request, Envoy intercepts it, extracts relevant identity claims (e.g., from mTLS certificates, JWTs, or custom headers), and forwards these to an external authorization service. This service then validates the claims against a trusted identity provider. If the identity is attested and authorized, Envoy allows the request to proceed; otherwise, it rejects it. This pattern centralizes security logic, reduces boilerplate code in microservices, and ensures consistent policy enforcement across the entire mesh.
Didit's Role in Programmatic Identity Attestation
Didit, as an AI-native identity platform, is uniquely positioned to handle the programmatic identity needs of microservices. Our platform is designed for automated, headless operations, making it the most agent-friendly identity verification solution available. Instead of human users interacting with a UI, microservices can register, obtain credentials, and manage their identities entirely through APIs. This is critical for CI/CD pipelines and automated deployments where manual intervention is impractical.
Consider a scenario where a new microservice is deployed. Instead of a developer manually creating an API key, the deployment script can programmatically register the service with Didit. Our programmatic registration API allows for creating and verifying an identity in just two API calls: one to register with an email and password (or service principal equivalent), and another to verify a code (often retrieved from a secure, automated email parsing system or an internal secret management tool). The response immediately provides an API key, which the microservice can then use to authenticate its requests to other services or to Didit's own APIs for further identity-related operations.
Didit's modular architecture means that beyond initial registration, services can leverage other identity primitives programmatically. For instance, a service might need to perform an AML Screening check on data it processes, or use 1:1 Face Match for internal biometric authentication of privileged access attempts. The entire suite of Didit's capabilities, from ID Verification to Proof of Address, can be orchestrated via APIs, making it ideal for automating complex verification workflows within a microservice environment.
Integrating Didit with Envoy for Enhanced Security
The synergy between Didit and Envoy Proxy creates a powerful security perimeter for microservices. Here’s a high-level overview of how they can integrate:
- Service Registration: When a new microservice is provisioned, an automated script uses Didit's programmatic registration API to create an identity for it. Didit returns an API key and client ID.
- Credential Storage: The API key is securely stored, perhaps in a Kubernetes Secret or a dedicated secrets management solution, and injected into the microservice's environment.
- Envoy Configuration: The Envoy sidecar associated with the microservice is configured to use its ext_authz filter. This filter points to a custom authorization service.
- Authorization Service: This service acts as an intermediary. When Envoy forwards a request, the authorization service extracts the microservice's identity (e.g., from an injected header containing the Didit API key or an attested JWT). It then calls Didit's APIs to validate this identity and check its permissions or status (e.g., against a blocklist managed in Didit).
- Policy Enforcement: Based on Didit's response, the authorization service tells Envoy whether to allow or deny the request. This allows for dynamic, real-time identity attestation and policy enforcement.
This setup ensures that every microservice request is not just authenticated but also programmatically attested against a trusted identity provider. Didit's API-first design, combined with its ability to manage various identity states and perform checks like Liveness Detection (for more sophisticated biometric machine identities) or Age Estimation (for services handling age-restricted content), provides a comprehensive identity solution for even the most complex microservice architectures. The ability to manage blacklists and monitor identity status via API further enhances the security posture, allowing for rapid response to compromised services.
How Didit Helps
Didit is engineered from the ground up to be the open, modular identity layer for the internet, making it perfect for the demands of containerized microservices. Our platform provides a suite of identity primitives accessible via clean APIs, allowing for seamless programmatic integration. The core advantages for microservice identity attestation include:
- Programmatic Registration: Register and obtain API credentials in just two API calls, fully headless, without requiring a browser or manual intervention. This is ideal for CI/CD pipelines and automated deployments.
- API-First Design: All Didit features, including ID Verification, AML Screening & Monitoring, and custom workflows, are accessible via robust APIs, enabling microservices to orchestrate complex identity checks.
- Modular Architecture: Build custom, node-based verification flows directly from the Business Console or programmatically, allowing for tailored identity attestation logic specific to your microservices.
- AI-Native Capabilities: Leverage Didit's AI-powered engine for fast, accurate identity verification, even for machine identities with specific attributes.
- Core KYC: With Didit's pay-per-use pricing, you can start verifying identities for your microservices without upfront costs, so you can experiment and scale without financial barriers.
By providing a robust, automated, and flexible identity platform, Didit empowers organizations to build secure, compliant, and highly efficient microservice architectures. The ability to manage and attest machine identities programmatically is no longer a luxury but a necessity, and Didit is at the forefront of delivering this capability.
Ready to Get Started?
Ready to see Didit in action? Get a free demo today.
Start verifying identities for free with Didit's free tier.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Blog questions
Who writes the Didit blog?
Which topics does the blog cover?
Is the blog available in my language?
Where do I find product updates?
Are these posts legal advice?
How do I find posts on one topic?
Are posts dated?
Do posts link to the docs?
Is the blog the same as the docs?
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


