Skip to content

Custom sendgrid apikeys - #474

Merged
BryceStevenWilley merged 5 commits into
mainfrom
custom_sendgrid_apikeys
Oct 19, 2026
Merged

BryceStevenWilley merged 5 commits into
mainfrom
custom_sendgrid_apikeys

Conversation

@BryceStevenWilley

@BryceStevenWilley BryceStevenWilley commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

4 main changes:

  • switches the dev setup to use supabase as a database instead of just standard postgres, so we can...
  • use supabase's vault to store sendgrid API key secrets per server API key. Handles extracting the actual key automatically when it's going to send the email with sendgrid.
    • adding the custom api keys is a manual process; calling select vault.create_secret(...), and then UPDATE message_settings where server_id ... set sendgrid_api_key .... I don't want to make this an endpoint due to security concerns, and we'll likely be setting up the custom sendgrid keys ourselves, instead of making our partners do it.
  • Keeps the same SENDGRID_API_KEY environment variable and uses it when the calling server doesn't have an API key setup (i.e. default behavior).
  • Allows servers to use multiple from_emails, and can include that in the submission.

@nonprofittechy adding you as reviewer just so you can make sure this feature would work for how LITEFile wants to use it.

Fixes #375.

More closely match the platform we're actually using, and
adds support for some postgres extensions we plan on using
(vault specifically).
@BryceStevenWilley

Copy link
Copy Markdown
Collaborator Author

Confirmed that this works in SuffolkLITLab/LITEfile#349, so going to merge this.

@BryceStevenWilley
BryceStevenWilley merged commit 3e87827 into main Oct 19, 2026
4 checks passed
@BryceStevenWilley
BryceStevenWilley deleted the custom_sendgrid_apikeys branch October 19, 2026 17:48
BryceStevenWilley added a commit to SuffolkLITLab/LITEfile that referenced this pull request Oct 19, 2026
BryceStevenWilley added a commit to SuffolkLITLab/LITEfile that referenced this pull request Oct 19, 2026
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.

Add support for a different sendgrid API key per Server API user

1 participant