2 Answers
- Newest
- Most votes
- Most comments
2
Hi,
I recommend you check public projects that already solved this, for example https://github.com/awslabs/git-secrets/blob/master/git-secrets In particular you will realize that they use the following regex to capture the access keys and secret keys
- Access Key:
(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}
- Secret Key:
[A-Za-z0-9/\+=]{40}
Hope this helps!
answered 9 months ago
Relevant content
- asked 7 months ago
- asked 2 years ago
- asked 10 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 23 days ago