Redact AWS account ID in password audit post !9
1 file changed, +4 −4
Layout: unified · split
content/blog/2026-02-21-auditing-aws-passwords.org +4 −4
| @@ -76,9 +76,9 @@ The output is a JSON file with two top-level keys: ~metadata~ and ~PasswordPolic | |||
| 76 | "aws_profile": "default", | 76 | "aws_profile": "default", |
| 77 | "aws_region": "eu-west-1", | 77 | "aws_region": "eu-west-1", |
| 78 | "aws_caller_identity": { | 78 | "aws_caller_identity": { |
| 79 | "UserId": "214941490075", | 79 | "UserId": "123456789012", |
| 80 | "Account": "214941490075", | 80 | "Account": "123456789012", |
| 81 | "Arn": "arn:aws:iam::214941490075:root" | 81 | "Arn": "arn:aws:iam::123456789012:root" |
| 82 | } | 82 | } |
| 83 | }, | 83 | }, |
| 84 | "PasswordPolicy": { | 84 | "PasswordPolicy": { |
| @@ -162,7 +162,7 @@ file. | |||
| 162 | # working_directory: /home/cloudshell-user | 162 | # working_directory: /home/cloudshell-user |
| 163 | # aws_profile: default | 163 | # aws_profile: default |
| 164 | # aws_region: eu-west-1 | 164 | # aws_region: eu-west-1 |
| 165 | # aws_caller_identity: {'UserId': '214941490075', 'Account': '214941490075', 'Arn': 'arn:aws:iam::214941490075:root'} | 165 | # aws_caller_identity: {'UserId': '123456789012', 'Account': '123456789012', 'Arn': 'arn:aws:iam::123456789012:root'} |
| 166 | 166 | ||
| 167 | Rule#,Policy-Item,Expected,Actual,Result | 167 | Rule#,Policy-Item,Expected,Actual,Result |
| 168 | 1,Minimum password length,8,8,PASS | 168 | 1,Minimum password length,8,8,PASS |