Skip to content

Add safe mode argument to open() function for credential_path #870

@hacktobeer

Description

@hacktobeer

with open(credentials_path, 'w', encoding='utf-8') as token:

Adding a mode argument to the open() call will make sure the credential file is created with safe(r) permissions depending on umask os settings. Without the mode argument the credential file could be created world readable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions