feat: add SQL/SQLite, AppSec, Capstone incident-tracker, Gitea Actions CI and spaced repetition
Test and Lint / quality (push) Successful in 2m13s
Test and Lint / quality (push) Successful in 2m13s
This commit is contained in:
1 parent
011f23e637
commit
33082598fc
19 files changed
+496
-6
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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 '***'")
|
||||
}
|
||||
Reference in new issue
Block a user