19177: Adds config to disable sharing links UI on workbenches.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Wed, 8 Jun 2022 12:31:50 +0000 (09:31 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Wed, 8 Jun 2022 12:31:50 +0000 (09:31 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

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

index f6e99101618fa465530a68addef982c1eed01ab4..a9bbf4eee9b5002e733cb46df5ffe9be995ffdcf 100644 (file)
@@ -1526,6 +1526,11 @@ Clusters:
       ShowUserAgreementInline: false
       SecretKeyBase: ""
 
+      # Set this configuration to true to avoid providing an easy way for users
+      # to share data with unauthenticated users; this may be necessary on
+      # installations where strict data access controls are needed.
+      DisableSharingURLsUI: false
+
       # Scratch directory used by the remote repository browsing
       # feature. If it doesn't exist, it (and any missing parents) will be
       # created using mkdir_p.
index 3faa0062fa9977cab3fc7475fab1e622d88ba027..a55295d1268b7cc0829ec2fe5073eb276c5b4564 100644 (file)
@@ -264,6 +264,7 @@ var whitelist = map[string]bool{
        "Workbench.ArvadosDocsite":                            true,
        "Workbench.ArvadosPublicDataDocURL":                   true,
        "Workbench.DefaultOpenIdPrefix":                       false,
+       "Workbench.DisableSharingURLsUI":                      true,
        "Workbench.EnableGettingStartedPopup":                 true,
        "Workbench.EnablePublicProjectsPage":                  true,
        "Workbench.FileViewersConfigURL":                      true,
index 319fa1a38f4a5e1e936315dbacb241f279c04aa6..0d8f293124976cb42f9d009da1b16c5057ba1071 100644 (file)
@@ -260,6 +260,7 @@ type Cluster struct {
                ArvadosDocsite                   string
                ArvadosPublicDataDocURL          string
                DefaultOpenIdPrefix              string
+               DisableSharingURLsUI             bool
                EnableGettingStartedPopup        bool
                EnablePublicProjectsPage         bool
                FileViewersConfigURL             string