Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0a1e556
chore(deps): bump github.com/stripe/pg-schema-diff from 0.9.2 to 1.0.0
dependabot[bot] Aug 26, 2025
ba8aff0
chore: sync API types from infrastructure (#4077)
kiwicopple Aug 27, 2025
7a28eab
chore(deps): bump github.com/stripe/pg-schema-diff from 0.9.2 to 1.0.…
sweatybridge Aug 27, 2025
d9b9e0e
feat: support custom query timeout for type gen (#4082)
sweatybridge Aug 27, 2025
fb90c58
chore: sync API types from infrastructure (#4087)
kiwicopple Aug 27, 2025
54eb53e
chore(deps): bump the docker-minor group across 1 directory with 5 up…
dependabot[bot] Aug 27, 2025
6a856ef
chore(deps): bump supabase/postgres from 17.4.1.074 to 17.4.1.075 in …
dependabot[bot] Aug 28, 2025
52c8b60
chore(deps): bump supabase/edge-runtime
dependabot[bot] Aug 28, 2025
31cc2d5
chore(deps): bump supabase/edge-runtime from v1.69.2 to v1.69.3 in /p…
nyannyacha Aug 28, 2025
16f43b6
fix(functions): bump supabase/edge-runtime from v1.69.3 to v1.69.4 (#…
dependabot[bot] Aug 28, 2025
e5b7bcc
chore(deps): bump supabase/postgres from 17.4.1.075 to 17.4.1.076 in …
dependabot[bot] Aug 29, 2025
ee5f990
chore(deps): bump the go-minor group across 2 directories with 1 upda…
dependabot[bot] Aug 29, 2025
bdba730
chore(deps): bump the docker-minor group in /pkg/config/templates wit…
dependabot[bot] Aug 29, 2025
cc44609
chore(deps): bump supabase/postgres from 17.4.1.076 to 17.4.1.077 in …
dependabot[bot] Sep 1, 2025
037d0d3
chore: sync API types from infrastructure (#4096)
kiwicopple Sep 1, 2025
a3413f1
chore(deps): bump cycjimmy/semantic-release-action from 4 to 5 (#4100)
dependabot[bot] Sep 1, 2025
43ccb76
chore(deps): bump the docker-minor group in /pkg/config/templates wit…
dependabot[bot] Sep 1, 2025
105c082
chore(deps): bump the go-minor group across 2 directories with 2 upda…
dependabot[bot] Sep 1, 2025
b2cd615
fix: login route for pg17 projects (#4105)
sweatybridge Sep 2, 2025
8c8b623
chore(deps): bump the go-minor group across 2 directories with 3 upda…
dependabot[bot] Sep 3, 2025
23128e8
fix: deprecate gen keys command (#4110)
sweatybridge Sep 3, 2025
b4b19cb
chore(deps): bump pg-meta to v0.91.6 (#4112)
soedirgo Sep 3, 2025
3799f42
fix: no fallback from TLS to unsecure connection (#4113)
sweatybridge Sep 3, 2025
21ca225
chore: sync API types from infrastructure (#4104)
kiwicopple Sep 3, 2025
8d7a3c3
chore(deps): bump the docker-minor group across 1 directory with 3 up…
dependabot[bot] Sep 4, 2025
c49b3ad
fix: auto unban on login password error (#4111)
sweatybridge Sep 4, 2025
d781deb
chore(deps): bump the go-minor group across 2 directories with 4 upda…
dependabot[bot] Sep 4, 2025
5f162f7
chore(deps): bump actions/setup-node from 4 to 5 (#4118)
dependabot[bot] Sep 4, 2025
be5fde2
chore(deps): bump aws-actions/configure-aws-credentials from 4.3.1 to…
dependabot[bot] Sep 4, 2025
c2dede3
fix: support custom timeout when bundling functions (#4120)
sweatybridge Sep 4, 2025
7ef0789
chore(deps): bump supabase/postgres from 17.6.1.000 to 17.6.1.002 in …
dependabot[bot] Sep 5, 2025
bfb5b3d
chore(deps): bump the go-minor group across 2 directories with 4 upda…
dependabot[bot] Sep 8, 2025
fb8b08a
chore(deps): bump the docker-minor group across 1 directory with 4 up…
dependabot[bot] Sep 8, 2025
c605a3c
chore(deps): bump actions/setup-go from 5 to 6 (#4122)
dependabot[bot] Sep 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/api-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v5

- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v5

- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
steps:
- uses: actions/checkout@v5

- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
# Linter requires no cache
Expand All @@ -68,7 +68,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand All @@ -85,7 +85,7 @@ jobs:
steps:
- uses: actions/checkout@v5

- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mirror-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
TAG=${{ inputs.image }}
echo "image=${TAG##*/}" >> $GITHUB_OUTPUT
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4.3.1
uses: aws-actions/configure-aws-credentials@v5.0.0
with:
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
aws-region: us-east-1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
curr: ${{ steps.curr.outputs.tags }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- id: semantic-release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -39,7 +39,7 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand All @@ -66,7 +66,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand All @@ -83,7 +83,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand All @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand All @@ -70,7 +70,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand All @@ -86,7 +86,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
Expand Down
6 changes: 6 additions & 0 deletions api/overlay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ actions:
- target: $.components.schemas.*.properties.items.items.properties.saml.properties.attribute_mapping.properties.keys.additionalProperties.properties.default.oneOf
description: Replaces list union type with interface for easier casting
remove: true
- target: $.components.schemas.*.properties.saml.properties.name_id_format.enum
description: Converts enum with duplicated type to a string
remove: true
- target: $.components.schemas.*.properties.items.items.properties.saml.properties.name_id_format.enum
description: Converts list of enum with duplicated type to a string
remove: true
- target: $.components.schemas.*.properties.connectionString
description: Removes deprecated field that conflicts with naming convention
remove: true
Expand Down
5 changes: 5 additions & 0 deletions cmd/bans.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cmd

import (
"fmt"

"github.com/spf13/afero"
"github.com/spf13/cobra"
"github.com/supabase/cli/internal/bans/get"
Expand All @@ -26,6 +28,9 @@ The subcommands help you view the current bans, and unblock IPs if desired.`,
RunE: func(cmd *cobra.Command, args []string) error {
return update.Run(cmd.Context(), flags.ProjectRef, dbIpsToUnban, afero.NewOsFs())
},
PostRun: func(cmd *cobra.Command, args []string) {
fmt.Println("Successfully removed network bans.")
},
}

bansGetCmd = &cobra.Command{
Expand Down
16 changes: 12 additions & 4 deletions cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmd
import (
"os"
"os/signal"
"time"

env "github.com/Netflix/go-env"
"github.com/go-errors/errors"
Expand All @@ -26,8 +27,9 @@ var (
keyNames keys.CustomName

genKeysCmd = &cobra.Command{
Use: "keys",
Short: "Generate keys for preview branch",
Deprecated: `use "gen signing-key" instead.`,
Use: "keys",
Short: "Generate keys for preview branch",
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
es, err := env.EnvironToEnvSet(override)
if err != nil {
Expand Down Expand Up @@ -56,6 +58,7 @@ var (
},
Value: types.LangTypescript,
}
queryTimeout time.Duration
postgrestV9Compat bool
swiftAccessControl = utils.EnumFlag{
Allowed: []string{
Expand Down Expand Up @@ -88,7 +91,7 @@ var (
return err
}
}
return types.Run(ctx, flags.ProjectRef, flags.DbConfig, lang.Value, schema, postgrestV9Compat, swiftAccessControl.Value, afero.NewOsFs())
return types.Run(ctx, flags.ProjectRef, flags.DbConfig, lang.Value, schema, postgrestV9Compat, swiftAccessControl.Value, queryTimeout, afero.NewOsFs())
},
Example: ` supabase gen types --local
supabase gen types --linked --lang=go
Expand Down Expand Up @@ -126,8 +129,13 @@ func init() {
genTypesCmd.MarkFlagsMutuallyExclusive("local", "linked", "project-id", "db-url")
typeFlags.Var(&lang, "lang", "Output language of the generated types.")
typeFlags.StringSliceVarP(&schema, "schema", "s", []string{}, "Comma separated list of schema to include.")
// Direct connection only flags
typeFlags.Var(&swiftAccessControl, "swift-access-control", "Access control for Swift generated types.")
typeFlags.BoolVar(&postgrestV9Compat, "postgrest-v9-compat", false, "Generate types compatible with PostgREST v9 and below. Only use together with --db-url.")
genTypesCmd.MarkFlagsMutuallyExclusive("linked", "project-id", "swift-access-control")
typeFlags.BoolVar(&postgrestV9Compat, "postgrest-v9-compat", false, "Generate types compatible with PostgREST v9 and below.")
genTypesCmd.MarkFlagsMutuallyExclusive("linked", "project-id", "postgrest-v9-compat")
typeFlags.DurationVar(&queryTimeout, "query-timeout", time.Second*15, "Maximum timeout allowed for the database query.")
genTypesCmd.MarkFlagsMutuallyExclusive("linked", "project-id", "query-timeout")
genCmd.AddCommand(genTypesCmd)
keyFlags := genKeysCmd.Flags()
keyFlags.StringVar(&flags.ProjectRef, "project-ref", "", "Project ref of the Supabase project.")
Expand Down
41 changes: 20 additions & 21 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ require (
github.com/andybalholm/brotli v1.2.0
github.com/cenkalti/backoff/v4 v4.3.0
github.com/charmbracelet/bubbles v0.21.0
github.com/charmbracelet/bubbletea v1.3.6
github.com/charmbracelet/bubbletea v1.3.7
github.com/charmbracelet/glamour v0.10.0
github.com/charmbracelet/lipgloss v1.1.1-0.20250404203927-76690c660834
github.com/containerd/errdefs v1.0.0
github.com/containers/common v0.64.1
github.com/docker/cli v28.3.3+incompatible
github.com/docker/docker v28.3.3+incompatible
github.com/containers/common v0.64.2
github.com/docker/cli v28.4.0+incompatible
github.com/docker/docker v28.4.0+incompatible
github.com/docker/go-connections v0.6.0
github.com/fsnotify/fsnotify v1.9.0
github.com/getsentry/sentry-go v0.35.1
Expand All @@ -36,19 +36,19 @@ require (
github.com/oapi-codegen/nullable v1.1.0
github.com/slack-go/slack v0.17.3
github.com/spf13/afero v1.14.0
github.com/spf13/cobra v1.9.1
github.com/spf13/pflag v1.0.7
github.com/spf13/cobra v1.10.1
github.com/spf13/pflag v1.0.10
github.com/spf13/viper v1.20.1
github.com/stretchr/testify v1.11.0
github.com/stripe/pg-schema-diff v0.9.2
github.com/stretchr/testify v1.11.1
github.com/stripe/pg-schema-diff v1.0.2
github.com/supabase/cli/pkg v1.0.0
github.com/tidwall/jsonc v0.3.2
github.com/withfig/autocomplete-tools/packages/cobra v1.2.0
github.com/zalando/go-keyring v0.2.6
go.opentelemetry.io/otel v1.37.0
golang.org/x/mod v0.27.0
golang.org/x/oauth2 v0.30.0
golang.org/x/term v0.34.0
go.opentelemetry.io/otel v1.38.0
golang.org/x/mod v0.28.0
golang.org/x/oauth2 v0.31.0
golang.org/x/term v0.35.0
google.golang.org/grpc v1.75.0
gopkg.in/yaml.v3 v3.0.1
)
Expand Down Expand Up @@ -97,7 +97,7 @@ require (
github.com/charithe/durationcheck v0.0.10 // indirect
github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc // indirect
github.com/charmbracelet/harmonica v0.2.0 // indirect
github.com/charmbracelet/x/ansi v0.9.3 // indirect
github.com/charmbracelet/x/ansi v0.10.1 // indirect
github.com/charmbracelet/x/cellbuf v0.0.13 // indirect
github.com/charmbracelet/x/exp/slice v0.0.0-20250327172914-2fdc97757edf // indirect
github.com/charmbracelet/x/term v0.2.1 // indirect
Expand Down Expand Up @@ -155,7 +155,6 @@ require (
github.com/gobwas/glob v0.2.3 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/gofrs/flock v0.12.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/golang/protobuf v1.5.4 // indirect
Expand Down Expand Up @@ -327,22 +326,22 @@ require (
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.34.0 // indirect
go.opentelemetry.io/otel/metric v1.37.0 // indirect
go.opentelemetry.io/otel/metric v1.38.0 // indirect
go.opentelemetry.io/otel/sdk v1.37.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
go.opentelemetry.io/otel/trace v1.37.0 // indirect
go.opentelemetry.io/otel/trace v1.38.0 // indirect
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/automaxprocs v1.6.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/crypto v0.40.0 // indirect
golang.org/x/crypto v0.41.0 // indirect
golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac // indirect
golang.org/x/net v0.42.0 // indirect
golang.org/x/net v0.43.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/sys v0.35.0 // indirect
golang.org/x/text v0.27.0 // indirect
golang.org/x/tools v0.35.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/text v0.28.0 // indirect
golang.org/x/tools v0.36.0 // indirect
golang.org/x/tools/go/expect v0.1.1-deprecated // indirect
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
Expand Down
Loading
Loading