Skip to content

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

chore(secret-rotation): move the Stripe app manifest out of the monorepo

Calvine08653ad6cc4
diff --git a/CLAUDE.md b/CLAUDE.md
index b948b663be..3166fdac9b 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -23,7 +23,6 @@ infisical/
├── frontend/ # React 18 SPA (see frontend/CLAUDE.md)
├── wasm/ # Rust crates compiled to WASM for the frontend (see wasm/<crate>/CLAUDE.md)
├── e2e/ # External Playwright suite — gates prod deploys against gamma (see e2e/CLAUDE.md)
-├── stripe-app/ # Stripe App manifest granting Infisical api_key_write (see stripe-app/README.md)
├── docs/ # Documentation site (Mintlify-based)
├── build-versions.env # Versions pinned across several Dockerfiles (see Dependency Policy)
├── docker-compose.dev.yml # Local dev (PostgreSQL, Redis, backend, frontend, Nginx)
diff --git a/stripe-app/.gitignore b/stripe-app/.gitignore
deleted file mode 100644
index f396c497b1..0000000000
--- a/stripe-app/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/node_modules
-/.build
-.env.local
-.DS_Store
diff --git a/stripe-app/.npmrc b/stripe-app/.npmrc
deleted file mode 100644
index 7253a5ceee..0000000000
--- a/stripe-app/.npmrc
+++ /dev/null
@@ -1 +0,0 @@
-min-release-age=7
diff --git a/stripe-app/README.md b/stripe-app/README.md
deleted file mode 100644
index b915d7c4c6..0000000000
--- a/stripe-app/README.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# Infisical Stripe app
-
-Stripe does not let any API key create another API key. The only principal that can is an
-installed Stripe App holding the `api_key_write` permission, so Stripe API key rotation requires
-Infisical to be a Stripe app vendor. This directory is that app.
-
-The app has no UI (`extensions` is `null`) and no dependencies. It exists purely to carry the
-permission grant and the OAuth redirect URIs, so `stripe-app.json` is the whole thing.
-
-## The manifest is the source of truth
-
-`stripe-app.json` is not editable in the Stripe dashboard. Stripe stores whatever the CLI last
-uploaded, as an immutable version. To change anything, including a redirect URI, edit the file,
-bump `version`, and upload:
-
-```bash
-$ cd stripe-app
-$ stripe apps upload --api-key=<secret key of the account that owns the app>
-```
-
-For a public app, point "External test version" at the new version afterwards in the Stripe
-dashboard under Apps > Created.
-
-## Redirect URIs
-
-Stripe requires HTTPS on every entry, including for local development, so `http://localhost:8080`
-is not an option. The entry here is one developer's ngrok host, which means changing developer means
-editing this file, bumping the version and re-uploading. A shared redirect URI that every developer
-can use is still an open decision.
-
-The URI has to match what the browser sends exactly. The frontend builds it from
-`window.location.origin`, so `SITE_URL` and the ngrok host have to agree with this file or Stripe
-rejects the authorize request before the user sees a consent screen.
-
-The path is the app connection callback the frontend already registers for every OAuth connection.
-It carries no organization ID and forwards `code` and `state` into the org-scoped page
-(`frontend/src/routes.ts`, `frontend/src/pages/redirects/oauth-callback-redirect.tsx`).
-
-## Account setup
-
-Getting an account into a state where it can publish this app and call the Managed API Keys API
-takes a sequence of steps that are mostly undocumented by Stripe, including a private-then-public
-upload dance and two separate manual gating requests. Those are written up in the
-[Stripe secret rotation setup doc](https://app.notion.com/p/infisical/Stripe-secret-rotation-setup-3d8564692229802f9082f2aa848b5eea).
-Ask Daniel for access to a gated sandbox rather than trying to gate a new one.
diff --git a/stripe-app/icon.png b/stripe-app/icon.png
deleted file mode 100644
index 5349c16baf..0000000000
Binary files a/stripe-app/icon.png and /dev/null differ
diff --git a/stripe-app/package-lock.json b/stripe-app/package-lock.json
deleted file mode 100644
index 38514804c7..0000000000
--- a/stripe-app/package-lock.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "infisical-integration-dev",
- "version": "0.0.4",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
- "name": "infisical-integration-dev",
- "version": "0.0.4",
- "license": "UNLICENSED"
- }
- }
-}
diff --git a/stripe-app/package.json b/stripe-app/package.json
deleted file mode 100644
index 3b4f5b7f6d..0000000000
--- a/stripe-app/package.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "infisical-integration-dev",
- "description": "OAuth grant for Infisical Stripe secret rotation",
- "version": "0.0.4",
- "private": true,
- "license": "UNLICENSED"
-}
diff --git a/stripe-app/stripe-app.json b/stripe-app/stripe-app.json
deleted file mode 100644
index 4ea1c8fee5..0000000000
--- a/stripe-app/stripe-app.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "$schema": "https://stripe.com/stripe-app.schema.json",
- "id": "infisical-integration-dev",
- "name": "Infisical Integration DEV",
- "version": "0.0.4",
- "icon": "./icon.png",
- "extensions": null,
- "permissions": [
- {
- "permission": "api_key_write",
- "purpose": "Lets Infisical create, rotate and expire API keys in your account so your Stripe credentials can be rotated automatically."
- }
- ],
- "allowed_redirect_uris": [
- "https://provable-triceps-maximum.ngrok-free.dev/organization/app-connections/stripe/oauth/callback"
- ],
- "distribution_type": "public",
- "stripe_api_access_type": "oauth",
- "sandbox_install_compatible": true
-}
\ No newline at end of file