From b8b4c4d7366c55586431248571daac2948614ffa Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Wed, 12 Oct 2022 16:55:06 -0400 Subject: [PATCH] 18368: Add BannerURL config option refs #18368 Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- lib/config/config.default.yml | 4 ++++ lib/config/export.go | 1 + sdk/go/arvados/config.go | 1 + 3 files changed, 6 insertions(+) diff --git a/lib/config/config.default.yml b/lib/config/config.default.yml index 816d0f99e2..9b5547248e 100644 --- a/lib/config/config.default.yml +++ b/lib/config/config.default.yml @@ -1716,6 +1716,10 @@ Clusters: # This feature is disabled when set to zero. IdleTimeout: 0s + # URL to a file that is a fragment of text or HTML which should + # be rendered in Workbench as a banner. + BannerURL: "" + # Workbench welcome screen, this is HTML text that will be # incorporated directly onto the page. WelcomePageHTML: | diff --git a/lib/config/export.go b/lib/config/export.go index fb17a45c84..e7cf094eb0 100644 --- a/lib/config/export.go +++ b/lib/config/export.go @@ -291,6 +291,7 @@ var whitelist = map[string]bool{ "Workbench.UserProfileFormFields.*.*.*": true, "Workbench.UserProfileFormMessage": true, "Workbench.WelcomePageHTML": true, + "Workbench.BannerURL": true, } func redactUnsafe(m map[string]interface{}, mPrefix, lookupPrefix string) error { diff --git a/sdk/go/arvados/config.go b/sdk/go/arvados/config.go index a1fc2e89f4..3c1ef4826f 100644 --- a/sdk/go/arvados/config.go +++ b/sdk/go/arvados/config.go @@ -291,6 +291,7 @@ type Cluster struct { SSHHelpPageHTML string SSHHelpHostSuffix string IdleTimeout Duration + BannerURL string } } -- 2.30.2