Add always challenge pow to policy
This commit is contained in:
@@ -282,6 +282,14 @@ rules:
|
|||||||
- '($is-static-asset)'
|
- '($is-static-asset)'
|
||||||
action: pass
|
action: pass
|
||||||
|
|
||||||
|
- name: always-pow-challenge
|
||||||
|
conditions:
|
||||||
|
- 'path.startsWith("/user/sign_up") || path.startsWith("/user/login")|| path.startsWith("/user/oauth2/")'
|
||||||
|
# Match archive downloads from browsers and not tools
|
||||||
|
- 'path.matches("^/[^/]+/[^/]+/archive/.*\\.(bundle|zip|tar\\.gz)") && ($is-generic-browser)'
|
||||||
|
action: challenge
|
||||||
|
challenges: [ js-pow-sha256 ]
|
||||||
|
|
||||||
- name: allow-git-operations
|
- name: allow-git-operations
|
||||||
conditions:
|
conditions:
|
||||||
- '($is-git-path)'
|
- '($is-git-path)'
|
||||||
|
|||||||
Reference in New Issue
Block a user