From 1b866fa50b9707dcb08b67724940cb0c6b57b575 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Wed, 3 Mar 2021 03:45:05 +0200 Subject: [PATCH] fix(endpoints): show correct values of security settings (#4889) --- api/portainer.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/portainer.go b/api/portainer.go index c25838a99..35183a908 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -319,21 +319,21 @@ type ( // EndpointSecuritySettings represents settings for an endpoint EndpointSecuritySettings struct { // Whether non-administrator should be able to use bind mounts when creating containers - AllowBindMountsForRegularUsers bool `json:"AllowBindMountsForRegularUsers" example:"false"` + AllowBindMountsForRegularUsers bool `json:"allowBindMountsForRegularUsers" example:"false"` // Whether non-administrator should be able to use privileged mode when creating containers - AllowPrivilegedModeForRegularUsers bool `json:"AllowPrivilegedModeForRegularUsers" example:"false"` + AllowPrivilegedModeForRegularUsers bool `json:"allowPrivilegedModeForRegularUsers" example:"false"` // Whether non-administrator should be able to browse volumes - AllowVolumeBrowserForRegularUsers bool `json:"AllowVolumeBrowserForRegularUsers" example:""` + AllowVolumeBrowserForRegularUsers bool `json:"allowVolumeBrowserForRegularUsers" example:"true"` // Whether non-administrator should be able to use the host pid - AllowHostNamespaceForRegularUsers bool `json:"AllowHostNamespaceForRegularUsers" example:""` + AllowHostNamespaceForRegularUsers bool `json:"allowHostNamespaceForRegularUsers" example:"true"` // Whether non-administrator should be able to use device mapping - AllowDeviceMappingForRegularUsers bool `json:"AllowDeviceMappingForRegularUsers" example:""` + AllowDeviceMappingForRegularUsers bool `json:"allowDeviceMappingForRegularUsers" example:"true"` // Whether non-administrator should be able to manage stacks - AllowStackManagementForRegularUsers bool `json:"AllowStackManagementForRegularUsers" example:""` + AllowStackManagementForRegularUsers bool `json:"allowStackManagementForRegularUsers" example:"true"` // Whether non-administrator should be able to use container capabilities - AllowContainerCapabilitiesForRegularUsers bool `json:"AllowContainerCapabilitiesForRegularUsers" example:""` + AllowContainerCapabilitiesForRegularUsers bool `json:"allowContainerCapabilitiesForRegularUsers" example:"true"` // Whether host management features are enabled - EnableHostManagementFeatures bool `json:"EnableHostManagementFeatures" example:""` + EnableHostManagementFeatures bool `json:"enableHostManagementFeatures" example:"true"` } // EndpointType represents the type of an endpoint