Kelola aset gambar, video, dan dokumen Anda dalam wadah terisolasi dengan kontrol akses publik (CDN) atau privat (Signed URL), terlindungi oleh Supabase PostgreSQL Row Level Security.
OpenDrive memanfaatkan kebijakan Row Level Security bawaan Supabase. Setiap operasi query SELECT, INSERT, UPDATE, dan DELETE berkas diverifikasi secara matematis pada level kernel database PostgreSQL berdasarkan token JWT pengguna.
-- Kebijakan RLS Virtual Buckets
CREATE POLICY "Users can only access own buckets"
ON public.buckets
FOR ALL
USING (auth.uid() = user_id)
WITH CHECK (auth.uid() = user_id);
-- Kebijakan Akses Berkas Publik
CREATE POLICY "Public files accessible without auth"
ON public.files
FOR SELECT
USING (
EXISTS (
SELECT 1 FROM public.buckets
WHERE public.buckets.id = public.files.bucket_id
AND public.buckets.is_public = true
)
);| Fitur Utama | OpenDrive Gateway | AWS S3 Standar | Supabase Storage |
|---|---|---|---|
| Biaya Egress (Unduh Data) | Rp0 (Bebas Biaya) | $0.09 / GB | $0.09 / GB (setelah kuota) |
| Kapasitas Gratis Awal | 1 GB (Starter) / 15 GB Drive | 5 GB (12 bulan pertama) | 1 GB |
| Bypass Limit Payload Vercel | Ya (Direct-to-Drive) | Perlu Presigned URL kustom | Ya (TUS Protocol) |
| Isolasi Database RLS | PostgreSQL Native RLS | AWS IAM Policy (Kompleks) | PostgreSQL Native RLS |