Skip to content

Stop emailing on blocked license requests - #134

Merged
tamalsaha merged 1 commit into
masterfrom
no-email-on-blocked-license
Sep 2, 2026
Merged

tamalsaha merged 1 commit into
masterfrom
no-email-on-blocked-license

Conversation

@tamalsaha

Copy link
Copy Markdown
Member

Summary

  • When a license request matches a blocked domain, blocked email, or blocked cluster, no longer send the [LICENSE_BLOCKED] notification email
  • The blocked attempt is still recorded via recordLicenseEvent(..., EventTypeLicenseBlocked) and the request is still rejected with the "contact support" error
  • Removed the now-unused NewBlockedLicenseMailer/mail_blocked_license.go

Test plan

  • go build -mod=vendor ./...
  • go test -mod=vendor -race ./pkg/server/...
  • Submit /issue-license with a blocked domain/email/cluster and confirm no email is sent, the request is rejected, and a license_blocked event is still recorded

Requests from blocked domains, emails, or clusters no longer send the
[LICENSE_BLOCKED] notification email; the attempt is still recorded
as a license_blocked event and the request is still rejected. Removes
the now-unused NewBlockedLicenseMailer.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha
tamalsaha merged commit d7325dd into master Sep 2, 2026
4 checks passed
@tamalsaha
tamalsaha deleted the no-email-on-blocked-license branch September 2, 2026 19:50
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.

1 participant