-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish alert for new device login detection
- Loading branch information
1 parent
7cb6aee
commit 2d6d329
Showing
8 changed files
with
170 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>Successful login for {{email}} from new device</title> | ||
</head> | ||
|
||
<body> | ||
<h2>Infisical</h2> | ||
<p>We're verifying a recent login for {{email}}:</p> | ||
<p><strong>Timestamp</strong>: {{timestamp}}</p> | ||
<p><strong>IP address</strong>: {{ip}}</p> | ||
<p><strong>User agent</strong>: {{userAgent}}</p> | ||
<p>If you believe that this login is suspicious, please contact Infisical or reset your password immediately.</p> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,38 +5,40 @@ description: "How to configure your environment variables when self-hosting Infi | |
|
||
Configuring Infisical requires setting some environment variables. There is a file called [`.env.example`](https://github.com/Infisical/infisical/blob/main/.env.example) at the root directory of our main repo that you can use to create a `.env` file before you start the server. | ||
|
||
| Variable | Description | Default Value | | ||
| ---------------------------- | ----------------------------------------------------------------------------------------------------------- | ---------------- | | ||
| `ENCRYPTION_KEY` | ❗️ Strong hex encryption key | `None` | | ||
| `JWT_SIGNUP_SECRET` | ❗️ JWT token secret | `None` | | ||
| `JWT_REFRESH_SECRET` | ❗️ JWT token secret | `None` | | ||
| `JWT_AUTH_SECRET` | ❗️ JWT token secret | `None` | | ||
| `JWT_SERVICE_SECRET` | ❗️ JWT token secret | `None` | | ||
| `JWT_SIGNUP_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `15m` | | ||
| `JWT_REFRESH_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `90d` | | ||
| `JWT_AUTH_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `10d` | | ||
| `EMAIL_TOKEN_LIFETIME` | Email OTP/magic-link lifetime expressed in seconds | `86400` | | ||
| `MONGO_URL` | ❗️ MongoDB instance connection string either to container instance or MongoDB Cloud | `None` | | ||
| `MONGO_USERNAME` | MongoDB username if using container | `None` | | ||
| `MONGO_PASSWORD` | MongoDB password if using container | `None` | | ||
| `SITE_URL` | ❗️ Site URL - should be an absolute URL including the protocol (e.g. `https://app.infisical.com`) | `None` | | ||
| `SMTP_HOST` | ❗️ Hostname to connect to for establishing SMTP connections | `None` | | ||
| `SMTP_USERNAME` | ❗️ Credential to connect to host (e.g. `[email protected]`) | `None` | | ||
| `SMTP_PASSWORD` | ❗️ Credential to connect to host | `None` | | ||
| `SMTP_PORT` | Port to connect to for establishing SMTP connections | `587` | | ||
| `SMTP_SECURE` | If true, use TLS when connecting to host. If false, TLS will be used if STARTTLS is supported | `false` | | ||
| `SMTP_FROM_ADDRESS` | ❗️ Email address to be used for sending emails (e.g. `[email protected]`) | `None` | | ||
| `SMTP_FROM_NAME` | Name label to be used in From field (e.g. `Team`) | `Infisical` | | ||
| `TELEMETRY_ENABLED` | `true` or `false`. [More](../overview). | `true` | | ||
| `LICENSE_KEY` | License key if using Infisical Enterprise Edition | `true` | | ||
| `CLIENT_ID_HEROKU` | OAuth2 client ID for Heroku integration | `None` | | ||
| `CLIENT_ID_VERCEL` | OAuth2 client ID for Vercel integration | `None` | | ||
| `CLIENT_ID_NETLIFY` | OAuth2 client ID for Netlify integration | `None` | | ||
| `CLIENT_ID_GITHUB` | OAuth2 client ID for GitHub integration | `None` | | ||
| `CLIENT_SECRET_HEROKU` | OAuth2 client secret for Heroku integration | `None` | | ||
| `CLIENT_SECRET_VERCEL` | OAuth2 client secret for Vercel integration | `None` | | ||
| `CLIENT_SECRET_NETLIFY` | OAuth2 client secret for Netlify integration | `None` | | ||
| `CLIENT_SECRET_GITHUB` | OAuth2 client secret for GitHub integration | `None` | | ||
| `CLIENT_SLUG_VERCEL` | OAuth2 slug for Netlify integration | `None` | | ||
| `SENTRY_DSN` | DSN for error-monitoring with Sentry | `None` | | ||
| `INVITE_ONLY_SIGNUP` | If true, users can only sign up if they are invited | `false` | | ||
| Variable | Description | Default Value | | ||
| ----------------------- | ----------------------------------------------------------------------------------------------------------- | ------------- | | ||
| `ENCRYPTION_KEY` | ❗️ Strong hex encryption key | `None` | | ||
| `JWT_SIGNUP_SECRET` | ❗️ JWT token secret | `None` | | ||
| `JWT_REFRESH_SECRET` | ❗️ JWT token secret | `None` | | ||
| `JWT_AUTH_SECRET` | ❗️ JWT token secret | `None` | | ||
| `JWT_MFA_SECRET` | ❗️ JWT token secret | `None` | | ||
| `JWT_SERVICE_SECRET` | ❗️ JWT token secret | `None` | | ||
| `JWT_SIGNUP_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `15m` | | ||
| `JWT_REFRESH_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `90d` | | ||
| `JWT_AUTH_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `10d` | | ||
| `JWT_MFA_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `5m` | | ||
| `EMAIL_TOKEN_LIFETIME` | Email OTP/magic-link lifetime expressed in seconds | `86400` | | ||
| `MONGO_URL` | ❗️ MongoDB instance connection string either to container instance or MongoDB Cloud | `None` | | ||
| `MONGO_USERNAME` | MongoDB username if using container | `None` | | ||
| `MONGO_PASSWORD` | MongoDB password if using container | `None` | | ||
| `SITE_URL` | ❗️ Site URL - should be an absolute URL including the protocol (e.g. `https://app.infisical.com`) | `None` | | ||
| `SMTP_HOST` | ❗️ Hostname to connect to for establishing SMTP connections | `None` | | ||
| `SMTP_USERNAME` | ❗️ Credential to connect to host (e.g. `[email protected]`) | `None` | | ||
| `SMTP_PASSWORD` | ❗️ Credential to connect to host | `None` | | ||
| `SMTP_PORT` | Port to connect to for establishing SMTP connections | `587` | | ||
| `SMTP_SECURE` | If true, use TLS when connecting to host. If false, TLS will be used if STARTTLS is supported | `false` | | ||
| `SMTP_FROM_ADDRESS` | ❗️ Email address to be used for sending emails (e.g. `[email protected]`) | `None` | | ||
| `SMTP_FROM_NAME` | Name label to be used in From field (e.g. `Team`) | `Infisical` | | ||
| `TELEMETRY_ENABLED` | `true` or `false`. [More](../overview). | `true` | | ||
| `LICENSE_KEY` | License key if using Infisical Enterprise Edition | `true` | | ||
| `CLIENT_ID_HEROKU` | OAuth2 client ID for Heroku integration | `None` | | ||
| `CLIENT_ID_VERCEL` | OAuth2 client ID for Vercel integration | `None` | | ||
| `CLIENT_ID_NETLIFY` | OAuth2 client ID for Netlify integration | `None` | | ||
| `CLIENT_ID_GITHUB` | OAuth2 client ID for GitHub integration | `None` | | ||
| `CLIENT_SECRET_HEROKU` | OAuth2 client secret for Heroku integration | `None` | | ||
| `CLIENT_SECRET_VERCEL` | OAuth2 client secret for Vercel integration | `None` | | ||
| `CLIENT_SECRET_NETLIFY` | OAuth2 client secret for Netlify integration | `None` | | ||
| `CLIENT_SECRET_GITHUB` | OAuth2 client secret for GitHub integration | `None` | | ||
| `CLIENT_SLUG_VERCEL` | OAuth2 slug for Netlify integration | `None` | | ||
| `SENTRY_DSN` | DSN for error-monitoring with Sentry | `None` | | ||
| `INVITE_ONLY_SIGNUP` | If true, users can only sign up if they are invited | `false` | |