SNOW-1641112: Connector throws a user warning about connections.toml CHMOD, even when it will not use that file for connection details #2036
Labels
enhancement
The issue is a request for improvement or a new feature
status-triage_done
Initial triage done, will be further handled by the driver team
Python version
Python 3.9.18 (main, Sep 11 2023, 14:09:26) [MSC v.1916 64 bit (AMD64)]
Operating system and processor architecture
Windows-10-10.0.19045-SP0
Installed packages
What did you do?
I create a connection:
connection_name=
parameter value,connections.toml
having a[default]
connection either.A user warning is thrown
lib\site-packages\snowflake\connector\config_manager.py:351: UserWarning: Bad owner or permissions on ~\.snowflake\connections.toml
My system does have a
connections.toml
file (used by the Snowflake VSCode extension)but no default connection, and this connection is not requested in
connection_name=
.What did you expect to see?
If no TOML connection_name is provided, and connection details are provided in-line instead of via a TOML (default) connection, then the connector should not complain about the CHMOD of this file.
Can you set logging to DEBUG and collect the logs?
The text was updated successfully, but these errors were encountered: