Skip to content

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

claude md updates

Andrey8b942a2a1030
diff --git a/CLAUDE.md b/CLAUDE.md
index 3391f56ec8..ec263d174f 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -148,6 +148,12 @@ for product vocabulary only: resolving the resource a request names, notificatio
Any rule about what is *allowed* belongs in the resource, or the product's own API and the shared API
stop agreeing.
+Auto-approval rules (`approval-policy/auto-approval/`) live on the policy and are evaluated once in
+`createRequest`, outside any transaction, failing closed. Another service becomes checkable by adding a
+provider to `AUTO_APPROVAL_PROVIDER_REGISTRY`, keyed by its App Connection, not by per-product code. A
+resource gates them per request with `allowsAutoApproval`. The stored evidence holds data fetched from
+that service, so responses return only its outcome (`autoApproval`), never `autoApprovalEvidence`.
+
### API Layer (Frontend)
React Query + Axios with query key factories per domain. Each API domain in `frontend/src/hooks/api/` has `queries.tsx`, `mutations.tsx`, and `types.tsx` — see `frontend/CLAUDE.md` for conventions.
diff --git a/backend/src/ee/services/pam/CLAUDE.md b/backend/src/ee/services/pam/CLAUDE.md
index d6d98b0aa7..d46bcafacf 100644
--- a/backend/src/ee/services/pam/CLAUDE.md
+++ b/backend/src/ee/services/pam/CLAUDE.md
@@ -200,6 +200,12 @@ leaves the stored list alone so a steps-only client can't switch break-glass off
`bypassReason`, and `PAM_ACCESS_POLICY_BYPASSED` must carry `accountId`/`folderId` or the event is hidden
from folder and account auditors (see the audit-log gotcha under Permissions).
+**Auto-approval** also needs both gates: the template's `allow-auto-approval` (false without
+`requires-approval`, like break-glass) and rules on the folder's approval policy, which PAM saves through the
+folder's approval configuration. The rules belong to the shared approval module; PAM only implements
+`allowsAutoApproval`, the notification, and `PAM_ACCESS_REQUEST_AUTO_APPROVED`. A break-glass request skips
+them, since it approves itself.
+
## Discovery
`pam-discovery/`: a **source** (a credential account + gateway) scans and stages **discovered accounts**