Skip to content

fix(git-commit-signing): fix SSH key permissions #152

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

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

phorcys420
Copy link
Member

@phorcys420 phorcys420 commented Feb 9, 2024

Closes #149.
in Linux it's fine to modify a file's permissions that only has read permissions if you're the owner, but you still can't write to them, so if the home folder of the user is persisted, then it'll cause issues on every startup, this PR makes the files writable by the owner.

~/.ssh/git-commit-signing/coder goes from 400 to 600
~/.ssh/git-commit-signing/coder.pub goes from 400 to 644

these are the default values when using ssh-keygen, I don't know why I didn't use those permissions when writing the script.

@phorcys420
Copy link
Member Author

cc: @matifali

@matifali
Copy link
Member

matifali commented Feb 9, 2024

Closes #149

@matifali matifali merged commit a5c4d00 into coder:main Feb 9, 2024
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.

Git commit signing Permission denied
2 participants