找找Gitleaks的秘诀
吉特莱克
(原始内容存档于2019-09-29) (英语). ``` ┌─○───┐ │ │╲ │ │ │ ○ │ │ ○ ░ │ └─░───┘
[呻
> Gitleaks 特性完成。 我不会把新的特征 合并到吉特拉克。 未来的发行将只是安全补丁。 我把我的注意力转移到 [更好的leaks] (https://github.com/betterleaks/betterleaks)
[许可证]:./LICENSE
[警 : https://img.shields.io/github/license/gitleaks/gitleaks.svg
[go-docs-badge:https://pkg.go.dev/badge/github.com/gitleaks/gitleaks/v8?status] (英语).
[去文件]:https://pkg.go.dev/github.com/zricethezav/gitleaks/v8
[酒吧建设]:https://github.com/gitleaks/gitleaks/actions/workflows/test.yml/badge.svg
[建造]:https://github.com/gitleaks/gitleaks/actions/workflows/test.yml
[去报告卡-徽:https://goreportcard.com/badge/github.com/gitleaks/gitleaks/v8]
[去报卡]:https://goreportcard.com/report/github.com/gitleaks/gitleaks/v8
[dockhub]:https://hub.docker.com/r/zricethezav/gitleaks(英语:ZZURL8Z).
[dockerhub-badge:https://img.shields.io/docker/pulls/zricethezav/gitleaks.svg] (英语).
[gi-行动]:https://github.com/gitleaks/gitleaks-action
[gitleaks-badge:https://img.shields.io/badge/protected%20by-gitleaks-blue] (英语)
[GitHubZ动作测试][障碍-建 [建
[Docker] [dockershub-badge] [dockershub] [dockershub] (英语).
[Gitleaks Action] [gitleaks-badge] [gitleaks-action] (英语).
[去Doc] [去docs-badge] [去docs]
[去报卡] [去报卡] [去报卡]
[License][badge-license] [许可证]
Gitleaks是一个工具,用于** 检测** 秘密,如密码,API 密钥,和在git repos,文件,以及任何你想通过"stdin"向它扔出的其他东西等. 如果你想了解更多检测引擎如何运作,
~ / 代码( 主机) gitleaks git - v
页:1 │╲ │○. ○ . ░
发现:"出口 BUNDLE ENTERPRIESE CONTRIBSYS COM=咖啡厅:死蜂", 秘密:咖啡馆:死蜂f 规则ID: sidekiq-secret En: 2.609850. 文件: cmd/基因/配置/规则/sidekiq.go 线路: 23 提交:cd5226711335c68be1e720b318b7bc3135a30eb2 作者: 约翰 电子邮件:[email protected] 日期:2022-08-03T1
.gitleaksignore 指纹 (文件:规则:行) 以位置进行匹配,而不是秘密内容
私有密钥正则表达式是贪婪的
gitleaks git --pre-commit --staged 无法检测已上传的文件中的秘密信息
为 SQL Server 连接字符串创建规则
为 Supabase 秘密 API 密钥和个人访问令牌添加检测规则
规则请求:检测包含内联凭据的数据库连接字符串 (postgres/MySQL/MongoDB)
规则请求: 检测 Supabase `service_role` JWT (与安全的 `anon` 密钥不同)
添加 Composio API 密钥规则 (ak_, oak_, uak_)
`gitleaks git` 在 `git log` 将任何内容写入 stderr 时会默默地报告 "未发现泄漏",并退出 0 (默认情况下,git-crypt 仓库受到影响)
perf: detectRule() 在每个匹配周期中调用 r.Regex.FindAllStringIndex 两次,每次扫描时都会加倍执行正则表达式操作