Skip to content

docs(security): audyt --frozen + docs/SECURITY_PRACTICES.md#179

Merged
mpasternak merged 1 commit into
devfrom
security/deterministic-installs
Apr 27, 2026
Merged

docs(security): audyt --frozen + docs/SECURITY_PRACTICES.md#179
mpasternak merged 1 commit into
devfrom
security/deterministic-installs

Conversation

@mpasternak
Copy link
Copy Markdown
Member

Podsumowanie

PR 7/12 z serii pypi-security-best-practices — praktyka #4: Deterministic Installations.

Audit results

Wszystkie ścieżki instalacji w CI i Docker buildzie już używają
uv sync --frozen — audit potwierdza poprawny stan:

Kontekst --frozen?
.github/workflows/tests.yml
.github/workflows/refresh-baseline.yml
docker/bpp_base/Dockerfile (2 spots)
Entrypoint scripts ✅ (no uv calls)
Makefile prepare-developer-machine-* ❌ → fixed in this PR
Makefile uv-sync ❌ (intentional, dev cycle)
Makefile live-docs ❌ (intentional, sphinx-autobuild)

Co się zmienia

Plan testowy

🤖 Generated with Claude Code

Praktyka #4 z lirantal/pypi-security-best-practices (Use Deterministic
Installations).

Audyt wszystkich uv invocations w repo:
- CI workflows (tests.yml, refresh-baseline.yml): --frozen present (good)
- Dockerfile builder + test stages: --frozen present (good)
- Entrypoint scripts: brak uv calls (good - moved to build time per
  obs 17168)
- Makefile prepare-developer-machine-{macos,linux}: BRAK --frozen -
  dodano w tym commicie (pierwsze setup powinno respektowac lockfile)

Wyjatki swiadome (udokumentowane w docs/SECURITY_PRACTICES.md):
- make uv-sync (luzny dla aktywnego dev cycle)
- make live-docs (sphinx-autobuild celowo poza lockfile)
- make enable/disable-microsoft-auth (alternatywa: --extra office365)

Nowy plik docs/SECURITY_PRACTICES.md agreguje polityki bezpieczenstwa BPP
ze wszystkich PR-ow z serii pypi-security-best-practices:
- Deterministyczne instalacje (--frozen)
- Wheel-only policy (PR #177)
- Cooldown przed instalacja (PR #175, #178)
- Eksplicytny indeks PyPI (PR #174)
- SHA-pinning GitHub Actions (PR #176)

Doc zostanie rozbudowany w PR-ach #10 (secrets) i #11 (dep review).
@mpasternak mpasternak merged commit 64f2b6e into dev Apr 27, 2026
9 checks passed
@mpasternak mpasternak deleted the security/deterministic-installs branch April 28, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant