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

This commit is contained in:
soda64 committed 2026-12-02 19:03:16 +01:00
1 parent 015eae08c3
commit 9130af822e
19 files changed
+722 -7

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 (`src/lib.rs`)
1. `safe_join(base_dir: &Path, relative_path: &str) -> Result<PathBuf, SecurityError>` — odrzuć ścieżki absolutne (`Path::is_absolute`) oraz zawierające `Component::ParentDir` (`..`), w przeciwnym razie zwróć `Ok(base_dir.join(relative_path))`.
2. `redact_secrets(log_line: &str) -> String` — zamaskuj wartości po `Bearer `, `token=` oraz `password=` na `***`.
## Uruchomienie testów
```bash
make test PKG=eng06-security-appsec
```