- Per organization, at runtime (Enterprise). An organization’s admin sets its own product name, logo, colours and support contact in Settings → Branding, optionally turns on white label, and can give its people their own sign-in address. Nothing is rebuilt and nothing is restarted: the change shows on the next page load for everyone in that organization, in the dashboard, in the mail the organization’s members receive, and in the NHI Security console.
- Per deployment, at build time. An operator renames the whole deployment with environment variables and dashboard build arguments. Every organization on it sees that identity unless it has its own.
Per-organization branding
Needs thecustom_branding plan feature, which the Enterprise plan includes. A
partner who resells the product to its own customers gets it as an
entitlement override on each customer organization; there is no separate
partner plan. Owners and admins (organization:manage) change it; every
member sees the result.
Colours are checked against WCAG AA
A colour is refused, with the ratio in the message, when:- neither a white label nor the light theme’s text colour reaches 4.5:1 on it as a button (the fill is the same in both themes, so this holds in both);
- the primary is under 4.5:1 on the light theme’s page and surface, where it is the link colour;
- the accent is under 3:1 there, where it is a focus ring.
contrast on GET /api/v1/settings/brand).
Where it shows
Account mail that belongs to no organization (address verification, password
reset) keeps the deployment’s brand.
Mail links and the logo point at the organization’s verified custom domain.
Until it has one, they point at the deployment’s own address, so a
white-labelled organization’s mail is free of the deployment’s name only once
its domain is verified.
White label
Off, an organization’s console and mail show its own name and add a small “Powered by” line naming the deployment’s product. On, nothing a member can read names the deployment’s product: the support-access card says “Platform support”, the Help menu offers the organization’s support contact instead of the deployment’s documentation, and the NHI Security console drops the deployment’s documentation link and support address. Tests render the dashboard shell, an invitation email and the NHI Security console under a foreign white-label brand and fail ifTRUSTIVAN, TrustOwl or trustowl
appears.
What white label does not rename is listed under
What cannot be rebranded: identifiers that are
stored, signed or typed, such as database roles, cookie names and Go packages,
keep their spelling. So do the names of artefacts a member copies from a setup
dialog, such as the trustivan-collector IAM role and service account and the
trustivan-runtime Helm chart, because they name published files.
If the plan lapses
The brand stops applying and the deployment’s brand shows again. Nothing is deleted, and nobody is locked out: the custom domain stops mapping to the brand, and sign-in still works on the deployment’s own address. Removing a logo and releasing a domain never need the plan.Custom sign-in domain
An organization can give its people their own address, such assecurity.example.com, that shows its brand on the sign-in page.
- Claim it. In Settings → Branding → Custom sign-in domain, enter the hostname. The deployment’s own domain and its subdomains are refused.
- Prove it. Publish the TXT record the page shows:
_domain-verification.<hostname>with the valuedomain-verification=<token>. A job checks every unverified domain every five minutes; Check now checks at once. Only one organization can hold a hostname verified; a claim alone blocks nobody. - Point it. A CNAME (or A/AAAA records) for the hostname to the deployment’s edge. The certificate is obtained when the first visitor arrives (below).
WEBAUTHN_RP_ID.
Password sign-in completes on the custom domain.
Serving custom domains at the edge
Custom domains need an edge that can obtain a certificate for a hostname it has never seen, and only for hostnames an organization has proven. With Caddy that is on-demand TLS with anask endpoint. The API serves one:
GET /internal/tls/ask?domain=<hostname> answers 200 only for a verified
custom domain whose organization still has custom_branding, and 404 for
anything else, so the edge never requests a certificate for a name nobody
proved. It is outside /api/v1 and should be reachable only from the edge
(on the internal network, as below).
api and dashboard are the Compose service names; use your own. Keep your
deployment’s named sites above the catch-all. Do not publish
/internal/tls/ask through the edge.
Per-deployment branding
What can be rebranded
The backend
Set these on every API and worker process and restart. Nothing is compiled in.
All three addresses must be absolute
http:// or https:// URLs. Anything
else stops the process at startup with the variable named, because these are
printed into messages your customers follow and a typo there is found by a
customer. A trailing slash is removed.
BRAND_NAME reaches, among others:
- outbound mail subjects, bodies and the From display name;
- the issuer an authenticator app files a TOTP account under;
- the
User-Agenton webhook and notification deliveries; - the messages
kubectlprints when the admission webhook warns or refuses; - SCIM resource and authentication-scheme descriptions;
- the notes and disclaimers in compliance reports;
- validation and credential error messages that name the product.
Acme Secure becomes acme-secure. A name with no letters or digits falls
back to trustivan.
Mail needs one more setting to look like yours: SMTP_FROM is the envelope
sender, and receivers reject mail from a domain you do not control. See
Send mail through your SMTP relay.
The dashboard
The dashboard’s branding variables are allNEXT_PUBLIC_, which Next.js
inlines into the build output. Setting them on a running container does
nothing. They are build arguments, so a rebranded dashboard is its own image.
API_PROXY_URL is not branding, but it is
baked in the same way and every deployed dashboard image needs it. See
Environment variables.
Every value is validated, and an invalid one is dropped rather than
applied. A malformed accent leaves your customers looking at the default
palette, not at an error page. That also means a mistake is silent, so check
the result:
- Accents are HSL triples, not hex. Three numbers separated by spaces, the
last two with percent signs.
#3b82f6is dropped. - Logos are fetched by the browser.
data:andjavascript:URLs are dropped. Host the image somewhere your users’ browsers can reach. - An empty or whitespace-only name leaves
TRUSTIVAN.
What cannot be rebranded
Licence attribution. The third-party notices shipped with the product and the attribution line in the dashboard are fixed text that no branding value reaches. They are an obligation of the licences TRUSTIVAN is built on, and the obligation holds whatever logo is in the corner. Identifiers an operator or an integration types. These keep their spelling under any brand, because each one is stored, signed, matched or scripted against:- environment variable names;
- binary and image names;
- the database roles
trustowl_appandtrustowl_job; - Prometheus metric names, which begin
trustowl_; - cookie names such as
trustivan_session; - HTTP header names, including the webhook signature headers your customers’ receivers verify.
WEBSITE_URL, DOCS_URL
and their NEXT_PUBLIC_ counterparts at your own.
NHI Security’s own default. The NHI Security console keeps the
deployment’s brand in its own database and reads none of the variables on
this page. A standalone NHI Security deployment changes it from the operator
console: see Change the brand.
Inside TRUSTIVAN, an organization’s own brand reaches that console through the
session (above); the deployment default is the one its migrations set.
Check the result
For an organization’s brand:- Save a name and a colour in Settings → Branding. The page repaints at once, and the tab title shows the name.
- Invite a test address. The mail’s From name, logo, button colour and footer are the organization’s.
- Open NHI Security from the product switcher. Its rail shows the name and logo.
- Once the domain is verified,
curl -s -o /dev/null -w '%{http_code}' 'http://api:8080/internal/tls/ask?domain=<hostname>'from the edge host prints200, and the sign-in page on that hostname shows the brand.
- Load the dashboard. The wordmark and the tab title show your name, your logo sits beside it, and accent-coloured elements use your colour.
- Send yourself an invitation or a password reset. The subject and the From display name show your name.
- Enrol a second factor on a test account. The authenticator app files it under your name.
- Export an audit log. The filename begins with your slug.
Related
- Environment variables: the backend variables in the full list.
- Send mail through your SMTP relay: the sender address.
- Production Compose: supplying your own dashboard image to the stack.