Skip to content

Permissions issues with PrivateJsonFile on windows #198

Closed

Description

@soxofaan

Windows does not support fine grained linux style permission chmoding, causing perrmission issues like

File "D:\tmp\env\lib\site-packages\openeo\rest\auth\config.py", line 85, in _write
    assert_private_file(self._path)
  File "D:\tmp\env\lib\site-packages\openeo\rest\auth\config.py", line 30, in assert_private_file
    p=path, a=mode, e=_PRIVATE_PERMS)
PermissionError: File C:\Users\john\AppData\Local\Temp\win-perms-test.json is readable by others: st_mode 100666 (expected permissions: 600).```

Activity

  1. added a commit that references this issue on Mar 29, 2021
  2. soxofaan commented on Mar 29, 2021

    @soxofaan
    MemberAuthor

    did a first quick fix to make OIDC at least usable on Windows:
    now a warning is raised when permissions are not correctly set

  3. soxofaan commented on Mar 29, 2021

    @soxofaan
    MemberAuthor

    next step: investigate oschmod (https://pypi.org/project/oschmod/) to set permissions on windows fully (which does not work with vanilla os.chmod)

  4. added a commit that references this issue on Oct 11, 2021
  5. soxofaan commented on Oct 11, 2021

    @soxofaan
    MemberAuthor

    Also interesting solution: some kind of logout feature to remove these local files: #250

  6. soxofaan commented on Dec 13, 2022

    @soxofaan
    MemberAuthor

    FYI failing tests related to this are blocker for

  7. added 7 commits that reference this issue on Dec 14, 2022
  8. added 8 commits that reference this issue on Jan 4, 2023
  9. soxofaan commented on Jan 4, 2023

    @soxofaan
    MemberAuthor

    PR #351 was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions