This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # ========================================== | |
| # SUPABASE ASYMMETRIC KEY GENERATOR (CLI) | |
| # ========================================== | |
| # | |
| # Generates an asymmetric signing key for self-hosted Supabase (ES256/RS256), | |
| # exports: | |
| # - JWT_SIGNING_KEYS (private JWK array for GoTrue) | |
| # - JWT_JWKS (public JWKS for PostgREST/Realtime/Storage) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from graphviz import Digraph | |
| def trace(root): | |
| # builds a set of all nodes and edges in a graph | |
| nodes,edges = set(), set() | |
| def build(v): | |
| if v not in nodes: | |
| nodes.add(v) | |
| for child in v._prev: |