feat(onprem): mails come from the installation, not from us #144
Closed
sharang
wants to merge 2 commits from
feat/onprem-mail into feat/onprem-directory-users
pull from: feat/onprem-mail
merge into: platform:feat/onprem-directory-users
platform:main
platform:feat/einstieg-plan
platform:feat/update-policy
platform:feat/telemetry-relay
platform:feat/feedback-endpoint
platform:feat/onprem
platform:feat/onprem-directory-users
platform:feat/onprem-mode
platform:feat/avv-autofill
platform:feat/release-avv-1.0.0
platform:fix/erpsetup-dunning-and-small
platform:feat/module-user-count
platform:feat/usage-summary
platform:feat/mahnung-ladder
platform:fix/toms-status-available
platform:feat/contractdocs-agb-tom
platform:feat/company-rules
platform:feat/staff-brand-slug
platform:fix/intake-outlives-purge
platform:fix/catalogue-labels
platform:feat/trial-offer-status
platform:feat/function-holders
platform:feat/assignable-bundles
platform:feat/contract-documents
platform:feat/erp-lb-versions
platform:feat/store-merges-unterlagen
platform:feat/product-hierarchy
platform:feat/preview-grants
platform:ci/platform-image-and-webhook
platform:ci/registry-meghsakha-orca-webhook
No Reviewers
Dismiss Review
Are you sure you want to dismiss this review?
Labels
Clear labels
cra:annex-i
cve
pruefwerk
risk:accepted
severity:critical
severity:high
severity:low
severity:medium
CRA Anhang I, wesentliche Cybersicherheitsanforderungen / CRA Annex I
Bekannte Schwachstelle in einer Abhängigkeit / known vulnerability in a dependency
Befund aus Prüfwerk / Prüfwerk finding
Risiko akzeptiert, nicht behoben / accepted risk, not fixed
Schweregrad kritisch / critical
Schweregrad hoch / high
Schweregrad niedrig / low
Schweregrad mittel / medium
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: platform/tenant-registry#144
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Stacked on #143 (which is on #142): merge those first, then retarget this to
main.What
On
APP_ENV=onpremthe registry's mails (new findings, published documents) come from the customer's installation, through their relay and from their address. Until now they carried our company signature (address, register entry,noreply@/kontakt@breakpilot.com) and our imprint and privacy links.mail.Viewgets aSite. Its zero value is the cloud, so cloud mails are unchanged.MAIL_CONTACT(their IT) if set.LEGAL_IMPRINT_URL/LEGAL_PRIVACY_URL, each only when set. The cloud keeps ours as defaults.signature.tmpl.MAIL_FROM,PORTAL_URL,INVITE_REDIRECT_URIorLEGAL_*point atbreakpilot.com.MAIL_FROM_NAME.Cloud impact
All eight cloud mails (4 kinds × de/en) were rendered with the old and the new templates. They are byte-identical except "BreakPilot" → "Breakpilot" (signature "Ihr Breakpilot-Team", the document text, the default sender name).
Tests
go test -short -race ./...,go vet,gofmtclean.TestRender_onPrem: for both kinds and languages, no company data orbreakpilot.com; the customer's contact (HTML-escaped) and links appear; without them, no legal line, no contact and no empty link.TestRender_cloudLegalLinks: cloud defaults, and the override.TestOnPrem_notificationMailIsTheInstallations: queue → drain → recorder, end to end.breakpilot.comrefusals; on-prem defaults are empty.🤖 Generated with Claude Code
Merged as part of #146 (the same commits on today's main; migration renumbered to 0033).
Pull request closed