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:
@@ -118,7 +118,7 @@ func (h *ModelHandler) CreateModel(c *gin.Context) {
|
||||
|
||||
c.JSON(http.StatusCreated, gin.H{
|
||||
"success": true,
|
||||
"data": dto.NewModelResponse(ctx,model),
|
||||
"data": dto.NewModelResponse(ctx, model),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ func (h *ModelHandler) GetModel(c *gin.Context) {
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": true,
|
||||
"data": dto.NewModelResponse(ctx,model),
|
||||
"data": dto.NewModelResponse(ctx, model),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -634,7 +634,7 @@ func (h *ModelHandler) UpdateModel(c *gin.Context) {
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": true,
|
||||
"data": dto.NewModelResponse(ctx,model),
|
||||
"data": dto.NewModelResponse(ctx, model),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user