Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git commit signing Permission denied
2 participants