Skip to content

Grant default-shared objects read access, not full ownership - #1343

Merged
tomchop merged 1 commit into
mainfrom
fix/default-acls-reader
Aug 12, 2026
Merged

Grant default-shared objects read access, not full ownership#1343
tomchop merged 1 commit into
mainfrom
fix/default-acls-reader

Conversation

@tomchop

@tomchop tomchop commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • set_acls() granted every group listed in [rbac] default_acls (e.g. "All users") Role.OWNER on every new object -- full read/write/delete rights, not merely visibility. This looks like a copy-paste from the line right above it (the creator's own grant, which should stay Owner), since the config comment describes the setting as "sharing... this can be revoked later on," not as handing delete rights to the whole org by default.
  • Changes the default-group grant to Role.READER. The creator's own grant is untouched.
  • Clarified yeti.conf.sample's comment to say "grant read access" explicitly.

Behavior change, not retroactive: existing objects already created keep whatever ACLs they have; this only changes what new objects get going forward. Deployments relying on the old (accidental) Owner-by-default behavior for the configured default group would need to grant it explicitly now, the same way any other role is granted.

Test plan

  • ruff check/format --check and ty check clean
  • Strengthened test_default_acls to assert on the actual role values (All users -> Reader, creator -> Owner), not just ACL membership
  • Full tests/schemas, tests/apiv2, tests/core_tests suite run clean -- 3 pre-existing failures confirmed present on a clean main baseline too, unrelated to this change

set_acls() granted every group in [rbac] default_acls Role.OWNER on
each new object -- almost certainly copy-pasted from the creator's own
grant just above it, since the config comment describes this setting
as "sharing" and explicitly frames it as revocable, not as handing
every registered user delete rights over every object platform-wide.

Grant Role.READER instead; the creator's own grant is unaffected and
stays Role.OWNER.
@tomchop
tomchop merged commit 15118b8 into main Aug 12, 2026
5 checks passed
@tomchop
tomchop deleted the fix/default-acls-reader branch August 12, 2026 15:51
@tomchop tomchop added bug security-impact Changes that affect security and users should keep an eye on labels Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug security-impact Changes that affect security and users should keep an eye on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant