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 — Decide: does a Träger without its own mail server send through the platform server? · Issue #1562 · OpenResilienceInitiative/ORISO-Frontend

Decide: does a Träger without its own mail server send through the platform server? #1562

New issue
Copy link
New issue
Copy link
Closed
1 / 11 of 1 issue completed
Closed
Decide: does a Träger without its own mail server send through the platform server?#1562
1 / 11 of 1 issue completed
Copy link
Assignees
shazia-k

Description

@Storypapst
Storypapst
opened on Sep 24, 2026
Issue body actions

What is the question

A Träger can enter its own mail server in the Admin, or leave the fields empty. What "empty" should mean is not decided, and the code contradicts itself:

  • Send-time access to the per-tenant SMTP credential after the write-only API ORISO-UserService#1006 says a Träger without its own server falls back to the platform mail server.
  • Deliver constrained tenant system emails without exposing SMTP credentials ORISO-TenantService#240 says it must never fall back.

The result on dev today: the welcome mail, "supervisor added/removed" and "e-mail address changed" are sent for no Träger at all — not for one that inherits, and not for one with its own server.

A second trap: the Träger mail form pre-fills the platform's values as "inherited". One click on Save stores them as the Träger's own settings, without a password. After that the Träger looks configured but cannot send.

Current delivery status — 30 September 2026

Working status: In progress; planned for v2.0.10.

Developed: The platform/OWN SMTP choice is recorded; mode, routing and Admin proposals exist.

Still open: Current tenant-mode candidates still need integration and legacy-mode review.

Scope: No silent OWN-to-PLATFORM fallback.

Relevant change Verified GitHub state
TenantService #287 Open for review; human review/merge remains.
TenantService #291 Open draft; human review/merge remains.
Admin #1095 Open draft; human review/merge remains.

Next action: Review TenantService #287 / TenantService #291 with Admin #1095, then verify both modes.

Acceptance still needed: On Dev, send one platform-routed and one configured OWN mail; missing OWN setup must show a named error.

The release and lane are planning fields. Existing readiness scores are retained; neither a board move nor a green PR establishes deployment or received mail.

For developers — audit boundary (skip for the progress overview):

Updated: 2026-09-30 11:47 UTC.
Native child of https://github.com/OpenResilienceInitiative/ORISO-Frontend/issues/828; live recursive Epic828 inventory contains58 unique descendants.
PR state/review/check snapshot:2026-09-30T11:29:19UTC. Source notes retain the dated code audit; this pass does not repeat every code or runtime test.
Current source, local verification, CI, human review, merge, deployment and real-mail receipt remain separate gates.
No new account, merge, deployment or acceptance was performed by this description update.

Current platform SMTP source — 2026-09-29

Frank and Hassan agreed that Admin Settings / ConsultingTypeService is the single persistent runtime source for platform SMTP. The 2026-09-25 deployment-managed platform-source sentence below is superseded. The explicit tenant choice still stands: PLATFORM is the default; OWN stores only complete tenant-owned settings and never silently falls back when incomplete. Fresh installation is provider-neutral. Helm may provide only a one-time bootstrap if first-admin access actually requires mail; it is not a second runtime source. Missing public URLs still fail installation/startup, while unavailable SMTP produces a named error for mail-dependent operations.

Decision — 2026-09-25 (tenant mode retained; platform-source clause superseded)

Frank chose an explicit mode per Träger: “Use the platform mail server” is the default; “Own mail server” stores only complete, genuinely tenant-owned settings. The Admin form must never save displayed platform values as a tenant override. Incomplete own-server settings produce a clear error and must not silently switch to platform relay.

The platform SMTP configuration is deployment-managed; Admin displays it read-only and offers a test. A missing public URL fails installation/startup with the setting named. Platform SMTP is required in environments where login, reset or one-time-code mail depends on it. A tenant's own SMTP settings remain optional until “Own mail server” is selected, then validation and send errors must be visible.

