Skip to content

feat(example-doc-vault): configure Supabase Auth, RBAC Field-Level Security and S3 presigned storage聽#39

Description

@crapougnax

Part of parent story #36.

馃幆 Goal

Implement identity verification, role-based Field-Level Security, and cloud object storage for the Document Vault tutorial.

馃搵 Specification

  1. Authentication with @quatrain/auth-supabase:
    • Register SupabaseAuthAdapter into Auth.addProvider(supabaseAdapter, 'supabase', true).
    • Validate JWT tokens and resolve user identities into RbacUserContext.
  2. Granular Field-Level Security (FLS) with @quatrain/auth-rbac:
    • Role definitions: viewer, author, approver, admin-finance.
    • Protect financialAmount field using rbac.sanitizeRead('documents', payload, userContext) (hidden for non-finance users).
  3. S3 Storage with @quatrain/storage-s3:
    • Register S3StorageAdapter with MinIO / Scaleway S3 / AWS S3.
    • Generate secure presigned upload and download URLs for PDF documents.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions