You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Improved warning messages for readable permission issues to include clear instructions on how to skip warnings using the `SF_SKIP_WARNING_FOR_READ_PERMISSIONS_ON_CONFIG_FILE` environment variable.
13
+
10
14
- v3.17.2(August 23,2025)
11
15
- Fixed a bug where platform_detection was retrying failed requests with warnings to non-existent endpoints.
12
16
- Added disabling endpoint-based platform detection by setting `platform_detection_timeout_seconds` to zero.
"""Class that defines settings individual configuration files."""
34
42
@@ -329,6 +337,7 @@ def read_config(
329
337
)
330
338
continue
331
339
340
+
# Check for readable by others or wrong ownership - this should warn
332
341
if (
333
342
notIS_WINDOWS# Skip checking on Windows
334
343
andsliceoptions.check_permissions# Skip checking if this file couldn't hold sensitive information
@@ -342,9 +351,10 @@ def read_config(
342
351
andfilep.stat().st_uid!=os.getuid()
343
352
)
344
353
):
345
-
chmod_message=f'.\n * To change owner, run `chown $USER "{str(filep)}"`.\n * To restrict permissions, run `chmod 0600 "{str(filep)}"`.\n'
354
+
chmod_message=f'.\n * To change owner, run `chown $USER "{str(filep)}"`.\n * To restrict permissions, run `chmod 0600 "{str(filep)}"`.\n * To skip this warning, set environment variable {SKIP_WARNING_ENV_VAR}=true.\n'
346
355
347
-
warn(f"Bad owner or permissions on {str(filep)}{chmod_message}")
+f'.\n * To change owner, run `chown $USER "{str(c_file)}"`.\n * To restrict permissions, run `chmod 0600 "{str(c_file)}"`.\n'
570
+
+f'.\n * To change owner, run `chown $USER "{str(c_file)}"`.\n * To restrict permissions, run `chmod 0600 "{str(c_file)}"`.\n * To skip this warning, set environment variable SF_SKIP_WARNING_FOR_READ_PERMISSIONS_ON_CONFIG_FILE=true.\n'
chmod_message=f'.\n * To change owner, run `chown $USER "{str(c_file)}"`.\n * To restrict permissions, run `chmod 0600 "{str(c_file)}"`.\n'
590
+
chmod_message=f'.\n * To change owner, run `chown $USER "{str(c_file)}"`.\n * To restrict permissions, run `chmod 0600 "{str(c_file)}"`.\n * To skip this warning, set environment variable SF_SKIP_WARNING_FOR_READ_PERMISSIONS_ON_CONFIG_FILE=true.\n'
591
591
assert (
592
592
str(c[0].message)
593
593
==f"Bad owner or permissions on {str(c_file)}"+chmod_message
0 commit comments