Difference between AWS Access Key IDs and Secret Access Keys

0

Hi, I am trying to create a script that picks up Secret Access Keys and want to filter out the Access Key IDs. So far I've noticed Secret Access Keys seem to be longer (usually character length of 40) than Access Key IDs (usually character length of 20). Is this 100% accurate? And are there any other differences I can use?

Thank you.

2 Antworten
1
Akzeptierte Antwort

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

  1. Access Key: (A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}
  2. Secret Key: [A-Za-z0-9/\+=]{40}

Hope this helps!

AWS
beantwortet vor 5 Monaten
profile picture
EXPERTE
überprüft vor einem Monat
profile pictureAWS
EXPERTE
überprüft vor 5 Monaten
0

thank you four super

beantwortet vor 5 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen