Skip to content

feat(effector): base URL verification - #614

Open
ccf-lisa[bot] wants to merge 1 commit into
effectors/17-effector-registrationfrom
effectors/17b-effector-verify
Open

ccf-lisa[bot] wants to merge 1 commit into
effectors/17-effector-registrationfrom
effectors/17b-effector-verify

Conversation

@ccf-lisa

@ccf-lisa ccf-lisa Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

What

Wire interface, effector.verify:

  • Client.Post: signed POST to {base-url}/v1/webhook with a timeout (CCF_EFFECTOR_DELIVERY_TIMEOUT); redirects are never followed, so deliveries only reach the URL an admin set; responses read up to 64 KiB.
  • Deliverer.Verify(agent): sends effector.verify with a random challenge; when the agent echoes it, the agent's effector is ready with the current kid. Nothing is sent without a base URL or when already verified with the current key; a base URL changed while verifying isn't marked ready (it gets its own verification); any other answer is an error for the job to retry.
  • VerifyArgs (effector.verify job).

Why

Plan: stack 2, PR 17 ("registration and verification"), second half.

Test evidence

verify_integration_test.go (Postgres, an httptest agent that checks signatures like the agent): nothing to verify, a successful challenge, already verified, wrong challenge, error status, base URL changed meanwhile, unreachable; redirects not followed, transport errors.

Gate on this branch: go build ./... pass; go vet -tags integration ./... pass; make lint (golangci-lint v2.15.0, CI config) 0 new issues; make test pass; make swag no diff; go mod tidy no diff; go test -tags integration -p 1 on ./internal/service/effector/ pass.

Size

Counted: 344 lines.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: add525e0-a83c-4445-b15b-870b867b930d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

internal/service/effector: the delivery client posts signed webhooks to
{base-url}/v1/webhook with a timeout (CCF_EFFECTOR_DELIVERY_TIMEOUT) and
never follows redirects, so deliveries only reach the URL an admin set.
Deliverer.Verify sends effector.verify with a random challenge and,
when the agent echoes it, marks the agent's effector ready with the
current kid; it does nothing without a base URL or when already
verified with the current key, leaves a base URL changed meanwhile to
its own verification, and fails (for the job to retry) on any other
answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@gusfcarvalho gusfcarvalho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ccf-review: APPROVE

no findings.

Stack (gh stack 604): #592 → #593 → #594 → #595 → #596 → #597 → #598 → #599 → #600 → #601 → #602 → #603 → #605 → #606 → #607 → #608 → #609 → #610 → #611 → #612 → #613 → #614 → #615 → #616 → #617 → #618 → #619 → #620 → #621 → #622 → #623 → #624 → #625 → #626 → #627 → #628 → #629 → #630

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant