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 — Test platform mail through saved Admin SMTP with safe errors by Storypapst · Pull Request #1258 · OpenResilienceInitiative/ORISO-UserService

Conversation

@Storypapst

@Storypapst Storypapst commented Sep 24, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

What happened

The test button could check a different SMTP server from real platform mail. The earlier deployment-only direction was an implementation mistake after the source decision changed. This repair uses the saved Admin Settings server and clearly separates incomplete settings from a service outage.

What we need to do

Review this corrected source with the status and Admin companions. Merge only after named approval, verify the actual Dev configuration and deployed revision, then inspect the received test mail. Current local success is not Dev acceptance.

Original proposal — historical deployment-source direction

The story below is retained as history. Its SMTP-source choice was superseded on 29 September; the current implementation is described above.

The "send test mail" button now uses the deployment-owned platform SMTP server for host, port, secure mode, sender and credentials. The request chooses the recipient; extra legacy server or theme fields cannot change the transport or platform brand. This matches the account and invitation mail source chosen in UserService #1253.

  • Only platform admins may send the test; tenant, user and technical accounts receive 403.
  • STARTTLS is required when implicit TLS is off; certificate identity and 10-second connect/read/write timeouts remain enforced.
  • Missing deployment values stop before transport and name the setting. Unexpected SMTP replies and account addresses are not printed in the response or server log.
  • The branch includes the shared provider from PR #1273. It targets dev; merge Use deployment SMTP for invitations and DPA notices #1273 first so this comparison narrows to the SMTP-test work.

Current architecture decision — implemented in this source

Platform test mail now reads one saved Admin Settings / ConsultingTypeService snapshot using the technical service identity. The same snapshot supplies the connection and sender. The request chooses only the recipient; legacy request fields and deployment SMTP values cannot override the saved server.

Missing saved fields produce a named configuration error before connecting. A settings-service or technical-identity outage produces a safe availability error instead of pretending SMTP is unconfigured. The configured product name is required; no hardcoded product/provider name is restored. Shared encrypted delivery, certificate checks and timeouts are retained.

Admin companion — same diagnostic package

Status PR #1287 builds on this exact source. Admin PR #1085 is being reworked to retain editable saved settings, protect credentials and require an acknowledged save before testing. The page must not imply that a test checks unsaved draft values. Neither companion is claimed deployed.

How to test it quickly

  • Save a test server in Admin Settings and provide a different deployment server → only the saved Admin server receives the test mail; legacy request fields cannot redirect it.
  • Remove a required saved credential → sending stops before connection and reports the missing setting without exposing credentials.
  • Make the settings service unavailable → the test reports that it could not read settings; it does not report a missing password or expose the upstream reply.
  • Invoke the test as a tenant admin or technical account → access is denied. A platform admin in tenant zero may invoke it.
  • Configure an explicit product name and a TLS-capable server → receive the expected branded test mail. Missing name or required TLS fails clearly; there is no default-name or insecure fallback.

Verification and remaining gates

The repaired source is published and independently reviewed. Targeted local tests, package and formatting checks passed. All twelve current-head workflow checks passed on 30 September. Human review remains; merge, deployment and received mail are separate gates. No merge, deployment or received test mail is claimed.

Before rollout, verify that the deployment supplies the configured product name. The current Helm chart already wires that input; the actual Dev value was not read in this source check. Final seven-language/template alignment belongs to the wider email delivery, not this diagnostic repair.

For developers — exact source and local evidence:

