mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-09-26 22:20:23 -04:00
docs(subrequest-auth): document required policy changes (#613)
* docs(subrequest-auth): document required policy changes Signed-off-by: foosinn <foosinn@f2o.io> * chore: spelling Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: foosinn <foosinn@f2o.io> Signed-off-by: Xe Iaso <me@xeiaso.net> Co-authored-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
76fa3e01a5
commit
9f1d791991
3
.github/actions/spelling/expect.txt
vendored
3
.github/actions/spelling/expect.txt
vendored
@ -9,6 +9,7 @@ anubistest
|
||||
Applebot
|
||||
archlinux
|
||||
badregexes
|
||||
bdba
|
||||
berr
|
||||
bingbot
|
||||
bitcoin
|
||||
@ -27,6 +28,7 @@ caninetools
|
||||
Cardyb
|
||||
celchecker
|
||||
CELPHASE
|
||||
cerr
|
||||
certresolver
|
||||
CGNAT
|
||||
cgr
|
||||
@ -183,6 +185,7 @@ prebaked
|
||||
privkey
|
||||
promauto
|
||||
promhttp
|
||||
proofofwork
|
||||
pwcmd
|
||||
pwuser
|
||||
qualys
|
||||
|
@ -10,6 +10,20 @@ Anubis can act in one of two modes:
|
||||
1. Reverse proxy (the default): Anubis sits in the middle of all traffic and then will reverse proxy it to its destination. This is the moral equivalent of a middleware in your favorite web framework.
|
||||
2. Subrequest authentication mode: Anubis listens for requests and if they don't pass muster then they are forwarded to Anubis for challenge processing. This is the equivalent of Anubis being a sidecar service.
|
||||
|
||||
:::note
|
||||
|
||||
Subrequest authentication requires changing the default policy because nginx interprets the default `DENY` status code `200` as successful authentication and allows the request.
|
||||
|
||||
```yaml
|
||||
status_codes:
|
||||
CHALLENGE: 200
|
||||
DENY: 403
|
||||
```
|
||||
|
||||
[See policy definitions](../policies.mdx).
|
||||
|
||||
:::
|
||||
|
||||
## Nginx
|
||||
|
||||
Anubis can perform [subrequest authentication](https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-subrequest-authentication/) with the `auth_request` module in Nginx. In order to set this up, keep the following things in mind:
|
||||
|
Loading…
x
Reference in New Issue
Block a user