Skip to content

Commit

Permalink
WTF
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pczajka committed Aug 27, 2024
1 parent 16f7999 commit 3b6e3b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/snowflake/cli/api/secure_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ def windows_get_not_whitelisted_users_with_access(file_path: Path) -> List[str]:
icacls_output_regex = r".*\\(?P<user>.*):(?P<permissions>[(A-Z),]+)"
whitelisted_users = _get_windows_whitelisted_users()

import os

log.warning("OS user: %s", os.getlogin())
log.warning("icacls output: %s", _run_icacls(file_path))

users_with_access = []
for permission in re.finditer(icacls_output_regex, _run_icacls(file_path)):
if (permission.group("user") not in whitelisted_users) and (
Expand Down

0 comments on commit 3b6e3b4

Please sign in to comment.