mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 19:28:09 +00:00
Fix more encoding issues with integrations
This commit is contained in:
@@ -886,8 +886,9 @@ const syncSecretsFlyio = async ({
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
url: INTEGRATION_FLYIO_API_URL,
|
url: INTEGRATION_FLYIO_API_URL,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'Bearer ' + accessToken,
|
'Authorization': 'Bearer ' + accessToken,
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json',
|
||||||
|
'Accept-Encoding': 'application/json'
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
query: GetSecrets,
|
query: GetSecrets,
|
||||||
|
|||||||
@@ -47,16 +47,6 @@ const INTEGRATION_RENDER_API_URL = 'https://api.render.com';
|
|||||||
const INTEGRATION_FLYIO_API_URL = 'https://api.fly.io/graphql';
|
const INTEGRATION_FLYIO_API_URL = 'https://api.fly.io/graphql';
|
||||||
|
|
||||||
const INTEGRATION_OPTIONS = [
|
const INTEGRATION_OPTIONS = [
|
||||||
{
|
|
||||||
name: 'Azure Key Vault',
|
|
||||||
slug: 'azure-key-vault',
|
|
||||||
image: 'Microsoft Azure.png',
|
|
||||||
isAvailable: true,
|
|
||||||
type: 'oauth',
|
|
||||||
clientId: CLIENT_ID_AZURE,
|
|
||||||
tenantId: TENANT_ID_AZURE,
|
|
||||||
docsLink: ''
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'Heroku',
|
name: 'Heroku',
|
||||||
slug: 'heroku',
|
slug: 'heroku',
|
||||||
@@ -112,6 +102,16 @@ const INTEGRATION_OPTIONS = [
|
|||||||
clientId: '',
|
clientId: '',
|
||||||
docsLink: ''
|
docsLink: ''
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Azure Key Vault',
|
||||||
|
slug: 'azure-key-vault',
|
||||||
|
image: 'Microsoft Azure.png',
|
||||||
|
isAvailable: false,
|
||||||
|
type: 'oauth',
|
||||||
|
clientId: CLIENT_ID_AZURE,
|
||||||
|
tenantId: TENANT_ID_AZURE,
|
||||||
|
docsLink: ''
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Google Cloud Platform',
|
name: 'Google Cloud Platform',
|
||||||
slug: 'gcp',
|
slug: 'gcp',
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ export default function NetlifyCreateIntegrationPage() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// TODO: handle case where apps can be empty
|
// TODO: handle case where apps can be empty
|
||||||
if (integrationAuthApps) {
|
if (integrationAuthApps) {
|
||||||
console.log(integrationAuthApps)
|
|
||||||
setTargetApp(integrationAuthApps[0].name);
|
setTargetApp(integrationAuthApps[0].name);
|
||||||
}
|
}
|
||||||
}, [integrationAuthApps]);
|
}, [integrationAuthApps]);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export default function RenderCreateIntegrationPage() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// TODO: handle case where apps can be empty
|
// TODO: handle case where apps can be empty
|
||||||
if (integrationAuthApps) {
|
if (integrationAuthApps) {
|
||||||
setTargetApp(integrationAuthApps[0].name);
|
setTargetApp(integrationAuthApps[0].name);
|
||||||
}
|
}
|
||||||
}, [integrationAuthApps]);
|
}, [integrationAuthApps]);
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ export default function RenderCreateIntegrationPage() {
|
|||||||
integrationAuthId: integrationAuth?._id,
|
integrationAuthId: integrationAuth?._id,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
app: targetApp,
|
app: targetApp,
|
||||||
appId: null,
|
appId: (integrationAuthApps?.find((integrationAuthApp) => integrationAuthApp.name === targetApp))?.appId ?? null,
|
||||||
sourceEnvironment: selectedSourceEnvironment,
|
sourceEnvironment: selectedSourceEnvironment,
|
||||||
targetEnvironment: null,
|
targetEnvironment: null,
|
||||||
owner: null
|
owner: null
|
||||||
|
|||||||
Reference in New Issue
Block a user