Added missing experimental SESSION API

This commit is contained in:
Andre Zoledziowski 2019-01-21 13:54:21 +01:00 committed by Jairo Llopis
parent 8bb3bce15a
commit 3a1d5bb03a
3 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ ENV AUTH=0 \
POST=0 \ POST=0 \
SECRETS=0 \ SECRETS=0 \
SERVICES=0 \ SERVICES=0 \
SESSION=0 \
SWARM=0 \ SWARM=0 \
SYSTEM=0 \ SYSTEM=0 \
TASKS=0 \ TASKS=0 \

View File

@ -135,6 +135,7 @@ does not need.
- `NODES` - `NODES`
- `PLUGINS` - `PLUGINS`
- `SERVICES` - `SERVICES`
- `SESSION`
- `SWARM` - `SWARM`
- `SYSTEM` - `SYSTEM`
- `TASKS` - `TASKS`

View File

@ -59,6 +59,7 @@ frontend dockerfrontend
http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/post } ! { env(POST) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/post } ! { env(POST) -m bool }
http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/secrets } ! { env(SECRETS) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/secrets } ! { env(SECRETS) -m bool }
http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/services } ! { env(SERVICES) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/services } ! { env(SERVICES) -m bool }
http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/session } ! { env(SESSION) -m bool }
http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/swarm } ! { env(SWARM) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/swarm } ! { env(SWARM) -m bool }
http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/system } ! { env(SYSTEM) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/system } ! { env(SYSTEM) -m bool }
http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/tasks } ! { env(TASKS) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/tasks } ! { env(TASKS) -m bool }