Artica Wiki

Docker Store: Authelia authentication portal

Install the Authelia single sign-on portal from the Artica Docker Store and manage its users, access rules and notifications from the Artica console.

Artica for Docker Edition > Authelia

Put a single sign-on portal with two-factor authentication in front of your sites.
Artica installs the Authelia portal in a single form: secrets, first account, access policy and hardening are done for you.
Users, access rules and notifications are then managed from the Artica console, without editing a YAML file.
No port of the appliance is opened: the Artica reverse-proxy is the only way in.

The Authelia tile in the Docker Store

What Authelia brings

Authelia is an open-source authentication portal.
Users sign in once on the portal, with a password and, if you require it, a second factor.
A web server placed in front of an application asks Authelia whether each request may pass, according to your access rules.

Advantages

Use cases

Artica installs and manages the portal.
It does not attach the reverse-proxy sites to Authelia yet: protecting a site with auth_request is planned for a later release.

Before you start

Install Authelia

  1. Open Docker > Docker Store.
  2. On the Authelia tile, click Install.
  3. Fill in the form.
  4. Click Installation.

The Authelia installation window

Field What to enter
Protected domain The domain whose sites the portal protects, for example example.com.
It cannot be changed later.
Portal address The HTTPS address of the login page, for example https://auth.example.com.
It cannot be changed later.
Default policy Applies to every request that no access rule matches.
Deny is the safest choice.
First account Login (lower case, digits, dot, dash and underscore, 32 characters at most), display name, e-mail address and password (12 to 256 characters).
The account is placed in the admins group.
Notifications Notification file (tests) keeps the messages on the appliance.
For real use, choose a mail server and give its port, username, password and sender address.

The stack is named authelia: one portal per appliance.

Manage the portal

On the Authelia tile, click Manage.

Users

Add a user, change a password, disable or delete an account.
A password a user resets from the portal is kept.

The Users tab of the Manage window

Access rules

Rules are checked in order and the first one that matches decides.
Each rule names domains, a policy (bypass, one_factor, two_factor or deny), and optionally users, groups and source networks.
Edit the list, then click Save: Authelia restarts with a new revision of its stack.

The Access rules tab of the Manage window

Settings and notifications

The Settings tab shows the protected domain, the portal address and the way the portal is reached.
The domain and the portal address are fixed: cookies, certificates and the reverse-proxy site depend on them.
You can switch the notifications between the notification file and a mail server there.

The Settings tab of the Manage window

With the notification file, the Notifications tab shows the messages Authelia would have sent, such as one-time codes and password-reset links.
Use it for tests only.

Troubleshooting

Symptom Cause and fix
The portal refuses to open or the session is lost at once. Authelia only works over HTTPS.
Publish the portal site in HTTPS so that the reverse-proxy sends X-Forwarded-Proto: https.
The installation says data is left from an earlier portal. A kept authelia_config volume still holds the old users and database.
Remove it from Docker > Volumes to start again.
No password-reset e-mail arrives. The notifications use the notification file.
Choose a mail server in the Settings tab, or read the message in the Notifications tab.