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 — refactor: remove the unused DPA signing mail path from ConsultingTypeService by Storypapst · Pull Request #162 · OpenResilienceInitiative/ORISO-ConsultingTypeService

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

Two services could send the contract (DPA) signing mail: ConsultingTypeService (CTS) and UserService. Since OpenResilienceInitiative/ORISO-UserService#1238 (merged 2026-09-23) only UserService is used; it renders the mail itself (DpaSigningMailRenderer). The old copy in CTS had no caller left, so this PR removes it. Nothing changes for users: the mail that goes out today already comes from UserService.

What is removed

  • DpaSigningEmailController and the two endpoints POST /settingsadmin/dpa-signing-emails and POST /settingsadmin/dpa-signing-emails/preview (paths and request/response schemas in api/applicationsettingsservice.yml; the bearerAuth scheme stays, because dev now also uses it for /settingsadmin/smtp-sync-status and /settingsadmin/smtp-credentials)
  • DpaSigningEmailService, DpaMailTransport, JakartaDpaMailTransport, DpaMailSettings, DpaMailSendReceipt
  • SmtpSendException and its 502 handler in ApiResponseEntityExceptionHandler (only thrown by the mail transport)
  • the dpa.sign.frontend.base-url property (main, local, testing) and DPA_SIGN_FRONTEND_BASE_URL in config.env.example
  • the spring-boot-starter-mail dependency (added in 27502b3 for this feature only; nothing else in CTS sends mail)
  • 5 test classes: DpaSigningEmailControllerTest, DpaSigningEmailRoutingIT, DpaSigningEmailServiceTest, DpaSigningEmailServiceOriginBindingTest, JakartaDpaMailTransportTest, plus the Python contract test for the removed endpoints

Kept, because other code still uses it: SmtpPasswordEncryptionService (used by ApplicationSettingsServiceFacade) and GET /settingsadmin/smtp-credentials (UserService consumes it via services/applicationsettingsservice.yaml).

Size: 23 files, +87 / -1430 lines.

Evidence that nothing calls it

git grep on each repository's freshly fetched default branch, read-only, for dpa-signing-emails|settingsadmin/dpa|sendDpaSigningEmail|previewDpaSigningEmail|DpaSigningEmailControllerApi|DpaSigningEmailRequest (generated .understand-anything graph files excluded):

Repository Ref Hits
ORISO-UserService origin/dev 5696c50b4 0
ORISO-Admin origin/dev 303190c9 0
ORISO-Frontend origin/dev c4164270 0
ORISO-TenantService origin/dev 076faa0 0
ORISO-Helm origin/dev 66d814a 0
ORISO-E2E origin/main f1996c3 (no dev branch) 0

UserService's consumer copy of this contract (services/applicationsettingsservice.yaml) lists only /settings, /settingsadmin and /settingsadmin/smtp-credentials. The DpaMail* hits in ORISO-Admin are its own dpaMailPreview client for the UserService preview, not CTS.

Contract gate

Removing two paths is a breaking change for oasdiff, so the "Reject provider breaking changes" step would fail. scripts/contracts/verify-provider-compatibility.sh now accepts several reviewed allowlists (they are merged into one file for oasdiff), and the new contracts/dpa-signing-mail-removal.md accepts exactly these two lines:

POST /settingsadmin/dpa-signing-emails api path removed without deprecation
POST /settingsadmin/dpa-signing-emails/preview api path removed without deprecation

Checked locally with the pinned tools (redocly 2.40.0, oasdiff v1.17.0) against origin/dev: without the new allowlist the gate fails with exactly those two errors; with it, Verified 4 provider contract(s). Two new Python tests pin the allowlist and the merge behaviour (the merge test fails against the old script).

Tests

JDK 21, mvn verify:

  • Unit tests: 121 run, 0 failures (baseline on origin/dev: 142; the 21 removed are the DPA mail unit tests)
  • Integration tests: 116 run, 0 failures (the Spring context boots without dpa.sign.frontend.base-url)
  • Generated API code compiles; spotless:apply produced no changes
  • python -m pytest -q tests/contracts: 8 passed

Update 2 October 2026 (9d2cbb1): dev was merged in normally (fd477c5, no conflicts). Since this branch was opened, dev secured two SMTP endpoints with bearerAuth, so the merged spec named a scheme it no longer defined. 9d2cbb1 keeps the scheme and adds a contract test that fails on any undefined scheme in this spec. Re-checked locally on JDK 21: 173 unit tests, spotless:check and 9 contract tests pass. Integration tests were not re-run locally; CI runs them.

Follow-up (not in this PR)

ORISO-Helm still sets DPA_SIGN_FRONTEND_BASE_URL for consultingtypeservice (templates/consultingtypeservice/consultingtypeservice-configmap-env.yaml, -deployment.yaml, tests/render_required_public_urls_test.py). It is now unused by CTS and harmless; it can be removed once this is deployed. The UserService entry stays.

Refs OpenResilienceInitiative/ORISO-Frontend#828
Refs OpenResilienceInitiative/ORISO-UserService#946

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@Storypapst @claude
refactor: remove the unused DPA signing mail path from ConsultingType…
79071a1
…Service

Since ORISO-UserService#1238 the contract signing mail is rendered and sent
by UserService. The CTS endpoints /settingsadmin/dpa-signing-emails and
/preview have no caller left in UserService, Admin, Frontend, TenantService,
Helm or E2E, so the controller, service, mail transport, SMTP exception
mapping, spec paths, the dpa.sign.frontend.base-url property and the
spring-boot-starter-mail dependency go away.

The provider compatibility gate now accepts several reviewed allowlists, and
contracts/dpa-signing-mail-removal.md accepts exactly these two removals.

Refs OpenResilienceInitiative/ORISO-Frontend#828
Refs OpenResilienceInitiative/ORISO-UserService#946

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: f784cc2c-e437-4c98-80e5-63432cb1908b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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:18:29.759451Z 79071a1 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 review from Hassan9215, Shirloin and shazia-k September 24, 2026 16:19
@Shirloin Shirloin mentioned this pull request Sep 25, 2026
fix: narrow authority for the service identity to send the DPA signing mail #156
Closed
3 tasks
This was referenced Sep 30, 2026
DpaForwardEmailService and GlobalSmtpTestEmailService onto the e-mail design system OpenResilienceInitiative/ORISO-UserService#946
Closed
EPIC: transactional e-mails — one design system across every sending path OpenResilienceInitiative/ORISO-Frontend#828
Open
@Storypapst Storypapst added this to ORISO Roadmap Oct 1, 2026
@Storypapst Storypapst self-assigned this Oct 1, 2026
Storypapst and others added 2 commits October 2, 2026 00:52
@Storypapst @claude
Merge dev into refactor/remove-dpa-signing-mail
fd477c5
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Storypapst @claude
fix(contract): keep the bearerAuth scheme that dev's SMTP endpoints n…
9d2cbb1
…ow use

Dev added /settingsadmin/smtp-sync-status and secured smtp-credentials with
bearerAuth after this branch dropped the scheme, so the merged spec named an
undefined scheme. A contract test now catches dangling security references.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
shazia-k
shazia-k approved these changes Oct 4, 2026
View reviewed changes
@shazia-k
shazia-k merged commit 2323e94 into dev Oct 4, 2026
10 checks passed

Uh oh!

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

@shazia-k
shazia-k deleted the refactor/remove-dpa-signing-mail branch October 4, 2026 05:30
@Hassan9215 Hassan9215 mentioned this pull request Oct 8, 2026
Release ConsultingTypeService v2.0.11 #174
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shazia-k shazia-k shazia-k approved these changes
@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

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.