Skip to content

Conversation

@tontonrally
Copy link
Contributor

What kind of change does this PR introduce?

feature

What is the current behavior?

apikeys are not listed in datasource
apikey are not supported, we cannot create/delete these type of resources

What is the new behavior?

apikeys are listed in the supabase_apikeys datasource
apikey resource is supported, we can create secret apikey like

resource "supabase_apikey" "new" {
  project_ref = "mayuaycdtijbctgqbycg"
  name        = "test"
}

Additional context

I needed that feature on my own project and I decided to contribute.
Not sure about the update of keys as it is not supported in the UI but available on the supabase go sdk.

@tontonrally tontonrally requested a review from a team as a code owner November 24, 2025 11:15
@tontonrally tontonrally force-pushed the main branch 2 times, most recently from 244a3aa to 6357dae Compare November 24, 2025 13:00
@savme savme self-requested a review November 25, 2025 10:21
Copy link
Collaborator

@savme savme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution, @tontonrally - this looks great!
I just have a couple of minor comments/questions

Copy link
Collaborator

@savme savme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition to the provider 👍
Thanks for contributing this, @tontonrally!

@savme savme enabled auto-merge (squash) December 4, 2025 18:13
* (apikeys_data_source.go): added support for apiKeys

* (apikey_resource.go): added support for apikey resource (create, update, delete & import)

* (apikey_resource_test.go): added tests for apikey resource

* generate docs
chore: generic NullableToString. Handles enum as well
@savme savme merged commit 7af4cac into supabase:main Dec 4, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants