File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
content/reference/components Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -1072,6 +1072,47 @@ body agent control
10721072
10731073** See also:** [ ` default:control_agent.nonalphanumfiles ` ] ( /reference/special-variables/control_agent/#defaultcontrol_agentnonalphanumfiles )
10741074
1075+ ### override_default_directory_create_mode
1076+
1077+ ** Description:** Override the default 0700 permissions when ` cf-agent ` creates
1078+ parent directories during file promise repairs.
1079+
1080+ The ` override_default_directory_create_mode ` attribute in body agent control
1081+ enables users to specify custom permissions (e.g., 0755) for automatically
1082+ created directories, avoiding the need for explicit perms promises on each
1083+ parent directory when deeper paths are required.
1084+
1085+ This addresses cases where files need broader access permissions but
1086+ their auto-created parent directories would otherwise default to 0700,
1087+ making the files inaccessible despite having correct permissions.
1088+
1089+ The mode string may be symbolic or numerical, like ` chmod ` .
1090+
1091+ ** Type:** ` string `
1092+
1093+ ** Default value:** ` 0700 `
1094+
1095+ ** Example:**
1096+
1097+ ``` cf3
1098+ body agent control {
1099+ # Override the default directory create mode to 0755 (it defaults to 0700 if
1100+ # not specified)
1101+ override_default_directory_create_mode => "a+rx"; # Can also use octets 0755
1102+ }
1103+ ```
1104+
1105+ ** History:**
1106+
1107+ - Added in 3.28.0
1108+
1109+ ** Notes:**
1110+
1111+ Please note that modifying this value will affect your entire policy and can
1112+ lead to security vulnerabilities.
1113+
1114+ ** See also:** ` filestat() ` , [ ` body perms mode ` ] ( /reference/promise-types/files#mode )
1115+
10751116### refresh_processes
10761117
10771118** Description:** The ` refresh_processes ` slist contains bundles to reload
You can’t perform that action at this time.
0 commit comments