Git Product home page Git Product logo

docker-socket-protector's Introduction

docker-socket-protector's People

Contributors

arrrgi avatar dependabot[bot] avatar knrdl avatar plague-doctor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-socket-protector's Issues

Feature request: Support Traefik Hub requests to /networks API path

I've been testing the beta of Traefik Hub with traefik-docker-protector and observed from the logs:

 % docker logs -f hub-agent
{"level":"info","version":"v1.0.1","module":"github.com/traefik/hub-agent-traefik","commit":"0ddfa03","built":"2022-11-23_03:32:31PM","go_version":"go1.19.3","os":"linux","arch":"amd64","time":1678957310}
{"level":"info","addr":"http://hub-agent","time":1678957311,"message":"Using Agent reachable address"}
{"level":"info","addr":"0.0.0.0:80","time":1678957311,"message":"Starting auth server"}
{"level":"error","error":"get Traefik networks: Error response from daemon: denied request to: /v1.24/networks","time":1678957311}

This would probably be a quick fix in https://github.com/knrdl/traefik-docker-protector/blob/68bd9dc412097044e1ccea88632dcce0bed2c92c/src/main.go#L17 by removing the additional regex lookup for the filter param. It would appear to be safe enough to make this change as the API is filtered to just GET requests.

Should I submit a PR?

Portainer profile don´t work

The current profiles for portainer don’t work for me.

2023/04/18 18:20:42 Profile rule is invalid: GET (/v\d+\.\d+)?/containers/[0-9a-fA-F]+/(json|top|logs|stats).*$

Feature Request: Support additional API URI's via file or ENV configuration

Hey @knrdl

I stumbled on this project as I was looking for way to better secure my Docker socket and noticed that you support proxying Traefik access to the Docker socket via a small set of the Docker Engine API endpoints. I wonder if you would consider opening this up to conditionally allow other API URI's via config file or environment vars for the container.

This could then allow other applications like Watchtowerr or Portainer to be conditionally granted access to the API endpoints they need, while leaving all other disabled by setting a boolean flag. You could also refer to https://github.com/fluencelabs/docker-socket-proxy/blob/master/haproxy.cfg which has a more exhaustive version of URI filters.

I see this is how the Tecnativa Docker socket proxy also operates but both of these solutions are built on an older version of HAProxy.

I'd love to contribute but sadly know zero Golang to open a PR up for this request sorry.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.