turbot/supabase

GitHub
steampipe plugin install supabasesteampipe plugin install supabase

Supabase + Steampipe

Supabase is an open-source alternative to Firebase, provides a suite of tools and services that help developers build applications with backend functionalities.

Steampipe is an open source CLI to instantly query cloud APIs using SQL.

List projects in your Supabase organization:

select
name,
region,
created_at,
organization_id
from
supabase_project;
+-----------+------------+---------------------------+----------------------+
| name | region | created_at | organization_id |
+-----------+------------+---------------------------+----------------------+
| Steampunk | us-east-1 | 2023-02-15T20:19:50+05:30 | zuluktedwinzftfztsub |
| Steampipe | ap-south-1 | 2023-02-13T21:29:46+05:30 | zuluktedwinzftfztsub |
+-----------+------------+---------------------------+----------------------+

Documentation

Quick start

Install

Download and install the latest Supabase plugin:

steampipe plugin install supabase

Credentials

ItemDescription
CredentialsAll API requests require a Supabase Access Token to be included in the Authorization header.
PermissionsAPI tokens carry the same privileges as your user account, and if the user permissions change, the API token permissions also change.
RadiusEach connection represents a single Supabase Installation.
Resolution1. Credentials explicitly set in a steampipe config file (~/.steampipe/config/supabase.spc)
2. Credentials specified in environment variables, e.g., SUPABASE_ACCESS_TOKEN.

Configuration

Installing the latest supabase plugin will create a config file (~/.steampipe/config/supabase.spc) with a single connection named supabase:

connection "supabase" {
plugin = "supabase"
# The Supabase personal token.
# All API requests require a Supabase Personal token to be included in the Authorization header.
# To generate or manage your API token, visit your account page: https://app.supabase.com/account/tokens
# This can also be set via the `SUPABASE_ACCESS_TOKEN` environment variable.
# access_token = "sbp_123a45b6c78d901e2345f6steampipe45i432101"
}

Alternatively, you can also use the standard Supabase environment variables to obtain credentials only if other argument (access_token) is not specified in the connection:

export SUPABASE_ACCESS_TOKEN=sbp_123a45b6c78d901e2345f6steampipe45i432101

Get involved