From 0351e2c079e29292724a543b10f5d3ae3edfb2ed Mon Sep 17 00:00:00 2001 From: vidyasagar-m Date: Fri, 10 Jan 2025 09:06:39 +0530 Subject: [PATCH] fix for hiding certificate, CA Chain and private keys from as3 response --- pkg/agent/as3/postManager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/as3/postManager.go b/pkg/agent/as3/postManager.go index da78c60bb..154c62d20 100644 --- a/pkg/agent/as3/postManager.go +++ b/pkg/agent/as3/postManager.go @@ -402,7 +402,7 @@ func (postMgr *PostManager) getBigipRegKeyURL() string { func (postMgr *PostManager) logAS3Response(responseMap map[string]interface{}) { // removing the certificates/privateKey from response log - if declaration, ok := (responseMap["declaration"]).([]interface{}); ok { + if declaration, ok := (responseMap["declaration"]).(map[string]interface{}); ok { for _, value := range declaration { if tenantMap, ok := value.(map[string]interface{}); ok { for _, value2 := range tenantMap {