Skip to content

Store credentials file with restricted 600 perms - #368

Merged
RealCLanger merged 1 commit into
pytr-org:masterfrom
KevSlashNull:creds-rw-user-only
Jul 26, 2026
Merged

Store credentials file with restricted 600 perms#368
RealCLanger merged 1 commit into
pytr-org:masterfrom
KevSlashNull:creds-rw-user-only

Conversation

@KevSlashNull

Copy link
Copy Markdown
Contributor

This adds a chmod that changes the permissions of the credentials file
~/.pytr/credentials to only allow reading and writing by the user and not the
group or other users.

SSH does something similar where it requires that private keys must be set to
600 instead of the default 644 mode.

@RealCLanger RealCLanger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Makes sense but the change still has an error. See checks. Please update and fix.

This adds a `chmod` that changes the permissions of the credentials file
`~/.pytr/credentials` to only allow reading and writing by the user and not the
group or other users.

SSH does something similar where it requires that private keys must be set to
600 instead of the default 644 mode.
@KevSlashNull

Copy link
Copy Markdown
Contributor Author

ruff, oops. ruff checks pass now, thanks @RealCLanger.

@RealCLanger RealCLanger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good now. Thanks for the contribution.

@RealCLanger
RealCLanger merged commit 9d7b32a into pytr-org:master Jul 26, 2026
5 checks passed
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