mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-29 22:02:57 +00:00
Merge branch 'main' of https://github.com/Infisical/infisical into bot
This commit is contained in:
README.md
backend/src
docs
getting-started/dashboard
images
integrations/frameworks
frontend/components/utilities
@ -1,5 +1,5 @@
|
|||||||
<h1 align="center">
|
<h1 align="center">
|
||||||
<img width="300" src="/img/logoname-black.svg#gh-light-mode-only" alt="ifnisical">
|
<img width="300" src="/img/logoname-black.svg#gh-light-mode-only" alt="infisical">
|
||||||
<img width="300" src="/img/logoname-white.svg#gh-dark-mode-only" alt="infisical">
|
<img width="300" src="/img/logoname-white.svg#gh-dark-mode-only" alt="infisical">
|
||||||
</h1>
|
</h1>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
@ -66,7 +66,7 @@ const checkEmailVerification = async ({
|
|||||||
email,
|
email,
|
||||||
token: code
|
token: code
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!token) throw new Error('Failed to find email verification token');
|
if (!token) throw new Error('Failed to find email verification token');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
Sentry.setUser(null);
|
Sentry.setUser(null);
|
||||||
|
@ -18,7 +18,7 @@ const tokenSchema = new Schema<IToken>({
|
|||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: Date,
|
type: Date,
|
||||||
expires: EMAIL_TOKEN_LIFETIME,
|
expires: parseInt(EMAIL_TOKEN_LIFETIME),
|
||||||
default: Date.now
|
default: Date.now
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -4,8 +4,11 @@ title: "Integrations"
|
|||||||
|
|
||||||
Integrations allow environment variables to be synced across your entire infrastructure from local development to CI/CD and production.
|
Integrations allow environment variables to be synced across your entire infrastructure from local development to CI/CD and production.
|
||||||
|
|
||||||
We're still early with integrations, but expect more soon.
|
We're still early with integrations, but expect more soon.
|
||||||
|
|
||||||
|
<Card title="View integrations documentation" icon="link" href="/integrations/overview">
|
||||||
|
View all available integrations and their guide
|
||||||
|
</Card>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Check out our [integrations](/integrations/overview).
|
|
||||||
|
Binary file not shown.
Before ![]() (image error) Size: 445 KiB After ![]() (image error) Size: 213 KiB ![]() ![]() |
@ -10,15 +10,18 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Django](https://www.djangoproject.com) project
|
## Initialize Infisical for your [Django](https://www.djangoproject.com) project
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your Django project
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize Infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start your server with environment variables injected
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
infisical run -- python manage.py runserver
|
infisical run -- python manage.py runserver
|
||||||
```
|
```
|
||||||
|
@ -16,30 +16,18 @@ The steps apply to the following non-exhaustive list of frameworks:
|
|||||||
## Initialize Infisical for your app
|
## Initialize Infisical for your app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize Infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify the start script in your `package.json`
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```json
|
|
||||||
...
|
|
||||||
"scripts": {
|
|
||||||
"start": "infisical run -- node index.js"
|
|
||||||
"dev": "infisical run -- nodemon index.js" // if using nodemon for dev
|
|
||||||
}
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
## Start your server with environment variables injected
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run start
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
# or start development server
|
# Example
|
||||||
|
infisical run -- npm run dev
|
||||||
npm run dev
|
|
||||||
```
|
```
|
||||||
|
@ -7,4 +7,21 @@ Prerequisites:
|
|||||||
- Set up and add envars to [Infisical Cloud](https://app.infisical.com)
|
- Set up and add envars to [Infisical Cloud](https://app.infisical.com)
|
||||||
- [Install the CLI](/cli/overview)
|
- [Install the CLI](/cli/overview)
|
||||||
|
|
||||||
Coming soon.
|
## Initialize Infisical for your [Fiber](https://gofiber.io/) app
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# navigate to the root of your of your project
|
||||||
|
cd /path/to/project
|
||||||
|
|
||||||
|
# then initialize Infisical
|
||||||
|
infisical init
|
||||||
|
```
|
||||||
|
|
||||||
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
|
```bash
|
||||||
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
|
infisical run -- go run server.go
|
||||||
|
```
|
@ -10,15 +10,18 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Flask](https://flask.palletsprojects.com/en/2.2.x) app
|
## Initialize Infisical for your [Flask](https://flask.palletsprojects.com/en/2.2.x) app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your Flask app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize Infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start your server with environment variables injected
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
infisical run -- flask run
|
infisical run -- flask run
|
||||||
```
|
```
|
||||||
|
@ -10,31 +10,20 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Gatsby](https://www.gatsbyjs.com) app
|
## Initialize Infisical for your [Gatsby](https://www.gatsbyjs.com) app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize Infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify the start script in your `package.json`
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```json
|
|
||||||
...
|
|
||||||
"scripts": {
|
|
||||||
"develop": "infisical run -- gatsby develop",
|
|
||||||
"start": "infisical run -- gatsby develop",
|
|
||||||
"build": "infisical run -- gatsby build",
|
|
||||||
"serve": "infisical run -- gatsby serve",
|
|
||||||
"clean": "infisical run -- gatsby clean"
|
|
||||||
}
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
## Start your development server with environment variables injected
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run develop
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
|
infisical run -- npm run develop
|
||||||
```
|
```
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
|
@ -7,4 +7,21 @@ Prerequisites:
|
|||||||
- Set up and add envars to [Infisical Cloud](https://app.infisical.com)
|
- Set up and add envars to [Infisical Cloud](https://app.infisical.com)
|
||||||
- [Install the CLI](/cli/overview)
|
- [Install the CLI](/cli/overview)
|
||||||
|
|
||||||
Instructions coming soon.
|
## Initialize Infisical for your [Laravel](https://laravel.com/) app
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# navigate to the root of your of your project
|
||||||
|
cd /path/to/project
|
||||||
|
|
||||||
|
# then initialize Infisical
|
||||||
|
infisical init
|
||||||
|
```
|
||||||
|
|
||||||
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
|
```bash
|
||||||
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
|
infisical run -- php artisan serve
|
||||||
|
```
|
||||||
|
@ -10,41 +10,18 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [NestJS](https://nestjs.com) app
|
## Initialize Infisical for your [NestJS](https://nestjs.com) app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your Next.js app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify the start script in your `package.json`
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```json
|
|
||||||
...
|
|
||||||
"scripts": {
|
|
||||||
"prebuild": "rimraf dist",
|
|
||||||
"build": "nest build",
|
|
||||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
||||||
"start": "infisical run -- nest start",
|
|
||||||
"start:dev": "infisical run -- nest start --watch",
|
|
||||||
"start:debug": "nest start --debug --watch",
|
|
||||||
"start:prod": "node dist/main",
|
|
||||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
||||||
"test": "jest",
|
|
||||||
"test:watch": "jest --watch",
|
|
||||||
"test:cov": "jest --coverage",
|
|
||||||
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
||||||
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
||||||
}
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
## Start your server with environment variables injected
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run start
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
# or start development server
|
# Example
|
||||||
|
infisical run -- npm run start:dev
|
||||||
npm run start:dev
|
|
||||||
```
|
```
|
||||||
|
@ -10,33 +10,20 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Next.js](https://nextjs.org) app
|
## Initialize Infisical for your [Next.js](https://nextjs.org) app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your Next.js app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify the start script in your `package.json`
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```json
|
|
||||||
...
|
|
||||||
"scripts": {
|
|
||||||
"dev": "infisical run -- next dev",
|
|
||||||
"build": "infisical run -- next build",
|
|
||||||
"start": "infisical run -- next start"
|
|
||||||
}
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
## Start your server with environment variables injected
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run build && npm run start
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
# or start development server
|
# Example
|
||||||
|
infisical run -- npm run dev
|
||||||
npm run dev
|
|
||||||
```
|
```
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
|
@ -10,27 +10,18 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Nuxt](https://nuxtjs.org) app
|
## Initialize Infisical for your [Nuxt](https://nuxtjs.org) app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your Nuxt app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify the start script in your `package.json`
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```json
|
|
||||||
...
|
|
||||||
"scripts": {
|
|
||||||
"dev": "infisical run -- nuxt",
|
|
||||||
"build": "infisical run -- nuxt build",
|
|
||||||
"start": "infisical run -- nuxt start"
|
|
||||||
}
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
## Start your development server with environment variables injected
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run dev
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
|
infisical run -- npm run dev
|
||||||
```
|
```
|
||||||
|
@ -10,15 +10,18 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Rails](https://rubyonrails.org) app
|
## Initialize Infisical for your [Rails](https://rubyonrails.org) app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your Rails app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize Infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start your server with environment variables injected
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
infisical run -- bin/rails server
|
infisical run -- bin/rails server
|
||||||
```
|
```
|
||||||
|
@ -10,28 +10,18 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Create React App](https://create-react-app.dev)
|
## Initialize Infisical for your [Create React App](https://create-react-app.dev)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your React app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify the start script in your `package.json`
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```json
|
|
||||||
...
|
|
||||||
"scripts": {
|
|
||||||
"start": "infisical run -- react-scripts start",
|
|
||||||
"build": "react-scripts build",
|
|
||||||
"test": "react-scripts test",
|
|
||||||
"eject": "react-scripts eject"
|
|
||||||
}
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
## Start your server with environment variables injected
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm start
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
|
infisical run -- npm run dev
|
||||||
```
|
```
|
||||||
|
@ -10,32 +10,18 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Remix](https://remix.run) app
|
## Initialize Infisical for your [Remix](https://remix.run) app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your Vue app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize Infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify the start script in your `package.json`
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```json
|
|
||||||
...
|
|
||||||
"scripts": {
|
|
||||||
...
|
|
||||||
"dev": "infisical run -- run-p dev:*",
|
|
||||||
"start": "infisical run -- remix-serve build"
|
|
||||||
...
|
|
||||||
}
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
## Start your server with environment variables injected
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run build && npm run start
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
# or start development server
|
# Example
|
||||||
|
infisical run -- npm run dev
|
||||||
npm run dev
|
|
||||||
```
|
```
|
||||||
|
@ -10,29 +10,20 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Vite](https://vitejs.dev) app
|
## Initialize Infisical for your [Vite](https://vitejs.dev) app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your Vite app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize Infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify the start script in your `package.json`
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```json
|
|
||||||
...
|
|
||||||
"scripts": {
|
|
||||||
"dev": "infisical run -- vite",
|
|
||||||
"build": "infisical run -- vite build",
|
|
||||||
"preview": "infisical run -- vite preview"
|
|
||||||
}
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
## Start your development server with environment variables injected
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run dev
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
|
infisical run -- npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
|
@ -10,29 +10,20 @@ Prerequisites:
|
|||||||
## Initialize Infisical for your [Vue](https://vuejs.org) app
|
## Initialize Infisical for your [Vue](https://vuejs.org) app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# move to your Vue app
|
# navigate to the root of your of your project
|
||||||
cd /path/to/project
|
cd /path/to/project
|
||||||
|
|
||||||
# initialize infisical
|
# then initialize infisical
|
||||||
infisical init
|
infisical init
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify the start script in your `package.json`
|
## Start your application as usual but with Infisical
|
||||||
|
|
||||||
```json
|
|
||||||
...
|
|
||||||
"scripts": {
|
|
||||||
"serve": "infisical run -- vue-cli-service serve",
|
|
||||||
"build": "infisical run -- vue-cli-service build",
|
|
||||||
"lint": "infisical run -- vue-cli-service lint"
|
|
||||||
}
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
## Start your development server with environment variables injected
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run serve
|
infisical run -- <your application start command>
|
||||||
|
|
||||||
|
# Example
|
||||||
|
infisical run -- npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
|
@ -3,7 +3,7 @@ interface Props {
|
|||||||
encryptedPrivateKey: string;
|
encryptedPrivateKey: string;
|
||||||
iv: string;
|
iv: string;
|
||||||
tag: string;
|
tag: string;
|
||||||
privateTag: string;
|
privateKey: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const saveTokenToLocalStorage = ({
|
export const saveTokenToLocalStorage = ({
|
||||||
@ -11,14 +11,14 @@ export const saveTokenToLocalStorage = ({
|
|||||||
encryptedPrivateKey,
|
encryptedPrivateKey,
|
||||||
iv,
|
iv,
|
||||||
tag,
|
tag,
|
||||||
privateTag,
|
privateKey,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
try {
|
try {
|
||||||
localStorage.setItem("publicKey", publicKey);
|
localStorage.setItem("publicKey", publicKey);
|
||||||
localStorage.setItem("encryptedPrivateKey", encryptedPrivateKey);
|
localStorage.setItem("encryptedPrivateKey", encryptedPrivateKey);
|
||||||
localStorage.setItem("iv", iv);
|
localStorage.setItem("iv", iv);
|
||||||
localStorage.setItem("tag", tag);
|
localStorage.setItem("tag", tag);
|
||||||
localStorage.setItem("PRIVATE_KEY", privateTag);
|
localStorage.setItem("PRIVATE_KEY", privateKey);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof Error) {
|
if (err instanceof Error) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
Reference in New Issue
Block a user