feat: add AWS delegated authentication support#1112
Draft
jchrostek-dd wants to merge 3 commits intomainfrom
Draft
feat: add AWS delegated authentication support#1112jchrostek-dd wants to merge 3 commits intomainfrom
jchrostek-dd wants to merge 3 commits intomainfrom
Conversation
- Move clippy allow attribute to correct position in auth_proof.rs - Reorder functions in client.rs (public function first, helpers below) - Consolidate site mapping examples into doc comment 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add support for AWS delegated authentication, allowing Lambda functions to authenticate with Datadog using their IAM role instead of static API keys. Changes: - Add delegated_auth module with STS proof generation and intake-key client - Add config: DD_ORG_UUID, DD_DELEGATED_AUTH_ENABLED - Integrate as Priority 1 in API key resolution with fallback - Add integration tests for delegated auth flow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Clippy was failing due to unwrap_used lint violations in test code. Replaced all .unwrap() calls with .expect() with descriptive messages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).
How it works:
GetCallerIdentityrequest/api/v2/intake-keyendpoint as authentication proofConfiguration:
DD_ORG_UUID- Datadog org UUID (auto-enables delegated auth when set)DD_DELEGATED_AUTH_ENABLED- Explicit enable/disable (optional)DD_DELEGATED_AUTH_REFRESH_INTERVAL- Key refresh interval (optional)Changes
bottlecap/src/delegated_auth/- STS proof generation and intake-key clientDD_ORG_UUID,DD_DELEGATED_AUTH_ENABLED,DD_DELEGATED_AUTH_REFRESH_INTERVALTest plan
cargo test)cargo fmt --checkpassescargo clippy -- -D warningspassesNote: Full integration testing requires configuring an intake mapping in Datadog for the Lambda's IAM role ARN.
🤖 Generated with Claude Code