mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
Baserow's native SSO is Enterprise-only, so gate the community image with the shared Keycloak oauth2-proxy and patch urls.py (via a custom Dockerfile) with a trusted-header bridge. The bridge provisions/repairs a local Baserow user from the oauth2-proxy identity headers and mints native refresh/access/user_session tokens, mirroring Baserow's own SSO redirect contract (?token=&user_session=). proxy.conf.j2 performs the nginx handoff: an authenticated browser without a jwt_token cookie is 302'd to /api/infinito/sso/login/, which redirects back to /?token=&user_session= for the frontend middleware to consume. bootstrap_admin marks the superuser email_verified + completed_onboarding to skip onboarding. Replace the LDAP service/variant with proxy-gating and rewrite the seaweedfs + persona Playwright tests to drive Baserow through its API using the SSO-minted JWT. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 lines
304 B
Docker
8 lines
304 B
Docker
ARG BASEROW_IMAGE
|
|
ARG BASEROW_VERSION
|
|
FROM ${BASEROW_IMAGE}:${BASEROW_VERSION}
|
|
|
|
COPY infinito_sso.py /baserow/backend/src/baserow/infinito_sso.py
|
|
COPY settings_patch.py /tmp/infinito_baserow_settings_patch.py
|
|
RUN cat /tmp/infinito_baserow_settings_patch.py >> /baserow/backend/src/baserow/config/urls.py
|