Affected repos: ORISO-TenantService; Admin and UserService consume this contract.
Why
A tenant must explicitly choose the platform mail server or its own server. The old smtp.enabled flag cannot represent that choice, and silently interpreting old settings as platform mail could route messages through the wrong sender. This package implements the stored choice required by Frontend #1562 and the ADR-026 addendum.
Current delivery status — 30 September 2026
Working status: In progress; planned for v2.0.10.
Developed: Explicit PLATFORM/OWN mode is proposed in TenantService #287.
Still open: Human review, legacy-mode migration and both-mode Dev proof remain.
Scope: Never infer OWN from partial credentials or fall back silently.
| Relevant change |
Verified GitHub state |
| TenantService #287 |
Open for review; human review/merge remains. |
Next action: Review TenantService #287 with tenant Admin source and migration semantics.
Acceptance still needed: Both modes retain exact configured source after save, rotation and restart.
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/1562; 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.
What to build
Persist PLATFORM or OWN in the tenant settings API. New tenants default to PLATFORM without copying platform SMTP settings into tenant data. Existing tenants keep an absent mode until audited. Preserve the stored mode on older full-replacement updates. Reject incomplete OWN configuration after retaining a write-only password. The constrained TenantService sender may use tenant SMTP only for explicit OWN, and may never use platform SMTP as an implicit fallback. Provide a read-only legacy-record audit guide that reports no credentials.
Acceptance
- New tenants store
PLATFORM and no tenant-owned SMTP copy.
- A legacy tenant remains unclassified after an unrelated update; classify each legacy record only after an owner-reviewed audit.
- Selecting incomplete
OWN returns a clear error; a valid stored password survives an update that leaves it blank.
- The constrained own-server sender does not decrypt or send for
PLATFORM or an unclassified legacy tenant.
- Admin and UserService read the explicit mode after their dependent PRs; real Dev receipts prove both routes separately.
Current delivery state
PR #278 is open against dev with two requested reviewers. Its current head 7cbb527 also fixes empty default settings; Java 21 local suite passed 771 tests and all seven current-head CI checks are green. The previous changes-requested review still needs re-review. The live legacy audit, merge, Dev deployment and two-mode received-mail proof remain open.
Reviewer test plan
- Create a tenant, then read its settings → mode is
PLATFORM and there is no copied platform SMTP account.
- Save an unrelated setting on an older tenant without a mode → it remains unclassified.
- Select
OWN with a missing password → saving reports an error and no mail switches to platform relay.
- Select
OWN with complete details, then save with a blank password → the own-server setting remains usable and the API never returns the secret.
- Attempt the constrained send for platform and legacy tenants → neither decrypts tenant credentials nor sends.