Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update backend/AGENTS.md

Matheus Nogueira918380336376
diff --git a/backend/AGENTS.md b/backend/AGENTS.md
index 3013378ec7..5b2d3709c9 100644
--- a/backend/AGENTS.md
+++ b/backend/AGENTS.md
@@ -1239,7 +1239,6 @@ EE routes register before community routes so they can override/extend endpoints
- PR checks are realtime scans with `trigger: pull-request`, gated on `isScanNewCommitsEnabled`. Webhook handlers only enqueue; `processGitHubPullRequestEvent` does the work. The check run is created before the scan, with the scan's ID as its `external_id`, which is how re-runs and skip actions find the scan.
- Every exit of a PR scan closes its check (including the stuck-scan reaper, which also fails realtime scans left `queued`), since a check left open blocks merging when it is required.
- Fork PRs aren't scanned: they get a `skipped` check under the same name, unless the commit already has one of our checks (checks belong to the commit, so it would replace a real result).
-- Findings returned by the API carry a derived `metadata` (`SecretScanningFindingMetadataSchema`, not a column); `pullRequests` comes from completed PR scans' `metadata.findingIds`.
**Dynamic secret lease secrets needed at revoke time go in `dynamic_secret_leases.encryptedLeaseData`**, never in `externalEntityId` or `config` (both plaintext, and `externalEntityId` is returned by every lease route and logged in audit events). A provider opts in by listing the `create()` `data` keys in `persistedLeaseFields`; the lease service encrypts them with the project's SecretManager key and every revoke path passes them back as `metadata.leaseData`. Lease routes return `SanitizedDynamicSecretLeaseSchema` so the column never reaches a response. Secret *config* fields are listed separately in `DYNAMIC_SECRET_SECRET_FIELDS` (`providers/redact.ts`), as dotted paths so nested secrets work (`clientAuth.clientSecret`): reads strip them via `redactStoredInputs`, and an update that omits one keeps the stored value via `restoreOmittedSecretFields`, because the update merge is shallow.