Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
misc: added comment regarding session and redis usage
Sheen Capadnganbdc7c018eb5e
diff --git a/backend/src/ee/routes/v1/oidc-router.ts b/backend/src/ee/routes/v1/oidc-router.tsindex 36ad8a0857..8b68a8aef3 100644--- a/backend/src/ee/routes/v1/oidc-router.ts+++ b/backend/src/ee/routes/v1/oidc-router.ts@@ -22,6 +22,12 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {const appCfg = getConfig();const redis = new Redis(appCfg.REDIS_URL);const passport = new Authenticator({ key: "oidc", userProperty: "passportUser" });++ /*+ - OIDC protocol cannot work without sessions: https://github.com/panva/node-openid-client/issues/190+ - Current redis usage is not ideal and will eventually have to be refactored to use a better structure+ - Fastify session <> Redis structure is based on the ff: https://github.com/fastify/session/blob/master/examples/redis.js+ */const redisStore = new RedisStore({client: redis,prefix: "oidc-session:",