fix: zabezpieczenia po review repo (restore confirm, ukryte hasło, deploy tylko na sukces)#4
Merged
Merged
Conversation
C1: restore-db-remove-db-rebuild-db-rm-backup pyta o 'yes' przed
dropdb --force (escape: YES=1) — wczesniej kasowal produkcyjna baze
bez potwierdzenia.
H1: @-prefix na liniach z PGPASSWORD w db-backup/dbshell-psql/ps-dbserver/
restore — Make nie echo-uje juz hasla do terminala/logow CI.
H2: wait-for-build.sh deployuje tylko gdy conclusion=success; failure/
cancelled/brak-runu => exit 1 zamiast pull+restart na nieudanym buildzie.
H3: usuniety martwy label autoheal=true z denorm-queue (healthcheck byl
zakomentowany, autoheal i tak nigdy nie dzialal); CLAUDE.md + docs
zaktualizowane (denorm-queue nie jest autoheal-watched).
H6: test_makefile.sh liczy i drukuje SKIP; skip_or_fail() pod
BPP_REQUIRE_DOCKER=1 traktuje brak srodowiska jako FAIL, a linuksowy
job CI ustawia ten flag (macOS/Windows nadal skipuja) — koniec
cichego "0 failed" na runnerach bez dockera.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Poprawki znalezione podczas review repozytorium. Zakres uzgodniony z właścicielem — pozostałe znaleziska (redis eviction, fallbacki DB-creds, SHA-pinning, SC2086 itd.) świadomie pominięte.
Zmiany
mk/database.mk:restore-db-remove-db-rebuild-db-rm-backuppyta o wpisanieyesprzeddropdb --force(escapeYES=1, zgodny z istniejącym knobemYESwrestore). Wcześniej kasował produkcyjną bazę bez potwierdzenia.mk/database.mk:@-prefix na 6 liniach zPGPASSWORD=...(db-backup,dbshell-psql,ps-dbserver, restore). Make nie echo-uje już cleartext hasła do terminala/logów CI. (Uwaga: wektorps auxna hoście pozostaje — argv-e PGPASSWORD=wciąż widoczne; pełne usunięcie wymagałoby.pgpass/stdin, poza zakresem H1.)scripts/wait-for-build.sh: deploy tylko gdyconclusion == "success";failure/cancelled/brak-runu →exit 1zamiastpull+restart. Zmiana zachowania: skrypt kończy się błędem na nieudanym buildzie upstreamu.docker-compose.workers.yml: usunięty martwy labelautoheal: "true"zdenorm-queue(healthcheck był zakomentowany, więc autoheal nigdy nie reagował).CLAUDE.md+docs/architektura/healthchecks-autoheal.mdzaktualizowane.tests/test_makefile.sh+.github/workflows/ci.yml: licznikSKIPw podsumowaniu;skip_or_fail()traktuje brak dockera/curla jako FAIL podBPP_REQUIRE_DOCKER=1, który ustawia linuksowy job CI (macOS/Windows nadal skipują). Koniec cichego „0 failed" na runnerach bez dockera.Weryfikacja
tests/test_makefile.sh: 119 passed, 0 failed, 0 skipped (lokalnie z dockerem).BPP_REQUIRE_DOCKER=1+ ukryte docker/curl z PATH →exit 1, 4 FAIL (gate działa).bash -nna zmienionych skryptach OK;makeparsujemk/database.mk; dry-run C1 potwierdza prompt vsYES=1.mkdocs build --strictnie uruchamiany lokalnie (brak mkdocs) — edycje docs bez nowych linków/nav, gate nienaruszony;docs.ymlodpali na push.🤖 Generated with Claude Code