@docupace/pipeline 1.0.7-alpha.10 → 1.0.7-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/auth0/configure.js +5 -10
package/package.json
CHANGED
package/src/auth0/configure.js
CHANGED
|
@@ -64,10 +64,6 @@ async function addApplicationToApi ({application, auth0Domain, auth0AuthToken, c
|
|
|
64
64
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
addApplicationToApi().catch((err) => {
|
|
68
|
-
console.error("Error authorizing application for API:", err.response?.data || err.message);
|
|
69
|
-
});
|
|
70
|
-
|
|
71
67
|
async function initializeAuth0Configuration({
|
|
72
68
|
initConfiguration,
|
|
73
69
|
auth0Domain,
|
|
@@ -406,7 +402,7 @@ externalConnectService:
|
|
|
406
402
|
}
|
|
407
403
|
}
|
|
408
404
|
|
|
409
|
-
async function configureGraphQLServer(siteHost, coreURL, docupaceHost, site, env, auth0Domain, auth0ClientId, auth0ClientSecret, auth0Token, vaultSiteSecretsPath, imageTag,
|
|
405
|
+
async function configureGraphQLServer(siteHost, coreURL, docupaceHost, site, env, auth0Domain, auth0ClientId, auth0ClientSecret, auth0Token, vaultSiteSecretsPath, imageTag, standardConfigRemoteBranch, repoPath, commonSecrets) {
|
|
410
406
|
console.log(`Configuring GraphQL Server for site: ${site} Host: ${siteHost} in env: ${env}`);
|
|
411
407
|
|
|
412
408
|
try {
|
|
@@ -442,7 +438,7 @@ async function configureGraphQLServer(siteHost, coreURL, docupaceHost, site, env
|
|
|
442
438
|
// Prepare ui.app.yaml
|
|
443
439
|
const graphQLServerAppYaml = `
|
|
444
440
|
repo: docupace-graphql-server
|
|
445
|
-
revision:
|
|
441
|
+
revision: ${standardConfigRemoteBranch}
|
|
446
442
|
`.trim();
|
|
447
443
|
|
|
448
444
|
// Prepare ui.values.yaml
|
|
@@ -454,12 +450,10 @@ graphqlServer:
|
|
|
454
450
|
baseUrl: https://${siteHost}/api/graphql
|
|
455
451
|
coreUrl: https://${coreURL}
|
|
456
452
|
integrationHubUrl: "https://${commonSecrets.INTEGRATION_HUB_URL}"
|
|
457
|
-
standardConfigRemoteBranch: ${
|
|
453
|
+
standardConfigRemoteBranch: ${standardConfigRemoteBranch}
|
|
458
454
|
apiLevel: "2"
|
|
459
455
|
env:
|
|
460
456
|
AUTH0_CLIENT_SECRET: vault:secret/data/${site}/graphql-server/config#AUTH0_CLIENT_SECRET
|
|
461
|
-
CORE_PASSWORD: vault:secret/data/common/config#CORE_PASSWORD
|
|
462
|
-
REMOTE_CONFIG_PATH: vault:secret/data/common/config#REMOTE_CONFIG_PATH
|
|
463
457
|
STANDARD_CONFIG_REMOTE_PATH: vault:secret/data/common/config#STANDARD_CONFIG_REMOTE_PATH
|
|
464
458
|
AUTH0_CC_CLIENT_ID: vault:secret/data/${site}/graphql-server/config#AUTH0_CC_CLIENT_ID
|
|
465
459
|
AUTH0_CC_CLIENT_SECRET: vault:secret/data/${site}/graphql-server/config#AUTH0_CC_CLIENT_SECRET
|
|
@@ -548,6 +542,7 @@ export async function configureFromSite(fromSite, toSite, env, deployUI, deployG
|
|
|
548
542
|
|
|
549
543
|
const { deployConfig: deployGraphQLServerConfig} = await readDeployConfig('graphql-server', env, fromSite);
|
|
550
544
|
const graphqlImageTag = deployGraphQLServerConfig.image.tag;
|
|
545
|
+
const graphqlStandardConfigRemoteBranch = deployGraphQLServerConfig.graphqlServer.standardConfigRemoteBranch;
|
|
551
546
|
|
|
552
547
|
// File paths
|
|
553
548
|
const filePaths = {
|
|
@@ -608,7 +603,7 @@ export async function configureFromSite(fromSite, toSite, env, deployUI, deployG
|
|
|
608
603
|
await configureUI(SITE_HOST, CORE_URL, DOCUPACE_HOST, toSite, env, useNewDomain, auth0Domain, auth0ClientId, auth0ClientSecret, auth0Token, uiSecretsPath, uiImageTag, repoPath);
|
|
609
604
|
}
|
|
610
605
|
|
|
611
|
-
await configureGraphQLServer(SITE_HOST, CORE_URL, DOCUPACE_HOST, toSite, env, auth0Domain, auth0ClientId, auth0ClientSecret, auth0Token, graphqlSecretsPath, graphqlImageTag,
|
|
606
|
+
await configureGraphQLServer(SITE_HOST, CORE_URL, DOCUPACE_HOST, toSite, env, auth0Domain, auth0ClientId, auth0ClientSecret, auth0Token, graphqlSecretsPath, graphqlImageTag, graphqlStandardConfigRemoteBranch, repoPath, commonSecrets);
|
|
612
607
|
await pushDeployConfig(repoPath, `Config update for ${toSite} from ${fromSite} with UI: ${uiImageTag} and GraphQL: ${graphqlImageTag}`);
|
|
613
608
|
|
|
614
609
|
await initializeAuth0Configuration({
|