mirror of
https://github.com/atuinsh/atuin.git
synced 2025-01-22 14:18:59 +01:00
feat(history): filter out various environment variables containing potential secrets (#2174)
This commit is contained in:
parent
12738895ff
commit
b06b7b509a
@ -7,6 +7,26 @@ pub static SECRET_PATTERNS: &[(&str, &str, &str)] = &[
|
||||
"AKIA[0-9A-Z]{16}",
|
||||
"AKIAIOSFODNN7EXAMPLE",
|
||||
),
|
||||
(
|
||||
"AWS secret access key env var",
|
||||
"AWS_ACCESS_KEY_ID",
|
||||
"export AWS_ACCESS_KEY_ID=KEYDATA",
|
||||
),
|
||||
(
|
||||
"AWS secret access key env var",
|
||||
"AWS_ACCESS_KEY_ID",
|
||||
"export AWS_ACCESS_KEY_ID=KEYDATA",
|
||||
),
|
||||
(
|
||||
"Microsoft Azure secret access key env var",
|
||||
"AZURE_.*_KEY",
|
||||
"export AZURE_STORAGE_ACCOUNT_KEY=KEYDATA",
|
||||
),
|
||||
(
|
||||
"Google cloud platform key env var",
|
||||
"GOOGLE_SERVICE_ACCOUNT_KEY",
|
||||
"export GOOGLE_SERVICE_ACCOUNT_KEY=KEYDATA",
|
||||
),
|
||||
(
|
||||
"Atuin login",
|
||||
r"atuin\s+login",
|
||||
|
Loading…
Reference in New Issue
Block a user