Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
make sure to log all parameters from findings
Matheus Nogueira75be425c5cba
diff --git a/backend/src/ee/services/secret-scanning-v2/secret-scanning-v2-fns.ts b/backend/src/ee/services/secret-scanning-v2/secret-scanning-v2-fns.tsindex 1bab9b29b6..3224ac324a 100644--- a/backend/src/ee/services/secret-scanning-v2/secret-scanning-v2-fns.ts+++ b/backend/src/ee/services/secret-scanning-v2/secret-scanning-v2-fns.ts@@ -324,35 +324,10 @@ export async function scanFile(inputPath: string, configPath?: string): Promise<}}-/**- * `details` is plaintext jsonb, so its contents are picked field by field rather than spread from- * the scanner's output. The detected secret is not reported in one predictable place: alongside the- * top-level `Match`/`Secret` pair, betterleaks repeats it in every component of a multi-part match- * and reports `CaptureGroups`, the credential split into named parts. A spread hands each new one- * of those straight to the database, and nothing downstream reads the secret anyway.- *- * `Link` is the one field that moved: betterleaks no longer reports it at the top level, so a full- * scan takes the equivalent from `Attributes.url`. Diff scans build their own and keep it.- */export const toFindingDetails = (finding: SecretMatch): unknown =>titleCaseToCamelCase({- Description: finding.Description,- StartLine: finding.StartLine,- EndLine: finding.EndLine,- StartColumn: finding.StartColumn,- EndColumn: finding.EndColumn,- File: finding.File,- Link: finding.Link ?? finding.Attributes?.url ?? "",- SymlinkFile: finding.SymlinkFile,- Commit: finding.Commit,- Entropy: finding.Entropy,- Author: finding.Author,- Email: finding.Email,- Date: finding.Date,- Message: finding.Message,- Tags: finding.Tags,- RuleID: finding.RuleID,- Fingerprint: finding.Fingerprint+ ...finding,+ Link: finding.Link ?? finding.Attributes?.url ?? ""});export const scanGitRepositoryAndGetFindings = async (