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

Make example AWS UUIDS follow a specific pattern #1070

Merged

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Sep 27, 2022

SUMMARY

Various AWS IAM resources have UUID which follow a specific pattern. Similarly AWS accounts are all 12 digit numbers (text aliases in a couple of cases). To minimize the risk of accidental data leaks use a consistent Account ID in examples (123456789012), and a specific format for the UUIDS: (AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)12345EXAMPLE54321

While this does nothing about historic data, having consistency makes it easier to prevent future leaks.

Note: We should follow this up with an update to the developer docs, however I'd like to get this in prior to 5.0.0

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

plugins/modules/autoscaling_group_info.py
plugins/modules/cloudformation.py
plugins/modules/ec2_ami.py
plugins/modules/ec2_ami_info.py
plugins/modules/ec2_eni_info.py
plugins/modules/ec2_instance.py
plugins/modules/ec2_instance_info.py
plugins/modules/ec2_metadata_facts.py
plugins/modules/ec2_security_group.py
plugins/modules/ec2_security_group_info.py
plugins/modules/ec2_snapshot_info.py
plugins/modules/elb_application_lb.py
plugins/modules/elb_application_lb_info.py
plugins/modules/iam_user_info.py
plugins/modules/kms_key.py
plugins/modules/kms_key_info.py
plugins/modules/lambda.py
plugins/modules/rds_instance_info.py
plugins/modules/rds_option_group.py
plugins/modules/rds_option_group_info.py
plugins/modules/rds_snapshot_info.py
plugins/modules/rds_subnet_group.py

ADDITIONAL INFORMATION

