https://sabnzbd.domain.com/api?mode=get_config&apikey=d5f8132adf2c5baed2e97a3&output=json
^
there
api([?\/].*)?$
matches /api?mode=get_config&apikey=d5f8132adf2c5baed2e97a3&output=json
and it matches /randompath/thisisapi?mode=get_config&apikey=d5f8132adf2c5baed2e97a3&output=json
default_policy: deny
rules:
- domain: "*"
policy: bypass
networks:
- 192.168.1.0/24
- domain:
- "*.domain.com"
- "domain.com"
policy: two_factor
- domain:
- 'radarr.domain.com'
resources:
- '^/api([?/].*)?$'
policy: bypass
- domain:
- 'sabnzbd.domain.com'
resources:
- '^/api([?/].*)?$'
policy: bypass
policy: two_factor
for ALL domains, that means the bypasses under it wont work right?
access_control:
default_policy: deny
rules:
- domain: "*"
policy: bypass
networks:
- 192.168.1.0/24
- domain:
- 'radarr.domain.com'
resources:
- '^/api([?/].*)?$'
policy: bypass
- domain:
- 'sabnzbd.domain.com'
resources:
- '^/api([?/].*)?$'
policy: bypass
- domain:
- "*.domain.com"
- "domain.com"
policy: two_factor
- domain: "*.domain.com"
policy: bypass
networks:
- 192.168.1.0/24
- domain:
- "*.domain.com"
- "domain.com"
policy: two_factor
that on line 8 doesnt matter?
- domain:
- "*.domain.com"
- "domain.com"
policy: two_factor
That rule makes all subsequent rules implicitly ignored
access_control:
default_policy: two_factor
rules:
- domain: "*"
policy: bypass
networks:
- 192.168.1.0/24
- domain: radarr.domain.com
resources:
- '^/api([?/].*)?$'
policy: bypass
- domain: sabnzbd.domain.com
resources:
- '^/api([?/].*)?$'
policy: bypass
Hi
I'm wondering if Authelia would be appropriate for my use-case, or if I should look for something else:
Basically, I have a few servers on my home network containing things that I might want to access over the internet, but since exposing things on your home network to the internet is a terrible idea, I'm going to use Cloudflare Tunnels to secure them. Tunnels is part of Cloudflare's Zero Trust offering, which also seems to be able to lock webpages behind a login gate for extra security, however, because it's designed for enterprise, it only supports SSO systems. After giving up on Keycloak, I found Authelia and noticed it has OpenID support, however, looking at the documentation it seems that my use-case might not be an intended one. But would it work?
I have realised that I could forgo Cloudflare's authentication altogether and just use Authelia to secure everything, but would Authelia work with Cloudflare's system as well?