GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Route tenant system mail by explicit SMTP mode by Storypapst · Pull Request #1283 · OpenResilienceInitiative/ORISO-UserService

Conversation

@Storypapst

@Storypapst Storypapst commented Sep 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

What happened

Tenant system notices previously read SMTP credentials through a tenant settings path in UserService. That path could cache a tenant password and silently fall back to a different server. This change reads a fresh, redacted tenant setting for each notice. PLATFORM sends through the configured platform server. OWN asks TenantService to send through its constrained internal endpoint. An incomplete OWN setup stops with a named configuration error.

The welcome message is an account message, so it uses the platform server. The old password-reading service is removed. Public links for these notices now require a configured, valid URL; a missing tenant URL does not switch to another URL.

Current architecture decision — 2026-09-29

Keep explicit tenant PLATFORM/OWN routing and strict OWN failure behavior. Change only the PLATFORM route to use Admin Settings as the sole platform transport. The current branch still calls the deployment provider; do not merge that part as-is. The 2026-09-25 deployment-managed platform-source choice is superseded. Fresh installs are provider-neutral, with a one-time bootstrap only if first-admin access proves it necessary. Current CI proves the current branch only; merge, deployment and received-mail acceptance remain separate.

What we need to do

Item State
UserService #1006 Implementation in this draft PR; review open
UserService #1273 Platform SMTP provider prerequisite, review open
UserService #1267 Shared TLS and timeouts prerequisite, review open
TenantService #278 Persisted mode prerequisite, changes requested
Helm #382 Exact service identity pins prerequisite, review open

Merge and deploy the prerequisites first, then rebase this branch to remove the stacked provider/transport commits. The branch currently includes the head of #1273 and a cherry-pick of #1267 so the integration compiles and can be reviewed. Do not merge this PR before those dependencies and the operator-supplied identity pins are ready.

How to test it quickly

  • Set a tenant to PLATFORM. Trigger a supervisor or email-address notice; the configured platform server receives it, and no tenant SMTP password is read.
  • Set a tenant to OWN with complete settings. Trigger the same notice; TenantService sends it through the tenant server using the pinned technical caller.
  • Leave OWN incomplete or disable its SMTP settings. The notice produces a named configuration error and zero platform sends.
  • Remove the public frontend URL in a test installation. Startup names system.notification.frontend.base-url as invalid.
  • Verify a welcome email goes through the platform server and contains a valid app link.

Fixed

  • Explicit send-time mode routing for email-address and supervisor notices.
  • No plaintext tenant SMTP credential lookup or cache in UserService.
  • Strict frontend URL selection in the changed notice path.
  • Platform delivery for welcome email.

Still open

  • Human review, dependency merges, and a rebase to a clean dev diff.
  • New-head CI and deployed Dev proof for both modes, including an incomplete OWN tenant.
  • Stage operator gate and actual identity pin values for each environment.

For developers — local verification and dependency detail:

Branch: fix/1006-explicit-tenant-mail-routing
Base: dev
Head: 7ca921e1c (updated #1273 provider and current dev integrated; one test conflict resolved)
Local Java 21 full suite: 5,073 tests, 0 failures, 0 errors, 0 skipped.
Focused route/client/delivery/supervisor/welcome tests: 56 green.
Spotless and git diff --check clean. All 11 named current-head GitHub checks passed.
No SMTP credentials or recipient/subject values are logged by this route.

Closes #1006 after review, merge, and Dev receipts.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Storypapst added 3 commits September 25, 2026 21:05
@Storypapst
Route platform invitation mail through deployment SMTP
1ae449d
@Storypapst
fix(mail): require TLS and timeouts through shared SMTP transport
eb465a7
@Storypapst
Route tenant system mail by explicit SMTP mode
3943b0e
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 107 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: OpenResilienceInitiative/ORISO-UserService/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: 55b1a0de-4727-49ed-9139-118c3d6d4ec4

📥 Commits

Reviewing files that changed from the base of the PR and between f461b38 and 7ca921e.

📒 Files selected for processing (27)
  • src/main/java/de/caritas/cob/userservice/api/service/accountinvite/mail/InviteMailDispatchService.java
  • src/main/java/de/caritas/cob/userservice/api/service/accountinvite/mail/JakartaInviteMailTransport.java
  • src/main/java/de/caritas/cob/userservice/api/service/auth/MagicLinkLoginService.java
  • src/main/java/de/caritas/cob/userservice/api/service/auth/PasswordResetService.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/OrisoEmailDispatcher.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/OrisoSmtpTransport.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/PlatformSmtpSettingsProvider.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/WelcomeEmailService.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/GlobalSmtpTestEmailService.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/SupervisorAddedEmailNotificationService.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/SystemNotificationEmailSettingsService.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/TenantSystemEmailClient.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/TenantSystemEmailDelivery.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/TenantSystemEmailRouteService.java
  • src/main/resources/application.properties
  • src/test/java/de/caritas/cob/userservice/api/service/accountinvite/DpaSigningMailDesignSystemTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/accountinvite/InviteEmailPreviewServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/accountinvite/mail/InviteMailDispatchServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/OrisoSmtpTransportTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/PlatformSmtpSettingsProviderTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/WelcomeEmailServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/DpaSignedNoticeFooterTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/SupervisorAddedEmailNotificationServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/SystemNotificationEmailSettingsServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/TenantSystemEmailClientTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/TenantSystemEmailDeliveryTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/TenantSystemEmailRouteServiceTest.java

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst
Storypapst requested review from Shirloin and shazia-k September 25, 2026 20:37
This was referenced Sep 25, 2026
Send-time access to the per-tenant SMTP credential after the write-only API #1006
Closed
EPIC: transactional e-mails — one design system across every sending path OpenResilienceInitiative/ORISO-Frontend#828
Open
Storypapst added 2 commits September 25, 2026 22:41
@Storypapst
Select the regular security header bean for tenant mail
c25c8f1
@Storypapst
Honor explicit local mail URLs in test environments
bb8ba7f
This was referenced Sep 26, 2026
Cut over counselling notifications to explicit tenant delivery #1297
Merged
Cut over counselling notifications to explicit tenant mail delivery #1296
Closed
Storypapst added 2 commits September 27, 2026 23:35
@Storypapst
Merge dev into platform SMTP invitation source
cab9652
@Storypapst
Merge current dev provider into tenant mail routing
7ca921e
@Storypapst Storypapst mentioned this pull request Sep 29, 2026
Platform mail server is configured in two places (Admin and deployment) #1253
Closed
4 tasks
@Storypapst
Storypapst marked this pull request as ready for review September 29, 2026 15:59
@shazia-k shazia-k closed this pull request by merging all changes into dev in f7e19c9 Sep 30, 2026
@shazia-k
shazia-k deleted the fix/1006-explicit-tenant-mail-routing branch September 30, 2026 13:32
@Storypapst Storypapst added this to ORISO Roadmap Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shazia-k shazia-k Awaiting requested review from shazia-k
@Shirloin Shirloin Awaiting requested review from Shirloin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

ORISO Roadmap
Status: No status

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Storypapst @shazia-k
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.