Skip to content

feat: exposing new api keys to functions#4946

Draft
kallebysantos wants to merge 3 commits intosupabase:developfrom
kallebysantos:feat-update-functions-exposing-new-secrets
Draft

feat: exposing new api keys to functions#4946
kallebysantos wants to merge 3 commits intosupabase:developfrom
kallebysantos:feat-update-functions-exposing-new-secrets

Conversation

@kallebysantos
Copy link
Member

@kallebysantos kallebysantos commented Mar 10, 2026

What kind of change does this PR introduce?

Feature

What is the current behavior?

New api keys (sb_xxx) are not available inside edge-functions environment

What is the new behavior?

This PR exposes the new api keys by creating two new envs:

  • SUPABASE_PUBLISHABLE_KEYS={"default":"sb_publishable_xxx"}
  • SUPABASE_SECRET_KEYS={"default":"sb_secret_xxx"}

Towards AUTH-1040
Prepares CLI to project

@coderabbitai
Copy link

coderabbitai bot commented Mar 10, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 4b1b275e-74d1-4437-802f-0c6770cf417c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kallebysantos kallebysantos force-pushed the feat-update-functions-exposing-new-secrets branch from e069a4f to 6c2707d Compare March 10, 2026 01:39
@kallebysantos kallebysantos force-pushed the feat-update-functions-exposing-new-secrets branch from 6c2707d to 465206c Compare March 11, 2026 11:06
@kallebysantos kallebysantos marked this pull request as ready for review March 11, 2026 11:10
@kallebysantos kallebysantos requested a review from a team as a code owner March 11, 2026 11:10
@coveralls
Copy link

Pull Request Test Coverage Report for Build 23016628491

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 8 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.04%) to 61.695%

Files with Coverage Reduction New Missed Lines %
internal/debug/postgres.go 3 66.09%
internal/utils/git.go 5 57.14%
Totals Coverage Status
Change from base Build 23012195383: -0.04%
Covered Lines: 7718
Relevant Lines: 12510

💛 - Coveralls

@kallebysantos kallebysantos marked this pull request as draft March 12, 2026 23:50
@avallete
Copy link
Member

@kallebysantos ping me up when this is ready to merge 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants