Authelia and Authentik setup

Hi guys hoping someone can help has anyone setup Authelia and Authentik on TrueNAS Scale EE? I installed redis and postgres which seems to be needed for database configuration but can’t seem to figure out how to install the auth apps since it needs a encryption key, jwt secret and session secret.

So currently I’m stuck there if anyone maybe is able to assist it would highly be appreciated.

I’ve been using authentik, which is running in my jailmaker jail, for close to a year now. I’ve followed this video tutorial directly from authentik and use it with traefik labels on my other apps.
The official compose file includes side-container for postgress and redis so you don’t have to manually deploy them.
I had problems getting it deployed via portainer because of the included .env files, so i deploy it direcly via docker compose up.

thanks but doesn’t answer the question of encryption key jwt secret or session secret

Yes, it does–first, just don’t use the app; use Docker Compose instead. Or, second, if you really (unwisely, because it’s obviously very poorly designed) want to use the app, the link given above shows you how to generate the secret key and postgres password. Authentik doesn’t ask for a session key or JWT secret; if you’re asking about Authelia, check their docs for how to generate them.

for authentik the guide states:

Run the following commands to generate a password and secret key and write them to your .env file:

echo "PG_PASS=$(openssl rand -base64 36 | tr -d '\n')" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 60 | tr -d '\n')" >> .env

which generates the postgress password and secret key and then stores it in the .env file. the docker-compose file pulls those secrets from the .env file.

…and running those same commands will generate the keys needed if you for some reason want to install it via the poorly-designed app.

1 Like

Recycling this video again, great authelia info.