Replace SendGrid with Gmail OAuth for release announcements#4268
Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom Feb 12, 2026
Merged
Replace SendGrid with Gmail OAuth for release announcements#4268k8s-ci-robot merged 1 commit intokubernetes:masterfrom
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
Conversation
Remove SendGrid dependency and use Gmail API with embedded OAuth credentials from the k8s-release GCP project. No setup required — a browser opens for authorization on each run. Use --no-browser for headless environments. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Member
Author
|
/hold for testing and approval. PTAL @kubernetes/release-engineering |
Member
Author
|
/retest |
Member
Author
|
/unhold It works: https://groups.google.com/g/kubernetes-announce-test/c/ewnLd_BMY0s 🥳 I published the app in the Google Cloud console for k8s-release, so no further action should be required from our side if no automation disables the API: https://console.cloud.google.com/auth/audience?project=k8s-release |
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, saschagrunert, xmudrii The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind feature
/kind cleanup
What this PR does / why we need it:
Replaces the SendGrid email integration with Gmail API using Google OAuth
for sending release announcements via
krel announce send. SendGrid hasbecome unreliable (emails not delivered, accounts deactivated after
inactivity). The Gmail OAuth flow requires no setup — a browser opens for
authorization on each run using embedded OAuth credentials from the
k8s-release GCP project.
Which issue(s) this PR fixes:
Fixes #3360
Special notes for your reviewer:
Google's documentation
for "Desktop app" type OAuth clients. They only identify the application.
User security is provided by the interactive consent flow.
k8s-release
Google Cloud project.
--no-browserflag supports headless environments (prints URL, userpastes redirect URL back).
EmailSenderinterface is introduced so SMTP support can be addedlater.
Does this PR introduce a user-facing change?