After upgrading the SSO plugin to 1.0.0 and rolling out the 2026.10.0-upgrade, server did not start up any more, seemingly due to missing dependencies:
Error: Cannot find module 'openid-client'
Require stack:
/cryptpad/lib/plugins/sso/protocols/oidc.js
/cryptpad/lib/plugins/sso/sso-utils.js
/cryptpad/lib/plugins/sso/challenge.js
/cryptpad/lib/plugins/sso/index.js
/cryptpad/node_modules/cryptpad-server/build/core.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1564:15)
at wrapResolveFilename (node:internal/modules/cjs/loader:1118:27)
at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1142:10)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1169:12)
at Module._load (node:internal/modules/cjs/loader:1341:5)
at wrapModuleLoad (node:internal/modules/cjs/loader:261:19)
at Module.require (node:internal/modules/cjs/loader:1674:12)
at require (node:internal/modules/helpers:157:16)
at Object.<anonymous> (/cryptpad/lib/plugins/sso/protocols/oidc.js:1:13)
at Module._compile (node:internal/modules/cjs/loader:1929:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/cryptpad/lib/plugins/sso/protocols/oidc.js',
'/cryptpad/lib/plugins/sso/sso-utils.js',
'/cryptpad/lib/plugins/sso/challenge.js',
'/cryptpad/lib/plugins/sso/index.js',
'/cryptpad/node_modules/cryptpad-server/build/core.js'
]
}
We are running the docker image, the SSO-plugin is mounted into the container. Previous versions of the SSO plugin where self-contained. To make this work after the upgrade, I needed to manually install the openid-client as root inside the container:
cd /cryptpad/lib/plugins/sso
npm ci --omit=dev
Did I miss something? Is this a mandatory step now? I am happy to create a pull request to update the SSO-documentation, but would prefer an auto-install inside the container on startup to avoid this during each upgrade.