18368: Add BannerURL config option
authorPeter Amstutz <peter.amstutz@curii.com>
Wed, 12 Oct 2022 20:55:06 +0000 (16:55 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Fri, 14 Oct 2022 20:29:15 +0000 (16:29 -0400)
refs #18368

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

lib/config/config.default.yml
lib/config/export.go
sdk/go/arvados/config.go

index 816d0f99e2f685285f79de86c3952e6b88a4352f..9b5547248e7c8ab84adc245cdd266deb07f8da2f 100644 (file)
@@ -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: |
index fb17a45c84a82fe4568777065fe23684c49a4603..e7cf094eb02b63f8a613b881696940e2cec505ab 100644 (file)
@@ -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 {
index a1fc2e89f44331f005e2b28609a32dffe7c5480a..3c1ef4826f91b4007f03c0cb96324f9ce51fbe3a 100644 (file)
@@ -291,6 +291,7 @@ type Cluster struct {
                SSHHelpPageHTML        string
                SSHHelpHostSuffix      string
                IdleTimeout            Duration
+               BannerURL              string
        }
 }