[arvados] created: 2.1.0-2949-g3a21e3941

git repository hosting git at public.arvados.org
Wed Oct 12 20:55:25 UTC 2022


        at  3a21e39416ea3fadc795f52b77e68b36d55436ed (commit)


commit 3a21e39416ea3fadc795f52b77e68b36d55436ed
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Wed Oct 12 16:55:06 2022 -0400

    18368: Add BannerURL config option
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/lib/config/config.default.yml b/lib/config/config.default.yml
index 816d0f99e..9b5547248 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 fb17a45c8..e7cf094eb 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 a1fc2e89f..3c1ef4826 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
 	}
 }
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list