]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-rules: test the HTTP authentication action, fetches and ACL
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2026 20:29:01 +0000 (20:29 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 14:55:57 +0000 (16:55 +0200)
commit49930d36c536efa080f608a685e45148034275b3
tree2c1443b733ffd884f0dcd91e1b2e85a1d7fd87ea
parent9a7db2d760ac2c25cf77f17dfe45238f649c8322
REGTESTS: http-rules: test the HTTP authentication action, fetches and ACL

Neither the "auth" action nor the http_auth_user, http_auth_pass,
http_auth_type and http_auth_group fetches were covered, and the
userlist section was only exercised through the stats.

The test declares a userlist with two users, one of them in a group,
and checks that the credentials are readable before being validated,
that http_auth() only matches with the right password, that
http_auth_group() only matches for the member of the group, and that
the "auth" action emits a 401 carrying the requested realm until valid
credentials are presented.
reg-tests/http-rules/http_auth.vtc [new file with mode: 0644]