Enable auth for transmission and sonarr

This commit is contained in:
Colin Hebert
2023-01-16 18:51:40 +01:00
parent 43fff62fed
commit 07249eb891
3 changed files with 21 additions and 1 deletions

View File

@@ -27,4 +27,22 @@
##
## Note: the order of the rules is important. The first policy matching (domain, resource, subject) applies.
access_control:
default_policy: two_factor
default_policy: deny
rules:
# Support for one factor for transmission API
# Only users in "transmission-basic" should be allowed to do so
- domain_regex: '^transmission\..*'
policy: one_factor
subject:
- 'group:transmission-basic'
# Disable authentication on API protected by API keys
- domain_regex: '^(bazarr|prowlarr|radarr|sonarr)\..*'
policy: bypass
resources:
- '^/api$'
- '^/api/'
# Effective default policy, only allow admins with two-factor
- domain_regex: '.*'
policy: two_factor
subject:
- 'group:admins'