National Commerce Docs
n8n flows

Supabase RPC: Secret Insert/Read

Reference scenario that inserts and reads back an encrypted secret through Supabase RPCs instead of plaintext columns.

Demonstrates and tests the Supabase-side encrypted-secrets pattern: insert a secret via the insert_secret RPC and read it back via read_secret. It is the reference for how other scenarios should store and retrieve sensitive credentials through Supabase RPCs rather than plaintext columns.

At a glance

  • Status: Inactive
  • Trigger: Manual only, a test and reference scenario.
  • Runs on: Run by hand as a template, not on a schedule.
  • Talks to: Supabase (PostgREST RPC insert_secret and read_secret) via the supabaseApi credential.

How it works

  1. Insert Secret POSTs to .../rpc/insert_secret with a name and a JSON secret payload.
  2. Read Secret POSTs to .../rpc/read_secret with a secret_id to retrieve the stored secret back as text.

Notes

  • Uses n8n's stored Supabase credential rather than an inline token. This is the cleaner template for secret handling that other flows should follow.

On this page