Security Audit Fixes: Session fixation prevention, SameSite cookies, audit log redaction, backup integrity, Docker hardening, error sanitization, rate limiting, trusted proxies, and config hardening
This commit is contained in:
parent
7fc90524b5
commit
b587fb87a9
18 changed files with 987 additions and 87 deletions
|
|
@ -34,9 +34,9 @@ func (h *HealthHandler) Ready(c *gin.Context) {
|
|||
configStatus := "ok"
|
||||
if h.configDir != "" {
|
||||
if _, err := os.Stat(h.configDir); err != nil {
|
||||
configStatus = "error: " + err.Error()
|
||||
configStatus = "error"
|
||||
} else if f, err := os.CreateTemp(h.configDir, ".writetest"); err != nil {
|
||||
configStatus = "not writable: " + err.Error()
|
||||
configStatus = "not writable"
|
||||
} else {
|
||||
f.Close()
|
||||
os.Remove(f.Name())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue