8000 improve anonymization for accountId by rtpascual · Pull Request #2523 · aws-amplify/amplify-backend · GitHub
[go: up one dir, main page]

Skip to content
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

improve anonymization for accountId #2523

Merged
merged 2 commits into from
Feb 19, 2025
Merged

improve anonymization for accountId #2523

merged 2 commits into from
Feb 19, 2025

Conversation

rtpascual
Copy link
Contributor
@rtpascual rtpascual commented Feb 19, 2025

Changes

Follow up for #2519.
Improve anonymization for accountId in response to aws-amplify/amplify-cli#14113 (comment).

Corresponding docs PR, if applicable:

Validation

Added unit test to make sure accountIds fall into different buckets.

Checklist

  • If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
  • If this PR requires a change to the Project Architecture README, I have included that update in this PR.
  • If this PR requires a docs update, I have linked to that docs PR above.
  • If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rtpascual rtpascual requested a review from a team as a code owner February 19, 2025 17:55
Copy link
changeset-bot bot commented Feb 19, 2025

🦋 Changeset detected

Latest commit: acc2388

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@aws-amplify/platform-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Amplifiyer
Amplifiyer previously approved these changes Feb 19, 2025
@@ -24,7 +24,7 @@ export class AccountIdFetcher {
new GetCallerIdentityCommand({})
);
if (stsResponse && stsResponse.Account) {
const accountIdBucket = Number(stsResponse.Account) / 100;
const accountIdBucket = stsResponse.Account.slice(0, -2);
this.accountId = uuidV5(
accountIdBucket.toString(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
accountIdBucket.toString(),
accountIdBucket,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, forgot to remove that

sobolk
8000 sobolk previously approved these changes Feb 19, 2025
@rtpascual rtpascual dismissed stale reviews from sobolk and Amplifiyer via acc2388 February 19, 2025 17:59
@rtpascual rtpascual merged commit ce8e4fc into main Feb 19, 2025
49 checks passed
@rtpascual rtpascual deleted the anonymize-telemetry branch February 19, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
0