oauth2-proxy: Unix socket created with wrong permissions

Expected Behavior

Passing --http-address=unix:///run/oauth2_proxy/oauth2_proxy.sock will create a file with default permissions, so usually 755 with a 027 umask or 700 with umask 077. Generally, the socket permissions should be independent of the process umask. Ideally it should just default to 770 regardless of umask to allow other processes in the same group to write to it, and be customizable via a cli parameter.

Current Behavior

The socket will have permissions depending on the process umask, which should not affect this.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 24 (12 by maintainers)

Most upvoted comments

Still relevant. Dear actions bot, this isn’t going to solve itself.

Still relevant