feat: add SQL/SQLite, AppSec, Capstone incident-tracker, Gitea Actions CI and spaced repetition
Test and Lint / quality (push) Successful in 2m13s

This commit is contained in:
soda64 committed 2026-12-02 19:04:38 +01:00
1 parent 011f23e637
commit 33082598fc
19 files changed
+496 -6

No files matched your search

@@ -0,0 +1,12 @@
# 06 — Bezpieczeństwo Kodu (AppSec: Path Traversal, Redakcja Sekretów)
Teoria: [notes/07-appsec-and-secure-coding.md](../../../notes/07-appsec-and-secure-coding.md)
## Zadania (`appsec.go`)
1. `SafeJoin(baseDir, relPath string) (string, error)` — bezpiecznie połącz `baseDir` z `relPath`. Odrzuć ścieżki absolutne i próby wyjścia poza `baseDir` (`../../etc/passwd`) błędem `ErrPathTraversal`.
2. `RedactSecrets(logLine string) string` — zamaskuj wartości po `Bearer `, `token=` i `password=` na `***`.
## Uruchomienie testów
```bash
make test PKG=./exercises/02-engineering-2026/06-security-appsec
```