You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2d85e7d
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -71,6 +71,11 @@ This document tracks execution progress across all backlog tasks, including pull
71
71
| AUDIT-15/17 | AUDIT | Loop Detection and API Key Auth |`fix/agent-loop-and-auth`|#84| 1 | Done | Sliding-window duplicate detector; hmac.compare_digest with normalised keys |
72
72
| AUDIT-16 | AUDIT | Documentation Claim Corrections |`docs/correct-audit-claims`|#84| 1 | Done | README/ARCHITECTURE/AUDIT/ADR-006/PROGRESS/PLAN corrected and guarded by tests |
73
73
| AUDIT-18-FU | AUDIT | Real-Infra Redis Authentication |`fix/real-infra-redis-auth`|#84| 1 | Done |`REDIS_PASSWORD` completes a credential-less `REDIS_URL` for the app and the live suite; 18 fixture errors fixed |
74
+
| FU-86 | AUDIT | Credential Guard URL Password Audit |`fix/deploy-credential-url-passwords`|#90| 1 | Done | URL-embedded passwords audited with the component policy; malformed URLs reported, not raised |
75
+
| FU-87 | AUDIT | Credential Guard Logging |`refactor/deploy-credential-logging`|#90| 1 | Done | Guard reports through module logging instead of `print()`; handlers only in `__main__`|
76
+
| FU-85 | AUDIT | Real-Infra Provisioning Failures |`test/real-infra-provisioning-failures`|#90| 1 | Done | Provisioning errors fail the live SQL-isolation tier instead of skipping it |
77
+
| FU-88 | AUDIT | Audit History Consistency |`docs/audit-history-consistency`|#90| 1 | Done | Canonical 12-layer/14-commit wording; stale "AST validation" row corrected and guarded |
78
+
| FU-89 | AUDIT | uv Lockfile Policy |`chore/repo-uv-lock`|#90| 1 | Done |`uv.lock` ignored; pip-based CI does not consume a uv lock |
74
79
75
80
---
76
81
@@ -489,3 +494,14 @@ This document tracks execution progress across all backlog tasks, including pull
489
494
-**PR**: stacked on `fix/pg-url-credentials` — PR #84
490
495
-**Commits**: 1
491
496
- **Notes**: `scripts/init_readonly_role.py` changed only the password of a role that already existed, so a pre-existing `SUPERUSER`, `CREATEDB`, `CREATEROLE`, `REPLICATION` or `BYPASSRLS` role — or one that was a member of `pg_read_server_files` — kept everything the documented `SELECT`-only contract says it does not have. Provisioning now restricts first: `restriction_statements()` revokes those attributes and all privileges on the database, the `public` schema, tables, sequences and functions, `_revoke_memberships()` drops every direct membership, and only then are `CONNECT`/`USAGE`/`SELECT` granted back. It refuses a role that owns the target database (an owner can grant itself anything) and `_assert_restricted()` verifies the outcome, raising `ReadonlyRoleConfigError` rather than reporting a privileged role as provisioned. The tool checks the same properties per session in one round trip — `rolsuper`, `rolbypassrls` and membership of `pg_read_server_files`, `pg_write_server_files`, `pg_execute_server_program`, `pg_signal_backend`, `pg_monitor` or `pg_maintain`, resolved through `pg_has_role` so indirect membership counts — and refuses before the query runs. The statement lexer also re-exposes plain quoted identifiers to the function denylist, because PostgreSQL resolves `SELECT "pg_read_file"(…)` to the same built-in; keyword scans keep masking identifiers so `SELECT "delete" FROM t` stays valid. Covered by `tests/unit/test_readonly_role_provisioning.py`, new payloads in `tests/unit/test_sql_isolation.py`, and `tests/real/test_sql_isolation_real.py::test_reused_role_has_its_privileges_stripped`, which grants `CREATEDB` plus `pg_read_server_files` to the role and asserts provisioning strips both. Recorded in ADR-020.
497
+
498
+
### PR #84 Follow-ups (#85–#89)
499
+
-**Status**: Done
500
+
-**PR**: stacked on `main` — PR #90 (five layer commits plus one progress-bookkeeping commit)
501
+
-**Commits**: 5
502
+
-**Notes**:
503
+
-**#86 (guard correctness)** — `scripts/check_deploy_credentials.py` applied the weak-password policy only to the `POSTGRES_*` and `REDIS_PASSWORD` components. An explicit URL that carried its own userinfo bypassed it: `DATABASE_URL` was checked only against the exact known-password set, the read-only URL was never policy-checked, and `REDIS_URL` was checked for presence alone, so `redis://:short@host` passed the 12-character rule. `audit_credentials()` now resolves each URL exactly as `Settings` does and applies `_is_weak_password()` to URL-supplied secrets, requires a password in an explicit URL, validates a component whenever it is set but requires it only when it is the resolution source, and parses each URL once through a helper that reports "is not a valid connection URL" rather than leaking a SQLAlchemy traceback or the secret. `docs/DEPLOY.md` describes both credential forms.
504
+
-**#87 (logging)** — `main()` emits the header and one `ERROR` record per problem through `logging.getLogger(__name__)`; `basicConfig()` is confined to the `__main__` block so importing the module has no side effects. Exit code and message text are unchanged, and a test pins the no-`print()` rule from `AGENTS.md`.
505
+
-**#85 (test reliability)** — `tests/real/test_sql_isolation_real.py::readonly_engine` no longer converts `provision_readonly_role()` failures into `pytest.skip`. The upstream `real_database_url` fixture already applies migrations and fails loudly when PostgreSQL is unreachable, so a provisioning error is a defect and now turns CI red instead of leaving the isolation tier green-by-skip.
506
+
-**#88 (docs)** — `docs/AUDIT.md` records the canonical "linear 12-layer stack, merged as 14 commits (12 layer commits plus two progress-bookkeeping commits)" wording instead of "nine branches", and the historical M4-T04 row describes the lexer plus dedicated read-only role instead of "Strict SELECT AST validation". `tests/unit/test_docs_accuracy.py` guards both claims.
507
+
-**#89 (repo hygiene)** — `.gitignore` ignores `uv.lock` with a comment explaining that all three CI jobs install from `pyproject.toml` with pip, so a lockfile is not part of the reproducible build. Adopting uv properly (commit the lock, switch CI to `uv sync --locked`) remains a separate decision.
0 commit comments