Add Business Metrics for Credential Providers#6443
Merged
S-Saranya1 merged 10 commits intomasterfrom Sep 29, 2025
Merged
Conversation
* Feature ID implementation for S3 Express Bucket * Address PR feedback * Fixing checkstyles
* Feature IDs implementation for credentials * Fixing test failure * Adding unit tests
…iders (#6426) * Feature IDs implementation for STS credentials * Add business metric for SSO Creds * Address PR feedback * Adding missed test files * Additional changes * Fixing checkstyle * Address PR feedback * Additional Changes: Address PR feedback Adding Unit tests Apply PR feedback to previous PR * Fixing sonarqube issues and test failures * Adding region dependency in auth-tests
…ure-ids-implementation
…mentation' into feature/master/feature-ids-implementation
Removing one feature specific changelog
…m:aws/aws-sdk-java-v2 into feature/master/feature-ids-implementation
|
L-Applin
approved these changes
Sep 26, 2025
|
This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.


Adds business metric tracking for credentials.
Motivation and Context
Keeping track of how users are providing credentials to SDKs and which credentials providers are being used is useful. This implementation adds automatic tracking of all 21 credential provider types through User-Agent headers, replacing the legacy cfg/auth-source format with a standardized business metrics system that provides complete visibility into authentication patterns and credential provider chains across AWS applications.
Modifications
This PR adds business metrics support to all these credentials providers:
Key Changes:
BusinessMetricFeatureId.javasourceon some builders for credential providers to link more than one metrics value togethercfg/auth-source#statformat with standardized business metrics (e.g.,m/D,k,h)ApplyUserAgentStage.javato emit business metrics instead of cfg/auth-source, updated User-Agent headers to include credential provider chain informationproviderName()methods to return business metric codes instead of class namesTesting
(CREDENTIALS_PROFILE_SOURCE_PROFILE, CREDENTIALS_PROFILE_NAMED_PROVIDER, CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN, CREDENTIALS_SSO, CREDENTIALS_PROFILE_SSO, CREDENTIALS_PROFILE_SSO_LEGACY) , so performed one-off integration tests for these scenarios instead.
o,n,i(Profile → Source Profile → Assume Role) andp,0,i(Profile → Instance Profile → Assume Role).Screenshots (if appropriate)
Integ test wirelogs-




p,0,i(Profile → Instance Profile → Assume Role).o,n,i (Profile → Source Profile → Assume Role)
r,s(Profile - SSO)
q,k (profile - WebIdentityToken)
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License