Skip to content

fix(certificates): attribute the failure alert to the console project - #13708

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/certificate-alert-console-project
Sep 15, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/certificate-alert-console-project

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

Summary

Fixes CLOUD-3QXK: Exception: Missing project in the cloud mails worker, ~70 events over the last ten days.

The certificate-failure alert to the operator mailbox (_APP_EMAIL_CERTIFICATES) is the only mail in CE or cloud enqueued without a project. Cloud's mails worker rejects project-less mail before it reaches the sender, so the alert has been dropped on every failed issuance. Certificate handling itself is unaffected: the rule is still marked failed, attempts are counted and the exception re-thrown. Only the human notification is lost.

The alert is now attributed to the console project. Cloud's mails worker already exempts console from the project-age and abuse checks, so the alert passes straight through. CE behaviour is unchanged since the CE mails worker never reads the project.

Testing

Pint passes. No test added; the CE mails worker ignores the project, so the difference is only observable on cloud.

The alert to the operator mailbox was the only mail enqueued without a project. Cloud's mails worker rejects project-less mail, so the alert was dropped on every failed issuance (CLOUD-3QXK).
@greptile-apps

greptile-apps Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no concrete correctness, security, or repository-rule violations identified.

Summary

This PR attributes certificate-failure notification emails to the platform console project so cloud mail workers no longer reject them as project-less.

  • Fetches the console project when certificate issuance fails.
  • Supplies that project to the existing certificate-alert MailMessage.
  • Leaves certificate failure state tracking and rethrow behavior unchanged under normal operation.

Reviews (1) · Last reviewed commit: "fix(certificates): attribute the failure..."

@github-actions

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → fix/certificate-alert-console-project (after).

Metric Before After Change
🚀 Requests/sec 193.93 189.74 ⚪ -2.2%
⏱️ Latency P50 89.62 ms 90.67 ms ⚪ +1.2%
⏱️ Latency P95 208.61 ms 215.49 ms ⚪ +3.3%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 90.67 215.49 11,799 189.74 +6.88
Account 176.77 326.83 621 10.36 +8.31
TablesDB 86.74 169.69 6,417 105.59 +4.15
Storage 84.47 187.42 3,105 52.95 +7.5
Functions 132.56 266.55 1,656 28.84 +14.32

Top API waits (after)

API request Max wait (ms)
account.name.update 511.68
account.prefs.update 494.43
functions.variables.update 448.74
functions.variables.delete 440.26
functions.delete 439.12

@ChiragAgg5k
ChiragAgg5k merged commit 36bddd6 into main Sep 15, 2026
47 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/certificate-alert-console-project branch September 15, 2026 15:53
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