Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unix domain sockets #622

Merged
merged 10 commits into from
Jan 22, 2015
Merged

Unix domain sockets #622

merged 10 commits into from
Jan 22, 2015

Conversation

ryanuber
Copy link
Member

As yet another follow-up on #587 and #612, this re-introduces the ability to set ownership and permission bits as you please on the UNIX domain sockets.

  • Delete socket if it exists on agent startup, and recreate during bind.
  • Set ownership of socket file including user name/id, group id, and permissions e.g. 0755 via the new unix_sockets config construct. This makes setting any of these optional and keeps the address fields clean and concise.

The function which handles file permissions now takes an interface, and the unix_sockets construct implements it. This will make it very easy to introduce separate, nested config structures in the future if we want to support setting per-interface domain socket permissions.

This functionality is new to Consul, however, it was originally implemented in #587 by @jefferai. This is merely an iteration on the design.

@jefferai @armon @sethvargo any questions/suggestions/concerns more than welcome.

@sethvargo
Copy link
Contributor

Looks good!

@armon
Copy link
Member

armon commented Jan 22, 2015

LGTM!

armon added a commit that referenced this pull request Jan 22, 2015
@armon armon merged commit cf04d6a into master Jan 22, 2015
@armon armon deleted the f-sockets branch January 22, 2015 00:30
duckhan pushed a commit to duckhan/consul that referenced this pull request Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants