Skip to content

Search API v2 add permission to delete storage objects#2988

Draft
nacnudus wants to merge 1 commit intomainfrom
search-api-v2-permissions
Draft

Search API v2 add permission to delete storage objects#2988
nacnudus wants to merge 1 commit intomainfrom
search-api-v2-permissions

Conversation

@nacnudus
Copy link
Contributor

A scheduled task failed to upload Search API v2 evaluation results because a bucket object with the same name already existed, and the task lacked permission to delete it before replacing it.

We would probably always want to replace an existing file anyway, so this commit grants the storage.objects.delete permission.

Note that permissions are granted at the project level, whereas granting them at the resource level would better meet the principle of least privilege. We intend to refactor this when we remove the redundant infrastructure of manual evaluations.

A scheduled task failed to upload Search API v2 evaluation results because a bucket object with the same name already existed, and the task lacked permission to delete it before replacing it.

We would probably always want to replace an existing file anyway, so this commit grants the `storage.objects.delete` permission.

Note that permissions are granted at the project level, whereas granting them at the resource level would better meet the principle of least privilege. We intend to refactor this when we remove the redundant infrastructure of manual evaluations.
@nacnudus nacnudus requested a review from a team as a code owner October 15, 2025 19:04
@nacnudus nacnudus marked this pull request as draft October 15, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant