Skip to content

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

Merge remote-tracking branch 'origin/main' into PLATFOR-792

Andreye411bb790842
diff --cc CLAUDE.md
index 30542758db,35f6f0eb92..6ad4b26262
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@@ -148,16 -148,15 +148,25 @@@ for product vocabulary only: resolving
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`. A policy may have rules and no approvers (no
+steps): then a request no rule approves is refused at submission, and only break-glass gets past it. The
+engine itself adds a reuse check (`not-used-before`) to every input, answered from the policy's approved
+requests' evidence and claimed under an advisory lock in the auto-approve transaction. The
+stored evidence holds data fetched from that service, so responses return only its outcome (`autoApproval`),
+never `autoApprovalEvidence`.
+
+ ### Object Storage
+
+ New product files go to S3 through `backend/src/services/object-storage/`, not a product's own S3 client (PAM
+ recordings predate it and haven't moved). A product
+ registers a namespace (record-first path like `sessions/{sessionId}/logs/{file}`, checked for naming collisions at
+ boot) and the layer builds org-first keys, signs links, and applies the retention tag and, for default storage on Infisical Cloud, a daily upload cap. Storage is
+ `default` (the instance's bucket, `OBJECT_STORAGE_S3_*`) or `external` (the customer's, through an AWS connection);
+ use those two words everywhere.
+
### 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.