On APP_ENV=onprem the registry's mails (new findings, published documents)
no longer carry our company signature, address, register entry, contact
address or legal pages. They say the installation sent them, name the
customer's contact (MAIL_CONTACT) and link the customer's imprint and
privacy notice (LEGAL_IMPRINT_URL, LEGAL_PRIVACY_URL), each only when set.
mail.View gets a Site; the zero value is the cloud, so cloud mails stay as
they were (checked byte for byte against the previous templates) apart from
the spelling "Breakpilot", also in the default sender name. The legal line
moved from every text template into signature.tmpl.
On-prem the registry also refuses to start when MAIL_FROM, PORTAL_URL,
INVITE_REDIRECT_URI or LEGAL_* point at breakpilot.com.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6058a94254)
Only on-prem passes the workspace's status to Keycloak for its first admin;
a cloud demo workspace with an admin wrote demo instead of trial (pinned by
a test).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d8cb363d5c)
On-prem every account comes from the customer's AD through Keycloak's
federation, so an AD admin answered email_taken and invitations asked for a
new password. The Keycloak adapter gets a directory mode (DirectoryUsers,
on with APP_ENV=onprem):
- The first admin and invited members are existing directory users,
attached to the organization with their role. No local user is created,
no execute-actions mail is sent (invite status "added", audit user.added /
keycloak.admin_added).
- An unknown address (or one outside the admitted AD groups) answers 404
not_in_directory. For the workspace's admin it is checked before the
workspace is created, and the adapter looks the user up before creating
the organization, so nothing is left behind.
- Resend answers 409 no_invite_mail; directory members are never pending.
- Member lists read the roles from the user when Keycloak lists a federated
member with its LDAP attributes only (seen with Keycloak 26.8).
- The admin address is normalized once for lookup, store and Keycloak.
Checked against Keycloak 26.8.1 with a Samba AD (the test install in
platform/onprem, realm with UNSYNCED federation and realm-policy.sh).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit b8206c553f)
- Start fails when PRODUCTS or a URL override names no catalog product.
- The on-prem catalog sets supports_trial=false (the portal hides the button).
- Test that seeded cloud provision URLs are never called on-prem, with a
cloud control; the outbox test gets its cloud control too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 3e42b1ceb8)
The registry on a customer's node must never reach a Breakpilot host and
must not run the cloud's commercial machinery.
- APP_ENV=onprem: no ERP (nothing queued, webhook off), no trial (new
workspaces start active, the ladder never escalates by time), and the
trial-offer, trial-terms, catalog/trial request and admin trial routes
answer 404 not_available.
- PRODUCTS, PRODUCT_LAUNCH_URLS, PRODUCT_PROVISION_URLS: one store
decorator applies the product list and URLs to every catalog read
(catalog, activation, provisioning, entitlement checks). On-prem has no
seeded URLs, so provisioning goes only to the local products. Checked at
start ({id} in provision URLs, absolute http(s)).
- On-prem start fails when the values leave something to a cloud or dev
default (auth off, no authz rules, ephemeral licence key, portal, invite,
sender, LLM gateway) or set an ERP or contract documents.
- SMTP_TLS=starttls|tls|none: a plain relay inside the customer's network;
no AUTH without encryption.
- Migration 0032: the Werkpilot text no longer names our LLM host.
Cloud behaviour is unchanged without the new variables (tested).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2f6fa5f3e8)