Repository navigation
Approval emails for submitters; read-only review queue for the daily digest - #36
Merged
Merged
Conversation
…eview queue Approvals now send a short email through Microsoft Graph from the configured mailbox. Mail is claimed in a transaction, retried up to five times, and the address is read from Auth only when sending. Nothing is sent until the MAIL_* settings exist. /api/automation/review-queue answers only Google ID tokens of one service account (AUTOMATION_SERVICE_ACCOUNT) and is read-only, for the daily review digest.
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.
MAIL_SENDERthrough Microsoft Graph (client credentials). Records inmailOutboxare claimed in a transaction (no double sends across instances), retried up to 5 times, and also flushed at startup. The address is read from Firebase Auth at send time and never stored. Inactive untilMAIL_TENANT_ID,MAIL_CLIENT_ID,MAIL_CLIENT_SECRETandMAIL_SENDERare set.GET /api/automation/review-queueaccepts only a Google ID token (audience<origin>/api/automation) for the single service account inAUTOMATION_SERVICE_ACCOUNT. Read-only; strips owner ids; reports pending/failed mail counts. Inactive until that variable is set.mailer.jsadded to the Cloud Run bundle.Tests: 17 backend, 51 Python.