Skip to content

fix: Remove CREATE_DATASET_GROUPS from .env#774

Merged
minottic merged 1 commit intomainfrom
omkar-ethz-patch-1
Apr 1, 2026
Merged

fix: Remove CREATE_DATASET_GROUPS from .env#774
minottic merged 1 commit intomainfrom
omkar-ethz-patch-1

Conversation

@omkar-ethz
Copy link
Copy Markdown
Member

@omkar-ethz omkar-ethz commented Apr 1, 2026

Description

When CREATE_DATASET_GROUPS is explicitly set, only those groups are allowed to create / update (i.e. PATCH) datasets. Even an authenticated user who belongs to dataset's ownerGroup will be denied if she doesn't belong to CREATE_DATASET_GROUPS (or ADMIN_GROUPS or CREATE_DATASET_PRIVILEGED..)

If CREATE_DATASET_GROUPS is not set, it defaults to #all (code) - that means any authenticated user is allowed to call PATCH endpoint, and the authorization is later decided in the controller by instance authorization check.

Fixes

  • As #all is a better default setting, remove CREATE_DATASET_GROUPS from the .env

Changes

  • changes made

Changes checklist

Modified Service?

New Service?

@omkar-ethz omkar-ethz requested a review from a team as a code owner April 1, 2026 13:40
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

⚠️ SDK Generation Failed

The SDK test failed. This is non-blocking, but please check the logs before merging.

Copy link
Copy Markdown
Member

@minottic minottic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@omkar-ethz
Copy link
Copy Markdown
Member Author

thanks!

thanks! i don't have the permission to merge, so please do it if happy with the change.

@minottic minottic merged commit ab07f60 into main Apr 1, 2026
14 checks passed
@minottic minottic deleted the omkar-ethz-patch-1 branch April 1, 2026 14:01
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

🎉 This PR is included in version 3.9.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@fpotier
Copy link
Copy Markdown
Member

fpotier commented Apr 1, 2026

thanks!

is the sdk failure a false positive? I can't think of any reason it would fail.
also glancing at the logs, why is the backup feature needed?

@minottic
Copy link
Copy Markdown
Member

minottic commented Apr 1, 2026

is the sdk failure a false positive? I can't think of any reason it would fail.

https://github.com/SciCatProject/scicatlive/actions/runs/23851617117/job/69533066377#step:3:51603

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants