feat(audit): add localized security audit logs (#5462)
This commit is contained in:
@@ -337,6 +337,10 @@ func UpdateOption(c *gin.Context) {
|
||||
common.ApiError(c, err)
|
||||
return
|
||||
}
|
||||
// 出于安全考虑只记录被修改的配置项名称,不记录配置值(可能含密钥等敏感信息)。
|
||||
recordManageAudit(c, "option.update", map[string]interface{}{
|
||||
"key": option.Key,
|
||||
})
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": true,
|
||||
"message": "",
|
||||
|
||||
Reference in New Issue
Block a user