Skip to content

Commit 9d09e28

Browse files
authored
feat: add image inspect rule (#47)
Signed-off-by: Andrey Borysenko <[email protected]>
1 parent 5113634 commit 9d09e28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

haproxy.cfg.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ frontend docker_engine
4242

4343
# docker system _ping
4444
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/_ping$ } METH_GET
45+
# docker inspect image
46+
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/images/.*/json } METH_GET
4547
# container inspect: GET containers/%s/json
4648
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/json } METH_GET
4749
# container inspect: GET containers/%s/logs

0 commit comments

Comments
 (0)