You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add AWS delegated authentication support (#1112)
## Summary
Add support for AWS delegated authentication, allowing Lambda functions
to authenticate with Datadog using their IAM role instead of static API
keys. This mirrors the implementation in the main Datadog agent ([PR
#46272](DataDog/datadog-agent#46272)).
**How it works:**
1. Lambda function's IAM role signs an STS `GetCallerIdentity` request
2. The signed request is sent to Datadog's `/api/v2/intake-key` endpoint
as authentication proof
3. If the role is configured in Datadog's intake mapping, a managed API
key is returned
4. Falls back to other API key methods (Secrets Manager, KMS, SSM,
static) if delegated auth fails
**Note**: This function is in preview, customers will currently need to
request access to use it.
## Tests
- [x] Added an integration test that uses this new auth flow, verifies
that we have logs in our Datadog Serverless account for this new lambda.
Note that the IAM role needs to be added to a Datadog account mapping so
the IAM role we are using for this integ test is hardcoded to be the
same regardless of who is running it.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments