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

Consistently apply Unix socket settings #277

Merged
merged 1 commit into from
Sep 5, 2023
Merged

Conversation

tomhjp
Copy link
Contributor

@tomhjp tomhjp commented Sep 4, 2023

Previously, we only supported setting the group for the server-side socket. This change makes it possible to set it on the client side as well. Also fixes a bug where the gRPC broker on the server side would previously not consume the directory/group environment variables.

I found this bug while dropping capabilities for the container runner in the github.com/hashicorp/go-secure-stdlib/plugincontainer package, and saw that it was inadvertently relying on the DAC_OVERRIDE capability for the plugin to be able to write to client-side sockets it didn't explicitly have permission to.

Previously, we only supported setting the group for the server-side
socket. This change makes it possible to set it on the client side as
well. Also fixes a bug where the gRPC broker on the server side would
previously not consume the directory/group environment variables.
Copy link
Contributor

@swenson swenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; great catch!

@tomhjp
Copy link
Contributor Author

tomhjp commented Sep 5, 2023

Thanks!

@tomhjp tomhjp merged commit b8dba49 into main Sep 5, 2023
1 check passed
@tomhjp tomhjp deleted the unix-socket-client-config branch September 5, 2023 18:43
@tomhjp tomhjp mentioned this pull request Sep 5, 2023
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.

None yet

2 participants