Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add mongo root password

Maidul Islam5baccc73c97b
diff --git a/backend/src/integrations/exchange.ts b/backend/src/integrations/exchange.ts
index 1e08a701f6..301259198c 100644
--- a/backend/src/integrations/exchange.ts
+++ b/backend/src/integrations/exchange.ts
@@ -138,7 +138,7 @@ const exchangeCodeAzure = async ({
try {
res = (await axios.post(
INTEGRATION_AZURE_TOKEN_URL,
- new URLSearchParams({
+ new URLSearchParams({
grant_type: 'authorization_code',
code: code,
scope: 'https://vault.azure.net/.default openid offline_access',
@@ -147,16 +147,16 @@ const exchangeCodeAzure = async ({
redirect_uri: `${SITE_URL}/integrations/azure-key-vault/oauth2/callback`
} as any)
)).data;
-
+
accessExpiresAt.setSeconds(
- accessExpiresAt.getSeconds() + res.expires_in
+ accessExpiresAt.getSeconds() + res.expires_in
);
} catch (err: any) {
Sentry.setUser(null);
Sentry.captureException(err);
throw new Error('Failed OAuth2 code-token exchange with Azure');
}
-
+
return ({
accessToken: res.access_token,
refreshToken: res.refresh_token,
@@ -175,36 +175,36 @@ const exchangeCodeAzure = async ({
* @returns {Date} obj2.accessExpiresAt - date of expiration for access token
*/
const exchangeCodeHeroku = async ({
- code
+ code
}: {
- code: string;
+ code: string;
}) => {
- let res: ExchangeCodeHerokuResponse;
- const accessExpiresAt = new Date();
- try {
- res = (await axios.post(
- INTEGRATION_HEROKU_TOKEN_URL,
- new URLSearchParams({
- grant_type: 'authorization_code',
- code: code,
- client_secret: CLIENT_SECRET_HEROKU
- } as any)
- )).data;
-
- accessExpiresAt.setSeconds(
- accessExpiresAt.getSeconds() + res.expires_in
- );
- } catch (err) {
- Sentry.setUser(null);
- Sentry.captureException(err);
- throw new Error('Failed OAuth2 code-token exchange with Heroku');
- }
-
- return ({
- accessToken: res.access_token,
- refreshToken: res.refresh_token,
- accessExpiresAt
- });
+ let res: ExchangeCodeHerokuResponse;
+ const accessExpiresAt = new Date();
+ try {
+ res = (await axios.post(
+ INTEGRATION_HEROKU_TOKEN_URL,
+ new URLSearchParams({
+ grant_type: 'authorization_code',
+ code: code,
+ client_secret: CLIENT_SECRET_HEROKU
+ } as any)
+ )).data;
+
+ accessExpiresAt.setSeconds(
+ accessExpiresAt.getSeconds() + res.expires_in
+ );
+ } catch (err) {
+ Sentry.setUser(null);
+ Sentry.captureException(err);
+ throw new Error('Failed OAuth2 code-token exchange with Heroku');
+ }
+
+ return ({
+ accessToken: res.access_token,
+ refreshToken: res.refresh_token,
+ accessExpiresAt
+ });
}
/**
@@ -234,7 +234,7 @@ const exchangeCodeVercel = async ({ code }: { code: string }) => {
} catch (err) {
Sentry.setUser(null);
Sentry.captureException(err);
- throw new Error('Failed OAuth2 code-token exchange with Vercel');
+ throw new Error(`Failed OAuth2 code-token exchange with Vercel [err=${err}]`);
}
return {
diff --git a/helm-charts/infisical/values.yaml b/helm-charts/infisical/values.yaml
index f670028b3c..d569e7c317 100644
--- a/helm-charts/infisical/values.yaml
+++ b/helm-charts/infisical/values.yaml
@@ -209,6 +209,8 @@ mongodb:
##
databases:
- "infisical"
+ rootPassword: root
+ rootUser: root
## MongoDB persistence configuration
##
persistence:
@@ -250,7 +252,7 @@ ingress:
kubernetes.io/ingress.class: "nginx"
# cert-manager.io/issuer: letsencrypt-nginx
## @param ingress.hostName Ingress hostname (your custom domain name)
- ## Replace with your own domain
+ ## Replace with your own domain
##
hostName: infisical.local
## @skip ingress.frontend
@@ -264,9 +266,10 @@ ingress:
path: /api
pathType: Prefix
## @param ingress.tls Ingress TLS hosts (matching above hostName)
- ## Replace with your own domain
+ ## Replace with your own domain
##
- tls: []
+ tls:
+ []
# - secretName: letsencrypt-nginx
# hosts:
# - infisical.local
@@ -338,7 +341,8 @@ mailhog:
ingressClassName: nginx
## @param mailhog.ingress.annotations Ingress annotations
##
- annotations: {}
+ annotations:
+ {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
## @param mailhog.ingress.labels Ingress labels
@@ -352,4 +356,4 @@ mailhog:
##
paths:
- path: "/"
- pathType: Prefix
\ No newline at end of file
+ pathType: Prefix