: asapien/signet

commit 68ed63bb2af5e8f41e57db11432c73357a5caae7
parent 253b4235cb42a8b0a9c8d1c4b4e65f6cfd89e9ed
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:57:01 +0530

Add Authelia to test container startup

Install Authelia directly in test container using apk add authelia.
Start Authelia on port 9091 in dev-up.sh.

Setup:
1. Authelia listens on localhost:9091
2. Uses /etc/authelia.yml config (copied from /src/etc/)
3. Uses /etc/authelia-users.yml for test users (admin/admin, ceo/ceo, etc.)
4. Stores state in /var/lib/authelia/

To enable auth proxy:
- Edit test/lighttpd-dev.conf
- Uncomment the proxy.server line around line 16
- Restart: test/dev-up.sh

Access:
- http://localhost:8081/ (Signet)
- http://localhost:8081/pim/ (PIM)
- Login with admin/admin (or ceo/ceo, manager/manager, viewer/viewer)

Authelia handles all auth; Signet/PIM read Remote-User and Remote-Groups headers.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 file changed, 15 insertions(+), 1 deletion(-)
M
test/dev-up.sh
|
16
+++++++++++++++-
diff --git a/test/dev-up.sh b/test/dev-up.sh
@@ -42,5 +42,19 @@ kfcgi -n 2 -N 2 -s /run/signet/api.sock -u lighttpd -U signet -p / -- /usr/local
 kfcgi -n 1 -N 1 -s /run/signet/pim.sock -u lighttpd -U signet -p / -- /usr/local/libexec/pim-api
 su-exec signetd:signet /usr/local/sbin/signetd 2>>/tmp/signetd.log &
 
-echo "signet dev stack on http://localhost:8080  (users are whatever you type; groups: clerks, management, signet-admins)"
+# Install and start Authelia with YAML backend
+if ! command -v authelia >/dev/null 2>&1; then
+	apk add -q authelia
+fi
+mkdir -p /var/lib/authelia
+cp /src/etc/authelia.yml /etc/authelia.yml
+cp /src/etc/authelia-users.yml /etc/authelia-users.yml
+authelia 2>>/tmp/authelia.log &
+echo "Authelia started (listening on :9091)"
+
+echo "signet dev stack on http://localhost:8080"
+echo "  Signet: http://localhost:8080/"
+echo "  PIM:    http://localhost:8080/pim/"
+echo "  Auth:   Authelia (admin/admin)"
+echo "  Note:   Enable proxy in lighttpd-dev.conf line ~16"
 exec lighttpd -D -f /src/test/lighttpd-dev.conf