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 — fix: serve explicit tenant branding assets for email by Storypapst · Pull Request #239 · OpenResilienceInitiative/ORISO-TenantService

Conversation

@Storypapst

@Storypapst Storypapst commented Sep 7, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

Refs #240 and OpenResilienceInitiative/ORISO-UserService#1006. TenantService now owns SMTP delivery for existing email-address-changed and supervisor-added/removed notices. The tenant password remains inside the service; a constrained internal endpoint requires a validated technical JWT with exact configured subject/client pins and role, reads current tenant enablement and SMTP, and sends one plain/HTML message over verified TLS. Empty pins deny access, disabled tenant transport sends nothing, and ambiguous failures are not retried or redirected to global SMTP.

Commit 3cd6bda passes the complete local Maven verification: 549 unit and 143 integration tests, zero failures/errors/skips. The initial image CI34109769568 exposed an unsupported Jackson2 bean injection; the existing stored-settings parser now handles this path, with full Spring-context reproduction and malformed/unknown-settings regressions. New image CI is running. Paired UserService26cf90a8 is required. No actual contact receipt or new runtime deployment is claimed; the existing welcome sender remains outside these three purposes.

The existing CI workflow is now manually dispatchable for a tested SHA image on mail-v2; no release or protected branch tags are created by that candidate path.

Mail images must resolve for the tenant explicitly selected by the sender, regardless of the recipient's cookies. Add /service/tenant/public/branding/{tenantId}/{asset}, reusing the existing image validation/response handling. Missing or unknown assets do not fall back to another tenant.

Source 5d80fb2851089517cf66d374b853f1b6b99003db includes the final formatting correction; the behavioral candidate was eb616b. This extends merged PR233's generic contextual endpoint and preserves earlier inheritance/hardening from PR214/220.

Validation: targeted route/asset tests, formatting and candidate build passed. PreDev tenant1 logo returned200 PNG18410 bytes. Anonymous and unrelated tenant40-cookie requests produced identical hashes; absent tenant40 and unknown tenant999999 logos returned404. Actual SMTP/Admin reset/Keycloak mail image URLs use this explicit first-party endpoint. Published endpoint metadata is attributed to the final source with the earlier runtime boundary recorded.

  • Open /service/tenant/public/branding/1/logo anonymously and with another tenant cookie; expect identical configured-fixture PNG bytes.
  • Request an absent logo/unsupported asset; expect controlled404/validation behavior and no other tenant's logo.

Published evidence: tenantservice · userservice

Refs OpenResilienceInitiative/ORISO-UserService#914
Refs #213

Draft emails-v2 → pre-dev. Prepared with coding-agent assistance for developer review; no merge or release claim.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Storypapst
fix(email): serve tenant-specific branding images without cookies
eb616bf
Refs OpenResilienceInitiative/ORISO-Frontend#862. Keep uploaded image bytes on the platform and identify the tenant in mail asset URLs. Preserve existing context-based endpoint and content cache validation.
@Storypapst Storypapst self-assigned this Sep 7, 2026
@Storypapst
Storypapst requested review from Hassan9215 and Shirloin September 7, 2026 01:50
@coderabbitai

coderabbitai Bot commented Sep 7, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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
style: apply required formatting to mail asset endpoint tests
5d80fb2
@Storypapst

Storypapst commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Verification evidence

Result Environment Commit Source
PASS Pre-Dev 5d80fb2 Codex

after | public logo isolation and404s | HTTP/readback | pre-dev | runtime eb616bf; PR5d80fb2 formatting only | PASS | no login or secret data

Download tenant-asset-evidence.json

All evidence for this run

All reactions

Sorry, something went wrong.

Uh oh!

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

This was referenced Sep 7, 2026
fix: deliver tenant-branded emails and restore shared account recovery OpenResilienceInitiative/ORISO-UserService#1124
Merged
fix: apply platform branding to DPA invitation emails OpenResilienceInitiative/ORISO-ConsultingTypeService#142
Closed
Deliver constrained tenant system emails without exposing SMTP credentials #240
Closed
Send-time access to the per-tenant SMTP credential after the write-only API OpenResilienceInitiative/ORISO-UserService#1006
Closed
Storypapst added 2 commits September 7, 2026 12:07
@Storypapst
fix: deliver tenant system emails inside the secret owner
d62c687
Refs #240 and OpenResilienceInitiative/ORISO-UserService#1006. Require pinned technical identity, tenant-owned enabled SMTP, bounded messages and verified TLS. Keep credentials inside TenantService and never retry uncertain delivery. Isolate the API contract to prevent a generated duplicate handler. Validated with 59 focused tests, API bundling and 23 CI contract tests.
@Storypapst
fix: use tenant settings parser for system email delivery
3cd6bda
@shazia-k shazia-k mentioned this pull request Sep 8, 2026
feat(system-email): deliver tenant notifications without exposing SMTP credentials #242
Merged
5 tasks
@Storypapst

Storypapst commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator Author

Delivered on branch email-v2.1, head 80e4abfe, based on f133d11a (dev). 582 tests pass.

Most of this PR is already on dev — the internal system-email delivery endpoint arrived there by another route. What was genuinely missing:

  • GET /tenant/public/branding/{tenantId}/{asset} — the tenant-pinned sibling of the existing context-based route. A logo in an e-mail is fetched by the recipient's mail client, which has no cookie and no session, so the existing route cannot answer it. Without this, ADR-026's first-party logo rule has nothing to point at.
  • SystemEmailDeliveryService caught only MessagingException. A RuntimeException out of the transport would have escaped as a 500 carrying the SMTP server reply — which quotes recipient addresses. Every failure now leaves as a bare SMTP_DELIVERY_UNCONFIRMED.
  • ci-main.yml becomes manually dispatchable so a candidate image can be built for a specific SHA.

This branch is the first to integrate: ORISO-UserService's delivery client depends on the endpoint, and the branding route is what makes tenant-branded mail possible at all.

No pull request: the branch is pushed for the integrating developer to open one. Full cross-repository handoff in OpenResilienceInitiative/ORISO-Frontend#828.

Receipt evidence is still outstanding — the Pre-Dev server is pinned to another workstream's test images until roughly 16 September 20:00, so no mail has been proven to arrive yet. Code verified, receipt not.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Storypapst @claude
Merge origin/pre-dev into emails-v2
42994f9
pre-dev already contains the tenant system email delivery (broader purpose
set, relay purposes, technical service identity) and the tenant-pinned public
branding route (with platform branding inheritance). All conflicting files
were resolved in favour of the pre-dev implementation, which is a superset of
this branch. The only change from this branch that remains is the
workflow_dispatch trigger on the CI - Main workflow.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Bm6p2kfMTXKncEwXFCemQe
@Storypapst
Storypapst changed the base branch from pre-dev to dev October 20, 2026 00:57
@Storypapst Storypapst mentioned this pull request Nov 21, 2026
v2.0.18 merge queue checklist OpenResilienceInitiative/ORISO-Frontend#2433
Open
@Hassan9215

Hassan9215 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded. The tenant branding endpoint is already merged into dev via #269; this PR now only contains an unrelated workflow_dispatch addition. Please raise that CI change separately if manual execution is still needed.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Hassan9215 Hassan9215 closed this Nov 23, 2026
@Hassan9215
Hassan9215 deleted the emails-v2 branch November 23, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Hassan9215 Hassan9215 Awaiting requested review from Hassan9215
@Shirloin Shirloin Awaiting requested review from Shirloin

Uh oh!

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

Assignees

@Storypapst Storypapst

Labels

None yet

Projects

None yet

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 @Hassan9215
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.