This decision supersedes the conflicting no-fallback assumption in ORISO-TenantService#240 for the explicit platform mode only. Keep TenantService's own-server endpoint strict: it must not silently relay through the platform. Align ADR-026 and the UserService/TenantService/Admin contracts before implementation.

Delivery status: The ADR-026 addendum is proposed in Docs PR #136. Admin PR #1076 is open against pre-dev with two reviewers; its head 3daa5ae0 binds explicit mode, requires a legacy choice, avoids platform SMTP value copies, and passed 2,450 local tests, lint and build. New CI and visual proof are pending. TenantService #277 and PR #278 now propose explicit mode persistence, legacy-null preservation, strict own-server validation and a read-only audit guide; local Java 21 tests and package passed. TenantService review fixes are at 911f3a1, with new CI running. The actual legacy-record audit, human reviews, Admin visual proof, UserService mode routing, dev deployment and real receipts remain open.

Reviewer test plan

  • Select platform mode for a Träger without own SMTP → its expected mail arrives through the configured platform server.
  • Select own-server mode and enter complete valid settings → its mail arrives through that server with the agreed sender headers.
  • Select own-server mode with missing credentials → saving or sending reports the missing setting; no platform mail is sent instead.
  • View platform SMTP in Admin → values are read-only and a test uses the same deployment-configured server as login/reset mail.

Options (historical)

  1. Explicit mode per Träger (recommended): "Use the platform mail server" (default) or "Own mail server". Only "own" stores values; the form never saves pre-filled platform values.
  2. Implicit: an empty host means "use the platform server". Simpler, but the pre-fill trap stays.
  3. No fallback: a Träger without its own server gets none of these mails. This is what dev does today by accident.

What has to happen after the decision

  • Record it as an addendum to ADR-026 (tenant branding and sender).
  • Align the text of ORISO-UserService#1006 and ORISO-TenantService#240.
  • Implementation issues follow from it: Send-time access to the per-tenant SMTP credential after the write-only API ORISO-UserService#1006 (send path), Mails of a Träger with its own mail server still leave from the platform address ORISO-UserService#1251 (sender of invites and contract mails), the Admin form (store only real overrides).

