docker-socket-proxy
docker-socket-proxy copied to clipboard
I'd need finer-grained restrictions
ciao, thanks for this simple solution. i'd have a use-case though where only access to the endpoints containers/json
and …/{id}/json
(inspection), but not …/create
or …/{id}/stop
etc., would be needed.
it'd be therefore desirable to use environment variables like CONTAINER_LIST
and CONTAINER_INSPECT
to override the CONTAINER
value.
Thanks for your time on opening this issue. :blush:
Usually CONTAINERS=1 POST=0
should be enough for your case, where you allow access to containers/*
, but only allow GET
and HEAD
operations.
Please reopen if I missed something.
well, my examples weren't the best. but there are other endpoints for GET
requests, like export
that are desirable to forbid.
OK, let me reopen. :wink:
TBH most likely I'm not gonna work to fix this, since it doesn't affect the usage I do for this image. However if anybody wants to open a PR, feel free to do so! :blush:
#14 seems like a step in the right direction for that, but a standalone binary that generates the config as entrypoint would be preferable.