Files
pruefwerk/compliance-agent/rules/gitleaks.toml
T
sharang 6c9756bebf
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Canceled after 0s
feat(secrets): Android signing passwords and Firebase keys; our gitleaks config only (#456)
2026-10-05 18:31:33 +00:00

40 lines
1.5 KiB
TOML

# Prüfwerk's gitleaks configuration: gitleaks' own rules plus the ones below.
# Always passed with --config, so a `.gitleaks.toml` in a scanned repository
# cannot switch rules off.
title = "Prüfwerk"
[extend]
useDefault = true
# Android release signing: a keystore or key password written into a Gradle
# build file signs every build with a secret everyone with the code has.
[[rules]]
id = "android-keystore-password"
description = "Android signing password in a Gradle build file"
regex = '''(?i)\b(?:storePassword|keyPassword)\b\s*(?:=|\()?\s*["']([^"'$\s]{4,})["']'''
path = '''(?i)\.gradle(?:\.kts)?$'''
secretGroup = 1
keywords = ["storepassword", "keypassword"]
# The same, kept in gradle.properties (RELEASE_STORE_PASSWORD=…).
[[rules]]
id = "android-signing-password-property"
description = "Android signing password in gradle.properties"
regex = '''(?im)^\s*[\w.]*(?:store|key|keystore|signing)[\w.]*password\s*[=:]\s*([^\s$]{4,})\s*$'''
path = '''(?i)(?:^|/)gradle\.properties$'''
secretGroup = 1
keywords = ["password"]
# The API key in a Firebase configuration (google-services.json,
# GoogleService-Info.plist). It identifies the app rather than authorising
# anything on its own, but it must be restricted to the app in the Google
# Cloud console; reported at low severity.
[[rules]]
id = "firebase-config-api-key"
description = "Firebase API key in the app's Firebase configuration"
regex = '''(AIza[\w-]{35})'''
path = '''(?i)(?:^|/)(?:google-services\.json|GoogleService-Info\.plist)$'''
secretGroup = 1
keywords = ["aiza"]