Technical detail

  • Admin src/components/Tenants/AppSettings/SmtpSettings/index.tsx:72-87,121-150 pre-fills, :211 saves.
  • UserService SystemNotificationEmailSettingsService.java:162-175 requires a password that TenantService never returns (TenantConverter.java:846-860, write-only since [QDL-01] Restore the share UI in the app profile (counselor + center QR/link) #182), so the tenant path always reports "not configured".
  • TenantService already has a delivery endpoint that keeps the password inside TenantService (SystemEmailDeliveryController), with no global fallback by design; nothing on UserService dev calls it.

Read on origin/dev 2026-09-24: UserService 5696c50b4, TenantService 076faa0, Admin 303190c9.

Readiness 3/5 — goal ✅, code location ✅, verification path ✅ (two-tenant mail test); missing: the decision itself, and acceptance criteria that depend on it.

Part of #828.

Current mode UI and serializer correction — 30 September 2026

The platform/own-server selector and its actual save request are now developed in Admin #1076. The shared serializer correction has been published normally. It no longer puts stored own-server fields back into a platform-mode request. Own-server and unrelated settings updates keep their existing behavior.

Still open: The new port correction is published and detailed below; fresh commit CI, human re-review, compatible TenantService deployment and a real two-mode Dev check remain. Existing tenants without a saved mode need an explicit choice. The contact sender requires Tenant #280 and Agency #320 before acceptance.

For developers — earlier serializer proof, preserved by the current port correction:

Admin1076head071a4ecfd8435c0a2aab32d820c7a6e43f02edf0/tree2d9544566426d9cb32eaadfc35c9633cc5864a3f; normal dev8782 integration; independent source PASS.
Actual authenticated PUT regression4cases: genuineRED1, focusedGREEN54/54. Full final3667/3667/428files; ESLint/format/TypeScript/build/postbuild/diff exit0 on measuredNode22.12.0.
Earlier invalid invocation and first3664/3667 receipt retained; one unchanged fullretry passed. The071a remote workflow CI was green; its port finding is corrected in e518 as detailed below. These older gates are historical, separately from the new-head proof.
Explicit PLATFORM + supplied SMTP projection replaces only that block; OWN, missing/mode-only and unrelated forms preserve existing semantics. No fallback, new ticket, extra editor or live tenant change.
Native Epic828/v2.0.10/Inprogress and previous official readiness retained; Shazia coordinates reviews additively.

Current review follow-up — 30 September 2026

Selecting platform mail now saves even when a retained own-server port is invalid. Own-server mail still rejects invalid ports. The earlier save-payload correction is preserved. The additional password-field test review is also addressed: tests now require its accessible label.

Published and locally verified: The production correction has 37 passing focused tests and full lint, format, TypeScript and build gates. The later test-only correction has 16 passing SMTP tests plus scoped lint/format checks. Both frozen candidates passed independent source review. Production behavior is unchanged by the latest test-only commit.

Still open: CI for the latest test-only commit is running. Human re-review, named merge approval, compatible TenantService deployment and the actual two-mode Dev mail check remain. No live tenant or received-mail acceptance is claimed.

For developers — exact commits and verification boundaries:

Current published head:b8d4eb17a75e2acd2cf09369ba2d042812c031c9; tree:a4bb544a094c513fca204e15871f5fe852e917a0; parent:e5186fc1; base:dev; normal push.
Latest delta:only SmtpSettings.test.tsx; getByLabelText<HTMLInputElement>('tenants.appSettings.smtp.passwordNew'); redundant assertions removed, explicit presence/security assertions retained.
Latest16/16SMTP tests/scopedESLint/Prettier/diff exit0; unchanged production and wire blobs. No new fullsuite/build claim for this selector-only commit.
Immutable source/gate/root attribution PASS; independent handover_code_path review PASS.
Production correction:e5186fc1/treed3211ff6, normal parents071a+dev0a6; genuineRED16/2PLATFORMfail→GREEN37/4files, fullESLint/format/TypeScript+build/postbuild/diffPASS. Its workflow CI is green.
Full3667/428file proof belongs071a. The new b8 workflow CI is separate and running; humanapproval/merge/deployment/receivedmail remain open.
Three incoming dev2FA blobs and prior serializer/wire-test blobs preserved exactly; no Monty investigation.
Proof:heartbeat-20260930-1837/oriso1076-accessible-password-{freeze,gates}.json and admin1076-accessible-password-root-verification.json.
Fixed findings:discussion_r4147713030 (retainedport), discussion_r4148269444 (accessiblelabel).
No second SMTP source/fallback, cooldown policy, account, live setting or agent merge.

Source integration published — saved own-server test and transport confirmation

The existing work from Admin #1095, including #1094, is now normally integrated in this PR. OWN transport warnings, conscious confirmation and the saved-server test are locally verified. The previous PLATFORM serializer and invalid retained OWN-port corrections are preserved.

Fixed in source: Cancel sends no update and retains the draft. Confirm includes the explicit transport acknowledgement in the real serialized save request. The test action uses only the saved OWN configuration and the authenticated recipient; the browser supplies no recipient, password or draft. PLATFORM and an incomplete saved server cannot use this action.

Still open: New-head CI and human re-review, named merge approval, compatible TenantService deployment and received-mail acceptance. Earlier review approval applied to the previous head; it does not approve this integration.

How to test after compatible deployment:

  • Save OWN with 587/STARTTLS or 465/implicit TLS: no extra confirmation. An unusual pair warns and asks for confirmation.
  • Cancel: no update, draft retained. Confirm: successful save and unchanged unrelated tenant fields.
  • Change a draft, then send the test: only the saved server is used. Confirm receipt in the authenticated operator’s verified mailbox.
  • Save PLATFORM with an invalid retained OWN port: no old OWN fields return in the request.

For developers — immutable local evidence and rollout order:

Published head a966a10f89f144abe3bb81ad7b15a30ee2e780e3; tree8a071c39390a3ed8c22531464096905afd986ce3.
Normal parents b8d4eb17 + dcb42ff5; no force-push. Existing1095/1094 history is included, not separate completed deliveries.
Genuine actual-hook/HTTP RED5 -> focused GREEN53/6 files; full unit3685/430 files, no failures/skips.
Full unit/build/source-wide ESLint belongs prepared tree793f4c91. Only two asynchronous story readiness assertions changed afterward; production/unit/API/locale bytes are identical.
Final tree: three actual Chromium Storybook plays, Storybook types, scoped ESLint/Prettier/diff all pass. Earlier selector/type/story failures remain in the evidence.
Independent Root source/gate/hash review PASS; shared serializer and mutation hook byte-identical to b8.
Proof: heartbeat-20260930-1837/admin1061-own-integration/{durable-manifest,root-independent-review}.json.
Companions before rollout: TenantService explicit mode280/278 and290 (transport acknowledgement),291 (saved-server test); UserService1006 for ordinary OWN delivery. No new cooldown policy or SMTP source.
POST /service/tenant/{id}/smtp-test-deliveries has empty body. TenantService selects stored OWN settings and authenticated verified recipient.
Local fixtures only: no Dev SMTP send, account, deployment or received mail is claimed.

Release and delivery state — correction on 1 October 2026

This implementation is merged and belongs to v2.0.10. It is queued in QA internal for Dev/Stage. Missing agent test evidence or separate follow-up work does not move delivered scope back into development. Frank confirmed that the team performed manual testing.

Delivering PRs: OpenResilienceInitiative/ORISO-Admin#1076, OpenResilienceInitiative/ORISO-TenantService#278.

Sub-issues

Collapse Sub-issuesSub-issues

1 of 11 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. github-project-automation
    added this to ORISO Roadmapon Sep 24, 2026
  2. github-project-automation
    moved this to Backlog in ORISO Roadmapon Sep 24, 2026
  3. Storypapst
    added a parent issue on Sep 24, 2026
    • EPIC: transactional e-mails — one design system across every sending path #828
  4. Storypapst commented on Sep 25, 2026

    @Storypapst
    Storypapst
    on Sep 25, 2026
    CollaboratorAuthor
    More actions

    Admin implementation: ORISO-Admin PR #1076 is open against pre-dev with reviewers requested. The form no longer saves platform SMTP values as tenant overrides and blocks incomplete own-server settings. Local Admin suite: 2,449/2,449 tests, ESLint, Prettier and build passed. CI, review, UserService routing and Dev receipts remain open.

  5. Storypapst
    added a sub-issue on Sep 25, 2026
    • Persist explicit platform or own SMTP mode without reclassifying legacy tenants ORISO-TenantService#277
  6. Storypapst
    set
    Platform release
    to
    v2.0.10
    on Sep 30, 2026
  7. Storypapst
    assigned
    shazia-k
    on Sep 30, 2026
  8. Storypapst commented on Oct 1, 2026

    @Storypapst
    Storypapst
    on Oct 1, 2026
    CollaboratorAuthor
    More actions

    Short thesis: Decide: does a Träger without its own mail server send through the platform server? is tracked through its open children.

    Problem: The parent score is the minimum open-child readiness: 10/20. It is not an average or a development percentage.

    Readiness: 10/20. This is the GitHub delivery ladder, not a development percentage.

    Next step toward the next level: Advance the lowest-scoring open child, then recompute this parent score.

    Related source: PR 136, PR 1076, PR 287.

  9. Storypapst
    updated Platform release v2.0.10 on Oct 1, 2026
  10. Storypapst
    moved this from QA internal to QA external in ORISO Roadmapon Nov 4, 2026
  11. HelenaSKloeckner
    moved this from QA external to Done in ORISO Roadmapon Nov 18, 2026
  12. HelenaSKloeckner
    closed this as completedby moving to Done in ORISO Roadmapon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @shazia-k
    shazia-k

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Platform release

v2.0.10

Projects

  • ORISO Roadmap
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

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.