Skip to content

Commit efc637c

Browse files
committed
Update nginz whitelists and blacklists
1 parent 74632d7 commit efc637c

File tree

2 files changed

+18
-27
lines changed

2 files changed

+18
-27
lines changed

charts/cannon/conf/static/zauth.acl

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
a (blacklist (path "/provider")
2-
(path "/provider/**")
3-
(path "/bot")
4-
(path "/bot/**")
5-
(path "/i/**"))
1+
a (blacklist (path "(/v[0-9]+)?/provider(/.*)?")
2+
(path "(/v[0-9]+)?/bot(/.*)?")
3+
(path "(/v[0-9]+)?/i/.*"))
64

7-
b (whitelist (path "/bot")
8-
(path "/bot/**"))
5+
b (whitelist (regex "(/v[0-9]+)?/bot(/.*)?"))
96

10-
p (whitelist (path "/provider")
11-
(path "/provider/**"))
7+
p (whitelist (regex "(/v[0-9]+)?/provider(/.*)?"))
128

139
# LegalHold Access Tokens
14-
la (whitelist (path "/notifications")
15-
(path "/assets/v3/**")
16-
(path "/users")
17-
(path "/users/**"))
10+
la (whitelist (regex "(/v[0-9]+)?/notifications")
11+
(regex "(/v[0-9]+)?/assets/v3/.*")
12+
(regex "(/v[0-9]+)?/users(/.*)?")
13+
(regex "(/v[0-9]+)?/legalhold/conversations/[^/]+"))

charts/nginz/static/conf/zauth.acl

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
a (blacklist (path "/provider")
2-
(path "/provider/**")
3-
(path "/bot")
4-
(path "/bot/**")
5-
(path "/i/**"))
1+
a (blacklist (path "(/v[0-9]+)?/provider(/.*)?")
2+
(path "(/v[0-9]+)?/bot(/.*)?")
3+
(path "(/v[0-9]+)?/i/.*"))
64

7-
b (whitelist (path "/bot")
8-
(path "/bot/**"))
5+
b (whitelist (regex "(/v[0-9]+)?/bot(/.*)?"))
96

10-
p (whitelist (path "/provider")
11-
(path "/provider/**"))
7+
p (whitelist (regex "(/v[0-9]+)?/provider(/.*)?"))
128

139
# LegalHold Access Tokens
14-
la (whitelist (path "/notifications")
15-
(path "/assets/v3/**")
16-
(path "/users")
17-
(path "/users/**")
18-
(path "/legalhold/conversations/*"))
10+
la (whitelist (regex "(/v[0-9]+)?/notifications")
11+
(regex "(/v[0-9]+)?/assets/v3/.*")
12+
(regex "(/v[0-9]+)?/users(/.*)?")
13+
(regex "(/v[0-9]+)?/legalhold/conversations/[^/]+"))

0 commit comments

Comments
 (0)