Repository navigation
Add read-only backup permissions - #2186
Merged
g-despot merged 2 commits intoOct 8, 2026
Merged
Conversation
Support the collection-scoped read_backups action introduced in Weaviate 1.39, with construction and role round-trip tests. Refs weaviate#2183
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
|
To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge. |
read_backups ships in Weaviate 1.39.10 and 1.40.0, not 1.39.0, so the integration check moves into the test_create_role table with min_version=40 and skips on the 1.39.0 server CI runs. The unit tests shrink to the two cases the issue needs, and the docstring goes to match the other Permissions helpers.
g-despot
self-requested a review
October 8, 2026 09:02
g-despot
approved these changes
Oct 8, 2026
Collaborator
|
Thank you for the contribution! 😄 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2183.
Weaviate 1.39 adds the collection-scoped
read_backupsaction, but the Python client cannot currently construct it and skips it when reading role permissions.This adds
Actions.Backups.READand the keyword-onlyreadoption toPermissions.backup(). A read-only role can list backups and inspect backup/restore status without granting create, restore, or cancel. Existingmanage=Truebehavior and defaults are preserved.Validation on Python 3.12.14:
AI assistance was used to implement, test, and review this change.