Skip to content

SNOW-1944208 add unsafe write flag#2184

Merged
sfc-gh-mkubik merged 10 commits intomainfrom
SNOW-1944208-add-unsafe-write-flag
Feb 27, 2025
Merged

SNOW-1944208 add unsafe write flag#2184
sfc-gh-mkubik merged 10 commits intomainfrom
SNOW-1944208-add-unsafe-write-flag

Conversation

@sfc-gh-mkubik
Copy link
Contributor

This PR adds unsafe_file_write flag to connection class. The security patch applied in 3.13.1 has narrowed the permissions of files downloaded with GET to 600. This change seems to be inconvenient for some customers that were relying on the previous behaviour in their workflows so after discussion with the support team we decided to add a flag that restores the previous behaviour of saving files downloaded with GET with 644.

The parameter was added to all cloud interfaces, the default value is False which means the strict permissions will be applied.

The test had to be fixed since due to the compression on PUT the permissions weren't verified on the proper file.

@sfc-gh-mmishchenko
Copy link
Contributor

Wouldn't it be even more convenient (and transparent) to let users decide about exact permissions value to set?

@sfc-gh-mkubik sfc-gh-mkubik merged commit 114750b into main Feb 27, 2025
94 checks passed
@sfc-gh-mkubik sfc-gh-mkubik deleted the SNOW-1944208-add-unsafe-write-flag branch February 27, 2025 11:20
@github-actions github-actions bot locked and limited conversation to collaborators Feb 27, 2025
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.

2 participants