-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1502056: using connections.toml always returns a "Bad owner or permissions" on UserWarning #1978
Comments
hello - thanks for raising this. so we do check for file permissions mode and if the file is readable by Group or Others but i'm not sure if the issue comes from the PythonConnector or not. reproduced the issue by creating the connections.toml, setting it as read-only mode :
(from what i understand about Windows; this looks like as of only me the owner have Read and Synchronize (whatever that is) permissions, nobody has anything else) but when adding some debug logging to
which if i got correctly, the least-significant 4 bits ( I'll keep digging how it would be the best to actually enforce the necessary |
well determining the file permissions on Windows with the same method as on Unix, don't seem to work. We'll need to see how we want to address this. |
A couple of options I see here as this appears to be difficult to implement across operating systems.
|
I'm suppressing these warnings with the following as it makes my console output unreadable: import warnings
warnings.filterwarnings(
action='ignore',
category=UserWarning,
module='snowflake.connector'
) |
Python version
Python 3.11.8
Operating system and processor architecture
Windows-10-10.0.19045-SP0
Installed packages
What did you do?
What did you expect to see?
I expect to see no warning messages.
Can you set logging to DEBUG and collect the logs?
The text was updated successfully, but these errors were encountered: