Skip to content

Conversation

@AndrewAsseily
Copy link
Contributor

@AndrewAsseily AndrewAsseily commented Jan 23, 2026

Issue #, if available: N/A

Description of changes: Use specific permissions. Changes apply to: CLI history database, telemetry session database, Autoprompt history file.

Description of tests: Permission tests use the @skip_if_windows decorator since Unix permission bits don't apply to Windows. Windows relies on ACL inheritance from parent directories instead. The CI pipeline skips these tests on Windows builds as intended.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


def test_create_database_file_with_secure_permissions(self):
cache_dir = self.files.full_path('cache')
os.makedirs(cache_dir, mode=0o700)
Copy link
Member

Choose a reason for hiding this comment

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

Why are we making the directory in the test code? Isn't the code under test responsible for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to let the code create the directory in next revision

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