-
Notifications
You must be signed in to change notification settings - Fork 940
Add Business Metrics for Credential Providers #6443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
S-Saranya1
merged 10 commits into
master
from
feature/master/feature-ids-implementation
Sep 29, 2025
Merged
Add Business Metrics for Credential Providers #6443
S-Saranya1
merged 10 commits into
master
from
feature/master/feature-ids-implementation
Sep 29, 2025
Conversation
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
* 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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
no-api-surface-area-change
Indicate there is no API surface area change and thus API surface area review is not required
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.java
source
on some builders for credential providers to link more than one metrics value togethercfg/auth-source#stat
format with standardized business metrics (e.g.,m/D,k,h
)ApplyUserAgentStage.java
to 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 install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License