Head: 10b899bf24db5e36ee3f966054b49e6c95a6d5d3; tree e1fae322b5eae3ea4215e202b7d2d1b8e77a29b0.
Normal merge: original ce554224eee6dab8ddb630fafb9863913623c8c9 + dev ed142cb46c0fcda8c869e0a3d1c8d7e08333b3dd.
One conflict repaired: GlobalSmtpTestEmailService.java. Earlier commits preserved; no force push.
Actual dev PR diff: 19 files, +657/-246. Immutable independent source review PASS.
Local: 181 unique tests / 13 fresh reports, zero failures/errors/skips; includes five HTTP authorization tests.
Meaningful regressions: settings/error/privacy RED 25 tests/3 failures; configured-name RED 16 tests/9 failures; final selected suite GREEN.
Focused session31879, package84686, Spotless33776: returned exit0; logs and fresh XML independently inspected.
Package: ./mvnw -B -q package -DskipTests -Dskip.unit-tests=true -Dskip.integration-tests=true
Formatting: ./mvnw -B -q spotless:check; diff check passed.
HTTP contract: incomplete saved configuration 400; typed CTS/technical-identity unavailable 502; fixed safe replies.
EMAIL_BRANDING_NAME required; Helm .Values.userService.emailBrandingName binding exists at dev9678bf6.
Shared OrisoSmtpTransport, renderer and both resource trees equal integrated dev. Retained three-tone baseline has no manifest; this does not prove all seven variants.
No new full-suite run, runtime response-header acceptance, deployment, TLS handshake or mailbox receipt claim.

Historical verification of the original deployment-source proposal

Current head ce554224e integrates updated provider PR #1273 and current dev. Two test conflicts were resolved: the invitation test uses the current example-host fixture, and the new deployment-SMTP test-mail checks replace obsolete Admin/ConsultingTypeService SMTP tests. Local Java 21: 5,073 tests passed with no failures/errors/skips; 28 focused provider/invitation/test-mail tests, Spotless and diff check passed. All 11 named current-head GitHub checks passed. Human review, merge, Dev deployment and received test mail remain open. The earlier head built a Maven package. PR #1273 is a merge dependency. Keycloak one-time-code mail remains a separate platform source follow-up.

Review follow-up

The older request to distinguish an unavailable ConsultingTypeService from incomplete SMTP is relevant again under the approved Admin source. It is now addressed by the strict raw snapshot and a typed, fixed-safe availability error. Local regression tests cover the actual settings-to-controller path and verify that neither upstream payloads nor raw exceptions leak. Human review remains open.

Historical developer details for the original proposal:

For developers — merge details (skip if you only need the outcome):

Base: dev
Head: ce554224e
Issue: OpenResilienceInitiative/ORISO-UserService#1280
Dependency: OpenResilienceInitiative/ORISO-UserService#1273
Local full suite: 5,073 tests, 0 failures/errors/skips; focused provider/invitation/test-mail suite: 28 tests.

Closes #1280
Refs OpenResilienceInitiative/ORISO-Frontend#828

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@Storypapst @claude
SMTP test mail: always use the stored platform server, platform admin…
792d402
…s only

The test mail now takes host, port, security and sender from the stored
platform SMTP settings (same resolution as the invite dispatcher); the
request only names the recipient. The on/off switches are not required,
so operators can still test before enabling mails.

The connection requires STARTTLS when SSL is off, checks the server
identity and has connect/read/write timeouts.

The endpoint is restricted to platform admins (agency-admin + tenant-admin
on tenant 0); tenant admins, user admins and technical accounts get 403.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Storypapst
Storypapst requested review from Shirloin and shazia-k September 24, 2026 16:17
@coderabbitai

coderabbitai Bot commented Sep 24, 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 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 93 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: 30c43229-9a01-4fe3-ac4b-a24238a316dd

📥 Commits

Reviewing files that changed from the base of the PR and between ed142cb and 10b899b.

📒 Files selected for processing (19)
  • src/main/java/de/caritas/cob/userservice/api/adapters/web/controller/GlobalSmtpTestEmailController.java
  • src/main/java/de/caritas/cob/userservice/api/adapters/web/dto/GlobalSmtpTestEmailDTO.java
  • src/main/java/de/caritas/cob/userservice/api/config/auth/SecurityConfig.java
  • src/main/java/de/caritas/cob/userservice/api/service/consultingtype/ApplicationSettingsService.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/OrisoEmailBrand.java
  • src/main/java/de/caritas/cob/userservice/api/service/email/PlatformSmtpSettingsProvider.java
  • src/main/java/de/caritas/cob/userservice/api/service/notification/GlobalSmtpTestEmailService.java
  • src/main/resources/application.properties
  • src/test/java/de/caritas/cob/userservice/api/adapters/web/controller/GlobalSmtpTestEmailControllerAuthorizationIT.java
  • src/test/java/de/caritas/cob/userservice/api/adapters/web/controller/GlobalSmtpTestEmailControllerTest.java
  • src/test/java/de/caritas/cob/userservice/api/adapters/web/dto/GlobalSmtpTestEmailDTOTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/auth/MagicLinkLoginServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/auth/PasswordResetServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/consultingtype/ApplicationSettingsServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/OrisoEmailBrandTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/PlatformSmtpSettingsFixture.java
  • src/test/java/de/caritas/cob/userservice/api/service/email/PlatformSmtpSettingsProviderTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/GlobalSmtpTestEmailServiceTest.java
  • src/test/java/de/caritas/cob/userservice/api/service/notification/SupervisorAddedEmailNotificationServiceTest.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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T16:20:15.699867Z 792d402 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Storypapst