While the 'secret' nature of these UUIDs is debatable (they're closer to user names than passwords), deliberately mangling them makes it easier for InfoSec teams to spot when their secret counterparts may have been leaked in combination with a real 'public' part.

@github-actions
Copy link

github-actions bot commented Sep 27, 2022

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@softwarefactory-project-zuul

This comment was marked as outdated.

@alinabuzachis
Copy link
Collaborator

@tremble changelog needed!

@softwarefactory-project-zuul

This comment was marked as outdated.

tremble added a commit to tremble/amazon.aws that referenced this pull request Sep 28, 2022
@softwarefactory-project-zuul

This comment was marked as outdated.

@tremble
Copy link
Contributor Author

tremble commented Sep 28, 2022

recheck

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Sep 28, 2022
@softwarefactory-project-zuul

This comment was marked as outdated.

@tremble
Copy link
Contributor Author

tremble commented Sep 28, 2022

regate

@softwarefactory-project-zuul

This comment was marked as outdated.

softwarefactory-project-zuul bot pushed a commit that referenced this pull request Sep 29, 2022
Make example AWS UUIDS follow a specific pattern - RDS

SUMMARY
Various AWS IAM resources have UUID which follow a specific pattern.  Similarly AWS accounts are all 12 digit numbers (text aliases in a couple of cases).  To minimize the risk of accidental data leaks use a consistent Account ID in examples (123456789012), and a specific format for the UUIDS: (AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)12345EXAMPLE54321
While this does nothing about historic data, having consistency makes it easier to prevent future leaks.
Note: We should follow this up with an update to the developer docs, however I'd like to get this in prior to 5.0.0
Split from #1070 due to test concurrency problems
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
plugins/modules/rds_instance_info.py
plugins/modules/rds_option_group.py
plugins/modules/rds_option_group_info.py
plugins/modules/rds_snapshot_info.py
plugins/modules/rds_subnet_group.py
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis <None>
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 11s
✔️ build-ansible-collection SUCCESS in 5m 21s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 10m 26s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 8m 36s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 8m 14s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 5m 32s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 32s
✔️ ansible-test-splitter SUCCESS in 2m 33s
✔️ integration-amazon.aws-1 SUCCESS in 36m 21s
✔️ integration-amazon.aws-2 SUCCESS in 19m 38s
✔️ integration-amazon.aws-3 SUCCESS in 13m 32s
✔️ integration-amazon.aws-4 SUCCESS in 10m 49s
✔️ integration-amazon.aws-5 SUCCESS in 53m 52s
✔️ integration-amazon.aws-6 SUCCESS in 39m 18s
✔️ integration-amazon.aws-7 SUCCESS in 38m 21s
✔️ integration-amazon.aws-8 SUCCESS in 52m 02s
✔️ integration-amazon.aws-9 SUCCESS in 18m 45s
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
⚠️ integration-amazon.aws-14 SKIPPED
⚠️ integration-amazon.aws-15 SKIPPED
⚠️ integration-amazon.aws-16 SKIPPED
⚠️ integration-amazon.aws-17 SKIPPED
⚠️ integration-amazon.aws-18 SKIPPED
✔️ integration-community.aws-1 SUCCESS in 25m 06s
✔️ integration-community.aws-2 SUCCESS in 46m 01s
✔️ integration-community.aws-3 SUCCESS in 33m 54s
✔️ integration-community.aws-4 SUCCESS in 38m 00s
✔️ integration-community.aws-5 SUCCESS in 13m 02s
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 14s

@softwarefactory-project-zuul
Copy link
Contributor

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

✔️ ansible-galaxy-importer SUCCESS in 4m 46s
✔️ build-ansible-collection SUCCESS in 5m 39s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 10m 23s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 10m 42s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 9m 59s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 49s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 52s
✔️ ansible-test-splitter SUCCESS in 3m 12s
integration-amazon.aws-1 FAILURE in 1h 00m 58s
✔️ integration-amazon.aws-2 SUCCESS in 17m 40s
✔️ integration-amazon.aws-3 SUCCESS in 12m 06s
✔️ integration-amazon.aws-4 SUCCESS in 10m 20s
✔️ integration-amazon.aws-5 SUCCESS in 54m 28s
✔️ integration-amazon.aws-6 SUCCESS in 40m 51s
✔️ integration-amazon.aws-7 SUCCESS in 41m 41s
✔️ integration-amazon.aws-8 SUCCESS in 53m 25s
✔️ integration-amazon.aws-9 SUCCESS in 17m 49s
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
⚠️ integration-amazon.aws-14 SKIPPED
⚠️ integration-amazon.aws-15 SKIPPED
⚠️ integration-amazon.aws-16 SKIPPED
⚠️ integration-amazon.aws-17 SKIPPED
⚠️ integration-amazon.aws-18 SKIPPED
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 57s

@tremble
Copy link
Contributor Author

tremble commented Sep 29, 2022

regate

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 4m 48s
✔️ build-ansible-collection SUCCESS in 4m 53s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 8m 27s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 8m 46s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 9m 17s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 7m 35s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 08s
✔️ ansible-test-splitter SUCCESS in 2m 51s
✔️ integration-amazon.aws-1 SUCCESS in 36m 44s
✔️ integration-amazon.aws-2 SUCCESS in 17m 52s
✔️ integration-amazon.aws-3 SUCCESS in 12m 52s
✔️ integration-amazon.aws-4 SUCCESS in 9m 36s
✔️ integration-amazon.aws-5 SUCCESS in 55m 45s
✔️ integration-amazon.aws-6 SUCCESS in 45m 26s
✔️ integration-amazon.aws-7 SUCCESS in 30m 38s
✔️ integration-amazon.aws-8 SUCCESS in 37m 49s
✔️ integration-amazon.aws-9 SUCCESS in 15m 41s
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
⚠️ integration-amazon.aws-14 SKIPPED
⚠️ integration-amazon.aws-15 SKIPPED
⚠️ integration-amazon.aws-16 SKIPPED
⚠️ integration-amazon.aws-17 SKIPPED
⚠️ integration-amazon.aws-18 SKIPPED
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 13s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 156f977 into ansible-collections:main Sep 29, 2022
@tremble tremble deleted the gitleaks branch October 21, 2022 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review docs integration tests/integration mergeit Merge the PR (SoftwareFactory) module module plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants