Skip to content

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