2023-05-07 06:39:17 +00:00
|
|
|
---
|
2023-05-07 06:41:41 +00:00
|
|
|
default_redirection_url: 'https://home.example.com:8080/'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
server:
|
2023-05-07 06:41:41 +00:00
|
|
|
address: 'tcp://127.0.0.1:9091'
|
2023-05-07 06:39:17 +00:00
|
|
|
endpoints:
|
|
|
|
authz:
|
|
|
|
forward-auth:
|
2023-05-07 06:41:41 +00:00
|
|
|
implementation: 'ForwardAuth'
|
2023-05-07 06:39:17 +00:00
|
|
|
authn_strategies:
|
2023-05-07 06:41:41 +00:00
|
|
|
- name: 'HeaderProxyAuthorization'
|
|
|
|
- name: 'CookieSession'
|
2023-05-07 06:39:17 +00:00
|
|
|
ext-authz:
|
2023-05-07 06:41:41 +00:00
|
|
|
implementation: 'ExtAuthz'
|
2023-05-07 06:39:17 +00:00
|
|
|
authn_strategies:
|
2023-05-07 06:41:41 +00:00
|
|
|
- name: 'HeaderProxyAuthorization'
|
|
|
|
- name: 'CookieSession'
|
2023-05-07 06:39:17 +00:00
|
|
|
auth-request:
|
2023-05-07 06:41:41 +00:00
|
|
|
implementation: 'AuthRequest'
|
2023-05-07 06:39:17 +00:00
|
|
|
authn_strategies:
|
2023-05-07 06:41:41 +00:00
|
|
|
- name: 'HeaderAuthRequestProxyAuthorization'
|
|
|
|
- name: 'CookieSession'
|
2023-05-07 06:39:17 +00:00
|
|
|
legacy:
|
2023-05-07 06:41:41 +00:00
|
|
|
implementation: 'Legacy'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
log:
|
2023-05-07 06:41:41 +00:00
|
|
|
level: 'debug'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
totp:
|
2023-05-07 06:41:41 +00:00
|
|
|
issuer: 'authelia.com'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
duo_api:
|
2023-05-07 06:41:41 +00:00
|
|
|
hostname: 'api-123456789.example.com'
|
|
|
|
integration_key: 'AB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ogn7fJgmwTHidJBr2WQpIEkNGlK3Dzi
|
|
|
|
jXL2sh0yC7sHvn0DqiQ79l/e7yRbSnv2wrTJEczOOH2haD7/tBRyCYECgYEA8W+q
|
|
|
|
E9YyGvEltnPFaOxofNZ8LHVcZSsQI5b6fc0iE7fjxFqeXPXEwGSOTwqQLQRiHn9b
|
|
|
|
CfPmIG4Vhyq0otVmlPvUnfBZ2OK+tl5X2/mQFO3ROMdvpi0KYa994uqfJdSTaqLn
|
|
|
|
jjoKFB906UFHnDQDLZUNiV1WwnkTglgLc+xrd6cCgYEAqqthyv6NyBTM3Tm2gcio
|
|
|
|
Ra9Dtntl51LlXZnvwy3IkDXBCd6BHM9vuLKyxZiziGx+Vy90O1xI872cnot8sINQ
|
|
|
|
Am+dur/tAEVN72zxyv0Y8qb2yfH96iKy9gxi5s75TnOEQgAygLnYWaWR2lorKRUX
|
|
|
|
bHTdXBOiS58S0UzCFEslGIECgYBqkO4SKWYeTDhoKvuEj2yjRYyzlu28XeCWxOo1
|
|
|
|
otiauX0YSyNBRt2cSgYiTzhKFng0m+QUJYp63/wymB/5C5Zmxi0XtWIDADpLhqLj
|
|
|
|
HmmBQ2Mo26alQ5YkffBju0mZyhVzaQop1eZi8WuKFV1FThPlB7hc3E0SM5zv2Grd
|
|
|
|
tQnOWwKBgQC40yZY0PcjuILhy+sIc0Wvh7LUA7taSdTye149kRvbvsCDN7Jh75lM
|
|
|
|
USjhLXY0Nld2zBm9r8wMb81mXH29uvD+tDqqsICvyuKlA/tyzXR+QTr7dCVKVwu0
|
|
|
|
1YjCJ36UpTsLre2f8nOSLtNmRfDPtbOE2mkOoO9dD9UU0XZwnvn9xw==
|
|
|
|
-----END RSA PRIVATE KEY-----
|
2023-05-07 06:41:41 +00:00
|
|
|
base_dn: 'dc=example,dc=com'
|
|
|
|
username_attribute: 'uid'
|
|
|
|
additional_users_dn: 'ou=users'
|
|
|
|
users_filter: '(&({username_attribute}={input})(objectCategory=person)(objectClass=user))'
|
|
|
|
additional_groups_dn: 'ou=groups'
|
|
|
|
groups_filter: '(&(member={dn})(objectClass=groupOfNames))'
|
|
|
|
group_name_attribute: 'cn'
|
|
|
|
mail_attribute: 'mail'
|
|
|
|
user: 'cn=admin,dc=example,dc=com'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
access_control:
|
2023-05-07 06:41:41 +00:00
|
|
|
default_policy: 'deny'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
rules:
|
|
|
|
# Rules applied to everyone
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'public.example.com'
|
|
|
|
policy: 'bypass'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'secure.example.com'
|
|
|
|
policy: 'one_factor'
|
2023-05-07 06:39:17 +00:00
|
|
|
# Network based rule, if not provided any network matches.
|
|
|
|
networks:
|
2023-05-07 06:41:41 +00:00
|
|
|
- '192.168.1.0/24'
|
|
|
|
- domain: 'secure.example.com'
|
|
|
|
policy: 'two_factor'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: ['singlefactor.example.com', 'onefactor.example.com']
|
|
|
|
policy: 'one_factor'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
# Rules applied to 'admins' group
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'mx2.mail.example.com'
|
|
|
|
subject: 'group:admins'
|
|
|
|
policy: 'deny'
|
|
|
|
- domain: '*.example.com'
|
|
|
|
subject: 'group:admins'
|
|
|
|
policy: 'two_factor'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
# Rules applied to 'dev' group
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'dev.example.com'
|
2023-05-07 06:39:17 +00:00
|
|
|
resources:
|
2023-05-07 06:41:41 +00:00
|
|
|
- '^/groups/dev/.*$'
|
|
|
|
subject: 'group:dev'
|
|
|
|
policy: 'two_factor'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
# Rules applied to user 'john'
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'dev.example.com'
|
2023-05-07 06:39:17 +00:00
|
|
|
resources:
|
2023-05-07 06:41:41 +00:00
|
|
|
- '^/users/john/.*$'
|
|
|
|
subject: 'user:john'
|
|
|
|
policy: 'two_factor'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
# Rules applied to 'dev' group and user 'john'
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'dev.example.com'
|
2023-05-07 06:39:17 +00:00
|
|
|
resources:
|
2023-05-07 06:41:41 +00:00
|
|
|
- '^/deny-all.*$'
|
|
|
|
subject: ['group:dev', 'user:john']
|
|
|
|
policy: 'deny'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
# Rules applied to user 'harry'
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: 'dev.example.com'
|
2023-05-07 06:39:17 +00:00
|
|
|
resources:
|
2023-05-07 06:41:41 +00:00
|
|
|
- '^/users/harry/.*$'
|
|
|
|
subject: 'user:harry'
|
|
|
|
policy: 'two_factor'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
# Rules applied to user 'bob'
|
2023-05-07 06:41:41 +00:00
|
|
|
- domain: '*.mail.example.com'
|
|
|
|
subject: 'user:bob'
|
|
|
|
policy: 'two_factor'
|
|
|
|
- domain: 'dev.example.com'
|
2023-05-07 06:39:17 +00:00
|
|
|
resources:
|
2023-05-07 06:41:41 +00:00
|
|
|
- '^/users/bob/.*$'
|
|
|
|
subject: 'user:bob'
|
|
|
|
policy: 'two_factor'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
session:
|
2023-05-07 06:41:41 +00:00
|
|
|
name: 'authelia_session'
|
|
|
|
expiration: '1h' # 1 hour
|
|
|
|
inactivity: '5m' # 5 minutes
|
|
|
|
domain: 'example.com'
|
2023-05-07 06:39:17 +00:00
|
|
|
redis:
|
2023-05-07 06:41:41 +00:00
|
|
|
host: '127.0.0.1'
|
2023-05-07 06:39:17 +00:00
|
|
|
port: 6379
|
|
|
|
high_availability:
|
2023-05-07 06:41:41 +00:00
|
|
|
sentinel_name: 'test'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
regulation:
|
|
|
|
max_retries: 3
|
2023-05-07 06:41:41 +00:00
|
|
|
find_time: '2m'
|
|
|
|
ban_time: '5m'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
storage:
|
|
|
|
postgres:
|
2023-05-07 06:41:41 +00:00
|
|
|
host: '127.0.0.1'
|
2023-05-07 06:39:17 +00:00
|
|
|
port: 5432
|
2023-05-07 06:41:41 +00:00
|
|
|
database: 'authelia'
|
|
|
|
username: 'authelia'
|
2023-05-07 06:39:17 +00:00
|
|
|
|
|
|
|
notifier:
|
|
|
|
smtp:
|
2023-05-07 06:41:41 +00:00
|
|
|
username: 'test'
|
|
|
|
host: '127.0.0.1'
|
2023-05-07 06:39:17 +00:00
|
|
|
port: 1025
|
2023-05-07 06:41:41 +00:00
|
|
|
sender: 'admin@example.com'
|
2023-05-07 06:39:17 +00:00
|
|
|
disable_require_tls: true
|
|
|
|
...
|