fix(security): harden secret redaction follow-ups for PR #1884
Restore PreserveIfRedacted merge on tenant KV PUT so Admin settings saves no longer overwrite stored secrets with placeholder values. Redact cross- tenant tenant listings, tighten Viewer MCP/model responses, and align init config frontend types with credentials metadata.
This commit is contained in:
@@ -85,7 +85,7 @@ func (h *MCPServiceHandler) CreateMCPService(c *gin.Context) {
|
||||
// construction — no runtime redaction needed.
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": true,
|
||||
"data": dto.NewMCPServiceResponse(ctx,&service),
|
||||
"data": dto.NewMCPServiceResponse(ctx, &service),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ func (h *MCPServiceHandler) GetMCPService(c *gin.Context) {
|
||||
// so the cross-tenant builtin list does not leak per-tenant config.
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": true,
|
||||
"data": dto.NewMCPServiceResponse(ctx,service),
|
||||
"data": dto.NewMCPServiceResponse(ctx, service),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -351,7 +351,7 @@ func (h *MCPServiceHandler) UpdateMCPService(c *gin.Context) {
|
||||
}
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": true,
|
||||
"data": dto.NewMCPServiceResponse(ctx,stored),
|
||||
"data": dto.NewMCPServiceResponse(ctx, stored),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user