Skip to content

Commit

Permalink
feat(history): filter out various environment variables containing po…
Browse files Browse the repository at this point in the history
…tential secrets (#2174)
  • Loading branch information
drmorr0 authored Jun 20, 2024
1 parent 1273889 commit b06b7b5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions crates/atuin-client/src/secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b06b7b5

Please sign in to comment.