mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
feat(rules): Add 1Password secret key detection (#1834)
* Add `1password-secret-key` detection * Document key details * Update cmd/generate/config/rules/1password.go Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com> * Generate new `.toml` * Use `GenerateSampleSecrets` to test more scenarios * Comment lowercase `fps` * Decrease entropy --------- Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
This commit is contained in:
1 parent
d1c77598da
commit
23cb69fba4
5 files changed
+77
-1
No files matched your search
Vendored
+6
@@ -1,6 +1,12 @@
|
||||
title = "gitleaks config"
|
||||
# https://learnxinyminutes.com/docs/toml/ for toml reference
|
||||
|
||||
[[rules]]
|
||||
description = "1Password Secret Key"
|
||||
id = "1password-secret-key"
|
||||
regex = '''A3-[A-Z0-9]{6}-(?:(?:[A-Z0-9]{11})|(?:[A-Z0-9]{6}-[A-Z0-9]{5}))-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}'''
|
||||
tags = ["1Password"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
id = "aws-access-key"
|
||||
|
||||
Reference in new issue
Block a user