Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supabase Storage #197

Open
reboottime opened this issue Sep 29, 2024 · 2 comments
Open

Supabase Storage #197

reboottime opened this issue Sep 29, 2024 · 2 comments
Labels

Comments

@reboottime
Copy link
Owner

reboottime commented Sep 29, 2024

References

@reboottime
Copy link
Owner Author

Architecture

image

@reboottime
Copy link
Owner Author

reboottime commented Sep 29, 2024

Set storage policy by user role

Overview of Available Roles

  • Anonymous: Represents anonymous or unauthenticated users. Used for public access or actions that don't require login.
  • Authenticated: Represents users logged into the application. Used for actions requiring a signed-in user.

pgSodium Roles

Encryption Management

  • pgsodium_keyholder: Manages encryption keys for pgSodium, a PostgreSQL encryption extension.
  • pgsodium_keyiduser: Identifies and uses specific encryption keys for pgSodium.
  • pgsodium_keymaker: Creates and manages encryption keys for pgSodium.

Administrative Roles

Elevated Privileges

  • service_role: High-privilege role for server-side operations, bypassing Row Level Security (RLS). Use cautiously for administrative tasks or background jobs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant