Skip to content

Commit

Permalink
Check config file permissions on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pjob committed Mar 8, 2024
1 parent c8d3a70 commit bd9cbab
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/snowflake/cli/api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
)
from snowflake.cli.api.secure_path import SecurePath
from snowflake.cli.api.secure_utils import file_permissions_are_strict
from snowflake.connector.compat import IS_WINDOWS
from snowflake.connector.config_manager import CONFIG_MANAGER
from snowflake.connector.constants import CONFIG_FILE, CONNECTIONS_FILE
from snowflake.connector.errors import MissingConfigOptionError
Expand Down Expand Up @@ -229,8 +228,6 @@ def _dump_config(conf_file_cache: Dict):


def _check_default_config_files_permissions() -> None:
if IS_WINDOWS:
return
if CONNECTIONS_FILE.exists() and not file_permissions_are_strict(CONNECTIONS_FILE):
raise ConfigFileTooWidePermissionsError(CONNECTIONS_FILE)
if CONFIG_FILE.exists() and not file_permissions_are_strict(CONFIG_FILE):
Expand Down

0 comments on commit bd9cbab

Please sign in to comment.