Consent CMP — Rollback Runbook
The consent path is selected by the Hugo param cmp in hugo/hugo.toml:
| Value | Behavior |
|---|---|
trustarc (default) | Corporate TrustArc CMP, property sapshared.com. |
inhouse | Self-contained banner hugo/static/js/consent.js. |
off | No consent UI (auto-selected for QA/preview builds). |
Rolling back TrustArc → in-house
- Edit
hugo/hugo.toml [params]: setcmp = 'inhouse'. - Rebuild + redeploy the approuter (full content build; Hugo must finish before
mbt build). - (Hygiene, optional) revert the TrustArc CSP entries in
approuter/xs-app.json(consent.trustarc.com,user-consent-center.trustarc.com). Leaving them is harmless — nothing loads them ininhousemode.
CSP entries TrustArc requires
script-src,img-src,font-src,connect-src:https://consent.trustarc.comconnect-src(also):https://user-consent-center.trustarc.com- Do NOT add
static.trustarc.com— the property never contacts it.
Property values (single-sourced in hugo/hugo.toml)
trustArcDomain = 'sapshared.com'— the shared SAP TrustArc property ID.trustArcNoticeAssetVersion = 'v1.7-484'— pinnednotice.jsversion; refresh periodically by re-capturing from the live legacy site.
Verifying a deployed TrustArc build
npm run test:smokewithSMOKE_BASE_URLset — asserts CSP + notice script.- The TrustArc smoke tests in
test/smoke/security-headers.test.jsreport SKIPPED on aninhouse-mode deploy (TrustArc shim absent — expected) and FAIL on a brokentrustarc-mode deploy (shim present but markers missing). They do not silently pass.
- The TrustArc smoke tests in
- Manual: load the site, confirm the blackbar renders, "Cookie Preferences" (footer) reopens the manager, and the browser console shows no CSP violations.