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