From 991da6445dd3942bd7d736506507815b3982743f Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 17 May 2022 14:11:32 -0400 Subject: [PATCH] 19136: Fix FreezeProjectRequiresProperties.* missing from whitelist. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- lib/config/config.default.yml | 5 +++-- lib/config/export.go | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/config/config.default.yml b/lib/config/config.default.yml index 893542df18..958171d09f 100644 --- a/lib/config/config.default.yml +++ b/lib/config/config.default.yml @@ -248,8 +248,9 @@ Clusters: FreezeProjectRequiresDescription: false # Project properties that must have non-empty values in order to - # freeze a project. Example: {"property_name": true} - FreezeProjectRequiresProperties: {} + # freeze a project. Example: "property_name": {} + FreezeProjectRequiresProperties: + SAMPLE: {} # If true, only an admin user can un-freeze a project. If false, # any user with "manage" permission can un-freeze. diff --git a/lib/config/export.go b/lib/config/export.go index 8e23f07328..3faa0062fa 100644 --- a/lib/config/export.go +++ b/lib/config/export.go @@ -64,6 +64,7 @@ var whitelist = map[string]bool{ "API.DisabledAPIs": false, "API.FreezeProjectRequiresDescription": true, "API.FreezeProjectRequiresProperties": true, + "API.FreezeProjectRequiresProperties.*": true, "API.KeepServiceRequestTimeout": false, "API.MaxConcurrentRequests": false, "API.MaxIndexDatabaseRead": false, -- 2.30.2