Skip to content

Commit 6f5f0cc

Browse files
sfc-gh-pjobsfc-gh-pczajkasfc-gh-astus
authored
v3.2.0 RC1 cherrypicks (#1873)
* SNOW-1791894 Remove grants instead of denying permissions on Windows (#1871) * Remove empty defaults from docs (#1872) * Release notes for v3.2.0 RC1 * Bump version to RC1 --------- Co-authored-by: Patryk Czajka <[email protected]> Co-authored-by: Adam Stus <[email protected]>
1 parent fb6944f commit 6f5f0cc

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

RELEASE-NOTES.md

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
Removed incorrect copying of connections from `connections.toml` to `config.toml`.
5252
* Fixes `snow connection generate-jwt` to work with keys with no passphrase.
5353
* The privilege to create a schema or stage is no longer required to run `snow app version create` if the schema and stage already exist.
54+
* Fix Windows permissions error on files created by CLI when owner is a part of custom group with granted
55+
default permissions.
5456

5557
# v3.1.0
5658

src/snowflake/cli/__about__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
from __future__ import annotations
1616

17-
VERSION = "3.2.0rc0"
17+
VERSION = "3.2.0rc1"

src/snowflake/cli/_app/dev/docs/templates/usage.rst.jinja2

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Options
4848
{%- if param.type.name != "choice" %}{{ ' {' }}{% else %} {% endif %}{{ param.make_metavar() }}{% if param.type.name != "choice" %}{{ '}' }}
4949
{%- endif %}
5050
{%- endif %}`
51-
{% if param.help %}{{ " " + param.help | replace("\n", " ") }}{% if param.help[-1] != '.' %}.{% endif %}{% if param.default is not none %} Default: {{ param.default }}.{% endif %}{% else %} TBD{% endif %}
51+
{% if param.help %}{{ " " + param.help | replace("\n", " ") }}{% if param.help[-1] != '.' %}.{% endif %}{% if param.default is not none and param.default != "" %} Default: {{ param.default }}.{% endif %}{% else %} TBD{% endif %}
5252
{% endfor -%}
5353
{% else %}
5454

src/snowflake/cli/api/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _read_config_file():
181181
)
182182
warnings.warn(
183183
f"Unauthorized users ({users}) have access to configuration file {CONFIG_MANAGER.file_path}.\n"
184-
f'Run `icacls "{CONFIG_MANAGER.file_path}" /deny <USER_ID>:F` on those users to restrict permissions.'
184+
f'Run `icacls "{CONFIG_MANAGER.file_path}" /remove:g <USER_ID>` on those users to restrict permissions.'
185185
)
186186

187187
try:

src/snowflake/cli/api/secure_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _windows_restrict_file_permissions(path: Path) -> None:
108108

109109
for user in windows_get_not_whitelisted_users_with_access(path):
110110
log.info("Removing permissions of user %s from file %s", user, path)
111-
subprocess.run(["icacls", str(path), "/DENY", f"{user}:F"])
111+
subprocess.run(["icacls", str(path), "/remove:g", f"{user}"])
112112

113113

114114
def restrict_file_permissions(file_path: Path) -> None:

tests_e2e/__snapshots__/test_installation.ambr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
Usage: snow [OPTIONS] COMMAND [ARGS]...
1616

17-
Snowflake CLI tool for developers [v3.2.0.dev0]
17+
Snowflake CLI tool for developers [v3.2.0rc1]
1818

1919
+- Options --------------------------------------------------------------------+
2020
| --version Shows version of the Snowflake CLI |

0 commit comments

Comments
 (0)