- Create
/etc/ssh/sshd_config.d/10-certs.conf:
PermitRootLogin prohibit-password
- Restart sshd
- Add NGINX's ssh key to
/root/.ssh/authorized_keys - rsync TLS certificates to
/srv/authentik/authentik/certs/auth.metropolis.nexus
Work around bug #18546
As Authentik rebuild sometimes fails when Postgres rebuild does not, this may result in the server not being able to contact the worker. To work around this issue, update /etc/systemd/system/docker-auto-update@authentik.service and add ExecStart=/usr/bin/docker compose down before ExecStart=/usr/bin/docker compose up -d.
Enter the admin section and configure the following:
- Create metropolis-default
Import from the flows directory.
- Importing the flows will be a little tricky since there is a lot of circular dependencies and Authentik does not let you import multiple files at the same time. You'll need to adjust the flows to work around this issue.
- Stage binding for the recovery flow is copied from the default flow. It's a bit strange how policy evaluation is configured there. Need further investigation later.
- We are changing the default password change stage and flow instead of making our own due to this issue.
- Disable "Default"
- Domain: auth.metropolis.nexus
- Enable "Default": Make this the default brand
- Title: Metropolis Nexus
- Default flow background: /media/public/flow-backgrounds/chicago.jpg
- Default flows
- Authentication flow: metropolis-authentication-flow
- Invalidation flow: metropolis-invalidation-flow
- Recovery flow: metropolis-recovery-flow
- User settings flow: metropolis-user-settings-flow
- Web Certificate: auth.metropolis.nexus
- Attributes:
settings:
theme:
base: dark
background: >
background: url('/media/public/flow-backgrounds/chicago.jpg');
filter: blur(8px) brightness(50%);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
- Avatars: none
- Allow users to change email
- Event rentention: days=90
- Disable "Require reason for impersonation"
Delete all of the following:
All default flows except default-password-change
All stages not used by a flow
All flows not used by a stage
All policies not assigned to at least 1 object
- authentik-default
Directory -> User -> akadmin
- Clear out name
- Clear out email