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
file_storage: list/get/download/visibility endpoints have no owner check (any user role sees every file) #544
modules/file_storage/file_storage/endpoints/api.pylist_files, get_file, download_file and update_file (→ visibility.set_public) are gated only by permission (file_storage.download / upload) plus the tenant filter. The platform user role carries UPLOAD and DOWNLOAD (module.pyregister_permissions), and on a single-tenant install every row is in DEFAULT_TENANT_ID, so any user-role account can list and download every stored file and toggle any file public — including other users' uploads and branding assets.
Fix direction: decide the intended model. Likely: non-admin callers see and change only rows they created (created_by == principal), and file_storage.manage (or admin) sees all. Apply the scope in the service query so list/count/get agree, and add tests with two ordinary users.
Activity
fix: security and settings bug batch (#517, #532, #533, #543, #544, #545