fix: address rotation-revocation re-verify findings

Name only the repeat of rotate_secret while sessions of the previous
PostgreSQL password may stay open, compare KV version time with the
container start when the load record is gone, refuse run_docker and
rolling_update next to a running rotation, defer SIGQUIT, and name the
remaining windows and cases in the trust matrix and threat model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 12:40:25 +03:00
co-authored by Claude Opus 5.5
parent 6b637109de
commit d4a882ddd6
32 changed files with 1371 additions and 215 deletions
+10 -5
View File
@@ -459,7 +459,10 @@ def test_seed_check_writes_nothing(
written.append(name)
return 200, {"data": {"version": 8}}
return 200, {
"data": {"data": stored[name], "metadata": {"version": 7}},
"data": {
"data": stored[name],
"metadata": {"version": 7, "created_time": "T7"},
},
}
monkeypatch.setattr(bao, "compose_values", lambda _file: model)
@@ -473,14 +476,16 @@ def test_seed_check_writes_nothing(
assert operator.seed() == 0
out = capsys.readouterr().out
assert "value-" not in out
assert "kv messenger/s3/api: version 7, unchanged" in out
line = "kv messenger/postgres/worker: version"
lines = out.splitlines()
path = "kv messenger/postgres/worker: version"
if check:
assert written == []
assert f"{line} 7, differs" in out
assert f"{path} 7, differs, created T7" in lines
assert "kv messenger/s3/api: version 7, unchanged, created T7" in lines
else:
assert written == ["postgres/worker"]
assert f"{line} 8, written" in out
assert f"{path} 8, written" in lines
assert "kv messenger/s3/api: version 7, unchanged" in lines
@pytest.mark.parametrize(