Skip to content

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
@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.

2 participants