File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ Each of these options must appear first on the command line.
162162 checks are added:
163163
164164 - AWS Access Key IDs via ``(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16} ``
165+ - Amazon Bedrock API keys. Long-lived via ``ABSK[A-Za-z0-9+/]{109,}=* `` and short-lived via ``bedrock-api-key-YmVkcm9jay5hbWF6b25hd3MuY29t ``
165166 - AWS Secret Access Key assignments via ":" or "=" surrounded by optional
166167 quotes
167168 - AWS account ID assignments via ":" or "=" surrounded by optional quotes
Original file line number Diff line number Diff line change @@ -237,6 +237,8 @@ register_aws() {
237237 local opt_quote=" ${quote} ?"
238238 add_config ' secrets.providers' ' git secrets --aws-provider'
239239 add_config ' secrets.patterns' ' (A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'
240+ add_config ' secrets.patterns' ' ABSK[A-Za-z0-9+/]{109,}=*' # Bedrock long-lived - https://docs.aws.amazon.com/bedrock/latest/userguide/api-keys-generate.html
241+ add_config ' secrets.patterns' ' bedrock-api-key-YmVkcm9jay5hbWF6b25hd3MuY29t' # Bedrock short-lived - https://docs.aws.amazon.com/bedrock/latest/userguide/api-keys-generate.html
240242 add_config ' secrets.patterns' " ${opt_quote}${aws} (SECRET|secret|Secret)?_?(ACCESS|access|Access)?_?(KEY|key|Key)${opt_quote}${connect}${opt_quote} [A-Za-z0-9/\+=]{40}${opt_quote} "
241243 add_config ' secrets.patterns' " ${opt_quote}${aws} (ACCOUNT|account|Account)_?(ID|id|Id)?${opt_quote}${connect}${opt_quote} [0-9]{4}\-?[0-9]{4}\-?[0-9]{4}${opt_quote} "
242244 add_config ' secrets.allowed' ' AKIAIOSFODNN7EXAMPLE'
Original file line number Diff line number Diff line change @@ -286,6 +286,8 @@ checks are added:
286286.IP \(bu 2
287287AWS Access Key IDs via \fB (A3T[A \- Z0 \- 9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A \- Z0 \- 9]{16} \fP
288288.IP \(bu 2
289+ Amazon Bedrock API keys. Long\- lived via \fB ABSK[A-Za-z0-9+/]{109,}=* \fP and short\- lived via \fB bedrock \- api \- key \- YmVkcm9jay5hbWF6b25hd3MuY29t \fP
290+ .IP \(bu 2
289291AWS Secret Access Key assignments via ":" or "=" surrounded by optional
290292quotes
291293.IP \(bu 2
Original file line number Diff line number Diff line change @@ -281,6 +281,8 @@ load test_helper
281281 echo " $output " | grep -F ' (A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'
282282 echo " $output " | grep " AKIAIOSFODNN7EXAMPLE"
283283 echo " $output " | grep " wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
284+ echo " $output " | grep -F ' ABSK[A-Za-z0-9+/]{109,}=*'
285+ echo " $output " | grep -F ' bedrock-api-key-YmVkcm9jay5hbWF6b25hd3MuY29t'
284286}
285287
286288@test " Adds providers" {
You can’t perform that action at this time.
0 commit comments