Storypapst requested a review from Hassan9215 September 24, 2026 16:20
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Sep 24, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 792d40221a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread ...ain/java/de/caritas/cob/userservice/api/service/notification/GlobalSmtpTestEmailService.java Resolved

Uh oh!

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

@Storypapst Storypapst mentioned this pull request Sep 25, 2026
Platform mail server is configured in two places (Admin and deployment) #1253
Closed
4 tasks
@Storypapst
Route platform invitation mail through deployment SMTP
e9075ef
@Storypapst Storypapst mentioned this pull request Sep 25, 2026
Make platform SMTP test use Admin Settings #1280
Closed
8 tasks
@Storypapst
Align platform SMTP test with deployment configuration
3dfc068
@Storypapst Storypapst changed the title SMTP test mail: always use the stored platform server and restrict to platform admins SMTP test mail: use deployment server and restrict to platform admins Sep 25, 2026
This was referenced Sep 25, 2026
EPIC: transactional e-mails — one design system across every sending path OpenResilienceInitiative/ORISO-Frontend#828
Open
Expose safe saved Admin SMTP status and availability #1287
Merged
@Storypapst
Merge current dev and platform SMTP provider into test mail
ce55422
@Storypapst Storypapst mentioned this pull request Sep 28, 2026
Show Admin-managed platform SMTP safely in Admin #1284
Closed
7 tasks
@Storypapst Storypapst changed the title SMTP test mail: use deployment server and restrict to platform admins [Rework required] Test mail through Admin-managed platform SMTP Sep 29, 2026
@Storypapst @claude
Rework SMTP diagnostic to the saved Admin settings snapshot
10b899b
Merge current dev without rewriting the original SMTP test history. Use a strict uncached technical-identity Admin snapshot, preserve best-effort callers and shared TLS transport, and return safe downstream availability errors separately from incomplete saved settings.

Require the canonical configured platform name and retain recipient-only requests and platform-admin authorization.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst Storypapst changed the title [Rework required] Test mail through Admin-managed platform SMTP Test platform mail through saved Admin SMTP with safe errors Sep 30, 2026
@Storypapst Storypapst mentioned this pull request Sep 30, 2026
Configure saved Admin SMTP and test after saving OpenResilienceInitiative/ORISO-Admin#1085
Merged
5 tasks
shazia-k
shazia-k approved these changes Sep 30, 2026
View reviewed changes
@shazia-k
shazia-k merged commit 97ccb7b into dev Sep 30, 2026
13 checks passed

Uh oh!

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

@shazia-k
shazia-k deleted the fix/smtp-test-stored-endpoint branch September 30, 2026 11:12
This was referenced Sep 30, 2026
Guard copied e-mail templates and conditional fragments against drift #1304
Merged
Mail templates in UserService drift from the e-mail kit, and nothing checks it #1256
Closed
Use Admin-managed SMTP for password reset and sign-in links #1274
Closed
DpaForwardEmailService and GlobalSmtpTestEmailService onto the e-mail design system #946
Closed
@Storypapst Storypapst added this to ORISO Roadmap Oct 1, 2026
@Hassan9215 Hassan9215 mentioned this pull request Oct 1, 2026
Release UserService v2.0.10 #1335
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@shazia-k shazia-k shazia-k approved these changes
@Shirloin Shirloin Awaiting requested review from Shirloin
@Hassan9215 Hassan9215 Awaiting requested review from Hassan9215

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.