Repository navigation
Conversation
|
Design decisions for reviewers (the issue left these open):
|
…piKey, auth and skipTlsValidation
|
@einari this needs your code-owner review to merge (branch protection requires a reviewer other than the author). Could you take a look? |
The UnicodeDecodeError names the offending byte of the client secret. Raise InvalidCredentialsEncodingError outside the handler so neither __cause__ nor __context__ carries it.
|
Independent review (prerequisite for OAuth #3, authenticated append #4, parity #36): no blocking defects. One narrow hardening pushed as ba6e10d: |
|
Independent review passes after secret-safe exception hardening;148 tests/mypy pass on3.10-3.14 and hosted checks green atba6e10d. Current merge is legitimately protected (code-owner review + last-push approval), so I will not bypass it. @woksin please coordinate the protected review/last-push requirement; runtime#3/#4 is proceeding stacked on this accepted API while review is pending. Source of evidence: event-source-worktrees/logs/python-parser-review.status.md. |
einari
left a comment
There was a problem hiding this comment.
Approved after independent automated review at ba6e10d:148 specs and strict typing across Python3.10-3.14 plus hosted CI. Secret decoder exceptions hardened; options immutable and credentials redacted. This approval does not bypass code-owner or last-push protections; preserve those gates. Runtime uses production certificate/hostname validation despite parser dev-default skipTlsValidation.
|
Cross-provider review findings and fixes (commit cbaf453):
Local: ruff format/check, mypy and pytest pass on Python 3.14 only (the other versions are not installed locally). CI passes on 3.10 to 3.14. |
|
Addressed the second re-review in normal commits 611dff1 and 299199c, and the full third review in 83c29b4 and 504abc6. The fourth review is addressed in 1ce1d0d, e5196b4, and e11cec5. The fifth review is addressed in 3fba971. The sixth review is addressed in dbd2cbc. The seventh review is addressed in b36373a. The history used by stacked draft #39 is preserved.
Third-review fixes:
Fourth-review fixes:
Fifth-review fix:
Sixth-review fix:
Seventh-review fixes:
Diagnostic audit of
Local CI-equivalent commands passed on the only installed supported version, Python 3.14.7: Hosted CI at b36373a passed the full Python 3.10–3.14 matrix. Markdown verification and both metadata checks also passed. No rebase or force-push was used. This remains unmerged pending non-author approval. |
Added
parse_connection_string()andChronicleConnectionOptions.parse()parse achronicle://[<client-id>:<client-secret>@]<host>[:<port>]connection string into immutable, typedChronicleConnectionOptionswithout opening a connection. The port defaults to35000, credentials are percent-decoded, and TLS is on by default. (Parse and validate Chronicle connection strings #2)chronicle://localhost:35000equalschronicle://chronicle-dev-client:chronicle-dev-secret@localhost:35000, as in the .NET client. The values are exported asDEVELOPMENT_CLIENT_IDandDEVELOPMENT_CLIENT_SECRET. A partial set of credentials is rejected. (Parse and validate Chronicle connection strings #2)skipTlsValidationis parsed intoskip_tls_validation, which defaults toTruelike the .NET client. TLS stays on, andskipTlsValidation=falserequires a verifiable certificate. (Parse and validate Chronicle connection strings #2)ConnectionStringErrorsubclasses reject missing hosts, invalid ports, incomplete credentials, credentials combined with a non-emptyapiKey, unsupported schemes and unsupported options such asauth=..., a non-emptyapiKeywithout credentials, and other query parameters. An emptyapiKeyis treated as absent. (Parse and validate Chronicle connection strings #2)str()andrepr()of the parsed options never expose the client secret.