Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write script that configures zulip SAML to use authentik #2

Open
3 tasks
pirate opened this issue Jan 21, 2025 · 1 comment
Open
3 tasks

Write script that configures zulip SAML to use authentik #2

pirate opened this issue Jan 21, 2025 · 1 comment
Assignees

Comments

@pirate
Copy link
Member

pirate commented Jan 21, 2025

When all the containers first come up, there are in an empty clean slate state.

Please write a script that creates whatever config files & db records are needed to point Zulip to Authentik for authentication.

The script should live in either zulip/bin/link_to_authentik.sh or authentik/bin/link_to_zulip or both, whatever you think is best. The script should take the following inputs as environment variables:

  • COMPANY_NAME=SelfHostYourTech
  • COMPANY_DOMAIN=selfhostyour.tech
  • ADMIN_USERNAME=admin
  • ADMIN_PASSWORD=<random if not provided>

It should programatically perform the steps described here on the Zulip side and the Authentik side:

You can write directly to the apps data in ./<appname>/data/..., you can use their REST/RPC APIs, you can add config by writing to .env in the app dirs, the only thing the script cant do is require the user to click around in any UIs.


Subtasks

  • Make sure ./authentik/docker-compose.yml works to spin up a fresh empty autentik server
  • Make sure ./zulip/docker-compose.yml works to spin up a fresh empty Zulip server
  • Make sure you can access the REST APIs / endpoints / filesystems of both as needed to automate the setup process
@pirate pirate changed the title Write the script that configures a freshly created zulip instance to use a freshly created authentik instance for auth Write script that configures zulip SAML to use authentik Jan 21, 2025
@MiltonLn
Copy link
Contributor

MiltonLn commented Jan 21, 2025

TODOs:

Authentik

  • Generate the .env file for Authentik and create true and secure secret keys.
  • Create external network with a script before running Authentik docker-compose: docker network create traefik-public

MiltonLn added a commit that referenced this issue Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants