Files
2026-12-02 19:04:38 +01:00

14 lines
396 B
Go

package appsec
import "errors"
var ErrPathTraversal = errors.New("path escapes base directory")
func SafeJoin(baseDir, relPath string) (string, error) {
panic("TODO: odrzuć filepath.IsAbs(relPath) oraz ścieżki wychodzące poza baseDir (filepath.Rel -> '..')")
}
func RedactSecrets(logLine string) string {
panic("TODO: zamień wartości po 'Bearer ', 'token=' i 'password=' na '***'")
}