Repository navigation
feat(adapter): Basecamp 4 adapter with the secret in the path [*] - #6
Merged
Merged
Conversation
…et and matrix, anonymisation test per source [*] No behaviour change, preparation for a second source adapter: the path secret check of PassthroughPathParser and the sample test adapter moves into AbstractWebhookParser::verifyPathSecret(); the fixture loader and the matrix building block of the GitLab tests become FixtureSet and FixtureMatrix; FixtureAnonymisationTest takes one definition per source. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s event type and the event id as dedupe key [*] Source basecamp4, disabled by default. Verification through the shared path secret check; type basecamp4.<kind>; dedupe key from the top-level event id, the body hash without id or kind; actor from creator.id, project from recording.bucket.id, target the recording; filter attributes kind, project_id and recording_type. Only the edit fact is classified (title/content updated: yes, created: no), all other facts stay unknown. Built against the Basecamp API documentation. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…the path secret nor payload text [*] The intake runs with the real Basecamp4Parser and a recording logger without any processor, so the proof does not rest on the redaction processor; a deliberately leaking test adapter proves that the detector bites. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…t modes, sequence runner shared with GitLab [*] 17 fixtures in the documented shape of the Basecamp API (origin documented or derived, every value invented, none captured), their rows with the expected status and reason in the modes process and handler for the unit harness and the database group, and the basecamp4 source of the anonymisation test. The sequence runner of the GitLab matrix becomes a shared trait that passes the path secret. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…port, changelog for 0.2.1 [*] Co-Authored-By: Claude Fable 5.2 <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.
Summary
Adds
basecamp4as a second source adapter (disabled by default) and proves that the adapter seam carries a source with another verification, identity and event structure without a change to the intake, the routing or the event resource.AbstractWebhookParser::verifyPathSecret(); the fixture loader and the matrix building block of the GitLab tests become the source-neutralFixtureSetandFixtureMatrix;FixtureAnonymisationTesttakes one definition per source.Basecamp4Parser: secret as path segment (hash_equals), event typebasecamp4.<kind>, dedupe key from the top-level event id (body hash withoutidorkind), actorcreator.id, projectrecording.bucket.id, filter attributeskind,project_idandrecording_type. Only theeditfact is classified (…_title_updatedand…_content_updated: yes,…_created: no); system generated, confidential and mention stay unknown. The payload is handed on unchanged and no kind is dropped.tests/Fixtures/basecamp4/with the expected status and reason in the modesprocessandhandler, for the unit harness and the groupdatabase; the sequence runner is shared with GitLab.Basecamp4LogTestruns the intake with a recording logger without the redaction processor and asserts that no raw record carries the path secret or payload text; a leaking test adapter proves that the detector bites.Built against the documentation, not against captures
No captured Basecamp deliveries were available. The adapter and all fixtures follow the Basecamp API documentation (
sections/webhooks.mdofbasecamp/bc3-api); the fixtures carry the origindocumented (…)orderived from …, none iscaptured, and every value is invented. Open points the documentation does not answer:idstays the same when Basecamp retries a delivery (the dedupe key assumes it does);kanban_card_movedis not in the documented vocabulary; it is treated like any other kind.Things to know
processa Basecamp endpoint has no mention gate: every event of an allowed creator that is not an edit and matches a route isrouted, including trashed, moved and unknown kinds. The README recommends routes witheventTypeor akindfilter, or the modehandler.recording.parent) is only in the payload.Tests
database78 tests, all green.database(333 tests, MySQL 8 and PostgreSQL) did not run locally and is verified by the workflowTestsof this pull request.Not breaking, no migration. Release as
0.2.1after the merge.🤖 Generated with Claude Code