-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor integrations logic and replace hardcoded client ids with envars
- Loading branch information
1 parent
5168195
commit 5475555
Showing
17 changed files
with
144 additions
and
42 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
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 |
---|---|---|
|
@@ -28,6 +28,9 @@ Configuring Infisical requires setting some environment variables. There is a fi | |
| `SMTP_USERNAME` | ❗️ Credential to connect to host (e.g. `[email protected]`) | `None` | | ||
| `SMTP_PASSWORD` | ❗️ Credential to connect to host | `None` | | ||
| `TELEMETRY_ENABLED` | `true` or `false`. [More](../overview). | `true` | | ||
| `OAUTH_CLIENT_SECRET_HEROKU` | OAuth client secret for Heroku integration | `None` | | ||
| `OAUTH_TOKEN_URL_HEROKU` | OAuth token URL for Heroku integration | `None` | | ||
| `CLIENT_ID_VERCEL` | OAuth client id for Vercel integration | `None` | | ||
| `CLIENT_ID_NETLIFY` | OAuth client id for Netlify integration | `None` | | ||
| `CLIENT_SECRET_HEROKU` | OAuth client secret for Heroku integration | `None` | | ||
| `CLIENT_SECRET_VERCEL` | OAuth client secret for Vercel integration | `None` | | ||
| `CLIENT_SECRET_NETLIFY` | OAuth client secret for Netlify integration | `None` | | ||
| `SENTRY_DSN` | DSN for error-monitoring with Sentry | `None` | |
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,83 @@ | ||
import { | ||
SITE_URL, | ||
CLIENT_ID_HEROKU, | ||
CLIENT_ID_NETLIFY | ||
} from '../../components/utilities/config'; | ||
|
||
const cloudIntegrationOptions = [ | ||
{ | ||
name: 'Heroku', | ||
slug: 'heroku', | ||
image: 'Heroku', | ||
isAvailable: true, | ||
type: 'oauth2', | ||
clientId: CLIENT_ID_HEROKU, | ||
docsLink: '' | ||
}, | ||
{ | ||
name: 'Vercel', | ||
slug: 'vercel', | ||
image: 'Vercel', | ||
isAvailable: true, | ||
type: 'vercel', | ||
clientId: '', | ||
docsLink: '' | ||
}, | ||
{ | ||
name: 'Netlify', | ||
slug: 'netlify', | ||
image: 'Netlify', | ||
isAvailable: true, | ||
type: 'oauth2', | ||
clientId: CLIENT_ID_NETLIFY, | ||
redirectURL: `${SITE_URL}/netlify`, | ||
docsLink: '' | ||
}, | ||
{ | ||
name: 'Google Cloud Platform', | ||
slug: 'gcp', | ||
image: 'Google Cloud Platform', | ||
isAvailable: false, | ||
type: '', | ||
clientId: '', | ||
docsLink: '' | ||
}, | ||
{ | ||
name: 'Amazon Web Services', | ||
slug: 'aws', | ||
image: 'Amazon Web Services', | ||
isAvailable: false, | ||
type: '', | ||
clientId: '', | ||
docsLink: '' | ||
}, | ||
{ | ||
name: 'Microsoft Azure', | ||
slug: 'azure', | ||
image: 'Microsoft Azure', | ||
isAvailable: false, | ||
type: '', | ||
clientId: '', | ||
docsLink: '' | ||
}, | ||
{ | ||
name: 'Travis CI', | ||
slug: 'travisci', | ||
image: 'Travis CI', | ||
isAvailable: false, | ||
type: '', | ||
clientId: '', | ||
docsLink: '' | ||
}, | ||
{ | ||
name: 'Circle CI', | ||
slug: 'circleci', | ||
image: 'Circle CI', | ||
isAvailable: false, | ||
type: '', | ||
clientId: '', | ||
docsLink: '' | ||
} | ||
] | ||
|
||
export { cloudIntegrationOptions }; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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