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

fix: allow group and other access to Unix socket #136

Merged
merged 4 commits into from
Sep 21, 2022
Merged

fix: allow group and other access to Unix socket #136

merged 4 commits into from
Sep 21, 2022

Conversation

enocom
Copy link
Member

@enocom enocom commented Sep 16, 2022

@enocom enocom requested a review from a team September 16, 2022 21:52
Copy link
Contributor

@hessjcg hessjcg left a comment

Choose a reason for hiding this comment

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

Consider updating the printed error message when setting the file perms fails.

// Best effort. If this call fails, group and other won't have write
// access.
err := os.Chmod(address, 0777)
fmt.Println(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe put a more descriptive warning message here so that the ops engineer has more context when this throws an error.

fmt.Printf("unable to set permissions on unix socket for %v: %v", address, err)

Copy link
Member Author

Choose a reason for hiding this comment

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

We probably should add this error line back into the Cloud SQL Proxy too. I'll send that as a separate PR.

@enocom enocom merged commit 5649176 into main Sep 21, 2022
@enocom enocom deleted the file-perms branch September 21, 2022 15:33
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