Add global branding config field to control cookie banner default

Introduces a BRANDING boolean config (default true) propagated through
the standard config pipeline. Cookie banners now initialize their
show_branding column from this config instead of hardcoding true.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-22 15:41:11 +04:00
parent 680e60b6e9
commit 4313930ae9
6 changed files with 21 additions and 5 deletions

View File

@@ -128,6 +128,7 @@ type (
CustomDomains CustomDomainsConfig `json:"custom-domains"`
SCIMBridge SCIMBridgeConfig `json:"scim-bridge"`
ESign ESignConfig `json:"esign"`
Branding bool `json:"branding"`
}
// TrustCenterConfig contains trust center server configuration.
@@ -223,6 +224,7 @@ func New() *Implm {
ESign: ESignConfig{
TSAURL: "http://timestamp.digicert.com",
},
Branding: true,
EvidenceDescriber: EvidenceDescriberConfig{
Interval: 10,
StaleAfter: 300,
@@ -517,7 +519,7 @@ func (impl *Implm) Run(
mailmanService := mailman.NewService(pgClient, fileManagerService, impl.cfg.Auth.Cookie.Secret, baseURL, impl.cfg.AWS.Bucket, encryptionKey, l)
cookieBannerService := cookiebanner.NewService(pgClient)
cookieBannerService := cookiebanner.NewService(pgClient, impl.cfg.Branding)
proboService, err := probo.NewService(
ctx,