b8788c239e
MCP Docker / build-and-push (push) Has been cancelled
- Remove telemetry: disabled all phone-home (installation notify, false positives, behavior tracking, upgrade tips) - Version branding: removed 'ce-' prefix, product name changed to '长亭雷池 WAF' - Detection engine enhancement: strict preset enables all 17 modules with aggressive configs - Multi-user RBAC: admin/operator/viewer roles with password + TOTP 2FA - Rate limiting: nginx limit_req per website (RPS, burst, action) - JS Challenge: browser fingerprint verification page with cookie-based bypass - Security fixes: removed InsecureSkipVerify, hardcoded credentials, NO_AUTH backdoor
27 lines
723 B
Go
27 lines
723 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"chaitin.cn/patronus/safeline-2/management/webserver/api/response"
|
|
"chaitin.cn/patronus/safeline-2/management/webserver/pkg/constants"
|
|
)
|
|
|
|
type idsRequest struct {
|
|
IDs []uint `json:"ids" form:"ids"`
|
|
}
|
|
|
|
type pageRequest struct {
|
|
Page int `json:"page" form:"page,default=1" binding:"min=1"`
|
|
PageSize int `json:"page_size" form:"page_size,default=10" binding:"min=1"`
|
|
}
|
|
|
|
func GetVersion(c *gin.Context) {
|
|
response.Success(c, gin.H{"version": constants.Version})
|
|
}
|
|
|
|
func GetUpgradeTips(ctx *gin.Context) {
|
|
// External version check disabled - always return no upgrade needed
|
|
response.Success(ctx, gin.H{"upgrade_tips": constants.NotUpgrade})
|
|
}
|