Skip to content

Add optional permissions to step-config writing - #315

Open
teonbrooks wants to merge 1 commit into
facebookresearch:mainfrom
teonbrooks:feat/step-config-permissions
Open

Add optional permissions to step-config writing#315
teonbrooks wants to merge 1 commit into
facebookresearch:mainfrom
teonbrooks:feat/step-config-permissions

Conversation

@teonbrooks

Copy link
Copy Markdown
Contributor

YAML files are currently written with a different permission set than the other files. This seeks to unify it.

Thread an optional permissions argument through write_configs and ConfigDump.check_and_write to chmod the uid/full-uid/config yamls after writing (Path.write_text is otherwise capped by the umask). Backend passes 0o777 so the config yamls match the permissions applied to the cache data files.

Adds unit tests.

Thread an optional `permissions` argument through `write_configs` and
`ConfigDump.check_and_write` to chmod the uid/full-uid/config yamls after
writing (`Path.write_text` is otherwise capped by the umask). Backend passes
0o777 so the config yamls match the permissions applied to the cache data files.

Adds unit tests.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant