This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| module.exports = { | ||||
|     clientUrl: process.env.CLIENT_URL, | ||||
|     sessionSecret: process.env.SESSION_SECRET, | ||||
|     oidc: { | ||||
|         gatewayUri: process.env.OIDC_GATEWAY_URI, | ||||
|         clientId: process.env.OIDC_CLIENT_ID, | ||||
|   | ||||
| @@ -103,11 +103,6 @@ spec: | ||||
|                 secretKeyRef: | ||||
|                   name: redis-walias-cache-owner-secrets | ||||
|                   key: REDIS_MASTER_URI | ||||
|             - name: REDIS_PASSWORD | ||||
|               valueFrom: | ||||
|                 secretKeyRef: | ||||
|                   name: redis-walias-cache-owner-secrets | ||||
|                   key: REDIS_PASSWORD | ||||
|           envFrom: | ||||
|             - secretRef: | ||||
|                 name: oidc-client-walias-owner-secrets | ||||
|   | ||||
| @@ -45,7 +45,7 @@ if (getEnv() === Env.prod) { | ||||
| app.use( | ||||
|     session({ | ||||
|         store: sessionStore, | ||||
|         secret: randomUUID(), | ||||
|         secret: config.get('sessionSecret') || randomUUID(), | ||||
|         resave: false, | ||||
|         saveUninitialized: false, | ||||
|         cookie: { secure: false }, | ||||
|   | ||||
| @@ -126,10 +126,8 @@ export class AliasesService<ServiceParams extends AliasesParams = AliasesParams> | ||||
|  | ||||
|     sanitizeAliasResponse(alias: WildDuckAddress): AliasApiResponse { | ||||
|         // Hide the id if the alias is not removable | ||||
|         const isRemovable = alias.main || !alias.address.endsWith(config.get('wildDuck.preferredDomain')); | ||||
|  | ||||
|         return { | ||||
|             id: isRemovable ? null : alias.id, | ||||
|             id: alias.main ? null : alias.id, | ||||
|             address: alias.address, | ||||
|             tags: alias.tags, | ||||
|             created: alias.created, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user