Skip to content

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

chore: supply chain security

Daniel Hougaard6161910d8969
diff --git a/CLAUDE.md b/CLAUDE.md
index 4da4c7e3fa..984fc9f3e4 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -43,6 +43,10 @@ Infisical supports self-hosted deployment via Docker. Key considerations:
- **`docker-compose.prod.yml`** — production compose with backend, PostgreSQL, and Redis.
- New backend dependencies should be evaluated carefully — they affect container size, FIPS compliance, and the encryption boundary. Check `docs/` for self-hosted deployment documentation when in doubt.
+### Dependency Policy
+
+Both `backend/` and `frontend/` enforce a minimum release age of 7 days for npm packages (configured via `.npmrc` in each directory). This means `npm install` will only resolve package versions published at least 7 days ago, as a supply-chain security measure.
+
## Cross-Cutting Patterns
### Auth & Permissions
diff --git a/backend/.npmrc b/backend/.npmrc
new file mode 100644
index 0000000000..7253a5ceee
--- /dev/null
+++ b/backend/.npmrc
@@ -0,0 +1 @@
+min-release-age=7
diff --git a/frontend/.npmrc b/frontend/.npmrc
new file mode 100644
index 0000000000..7253a5ceee
--- /dev/null
+++ b/frontend/.npmrc
@@ -0,0 +1 @@
+min-release-age=7