You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Security: All users can see all datasets including private ones #79
Currently, the nemar dataset list command shows ALL datasets (including private ones) to ALL users, regardless of authentication or ownership. This is a critical security and privacy vulnerability.
Example of the Issue
$ nemar whoami
Authenticated
Username: cool-vibers
$ nemar dataset list
Datasets (12): # Shows ALL datasets, including private ones owned by others!
ID Name Owner Status
---------------------------------------------------------------
nm000149 My second NEMAR EEG Dataset... arnodelorme active # SHOULD NOT SEE
nm000148 My NEMAR EEG Dataset ds0026... arnodelorme active # SHOULD NOT SEE
nm000147 BIDS_test yahya active # SHOULD NOT SEE
...
Root Cause
Missing Database Column: The datasets table has no visibility column to track public/private state
No Backend Filtering: The /datasets list endpoint returns all datasets without checking:
Dataset visibility
User authentication status
User permissions (owner vs non-owner)
Expected Behavior
For nemar dataset list (no flags)
Unauthenticated users: Show only PUBLIC datasets
Authenticated non-admin users: Show only PUBLIC datasets
Admin users: Show all datasets (for oversight)
For nemar dataset list --mine
Show only the authenticated user's own datasets (both private and public)
Require authentication
Solution
Add visibility column to datasets table (values: 'private' or 'public')
Default all datasets to 'private' for security
Update list endpoint to filter by visibility and user permissions
Update publication workflow to set visibility='public' when making repo public
Activity
neuromechanist commentedon Jan 27, 2026
Addressed in #80