Files
kandev/docs/plans/plugin-voice-extraction-host/task-02-authenticated-webhook-manifest.md
T
João Salavisa 6033d5717c feat(plugins): add voice extraction host APIs (#2548)
Co-authored-by: Kandev Agent <agent@kandev.dev>
2026-08-12 11:14:50 +02:00

1.2 KiB

id, title, status, wave, depends_on, plan, spec
id title status wave depends_on plan spec
02-authenticated-webhook-manifest Extend webhook declarations done 1
plan.md ../../specs/plugins/voice-extraction-host.md

Task 02: Extend Webhook Declarations

Acceptance

  • Manifest webhooks support optional access: public|authenticated and max_body_bytes, with legacy declarations resolving to public access and a 4 MiB limit.
  • Validation rejects unknown access modes, public limits above 4 MiB, and authenticated limits above 16 MiB, while preserving existing key uniqueness and method behavior.
  • Install, registry, and JSON/YAML round-trip tests preserve the new fields. Protobuf and the Go plugin SDK remain unchanged.

Verification

cd apps/backend && go test ./internal/plugins/manifest ./internal/plugins

Follow RED-GREEN-REFACTOR, beginning with legacy-default and invalid-limit cases.

Files Likely Touched

  • apps/backend/internal/plugins/manifest/*
  • apps/backend/internal/plugins/types.go
  • plugin install/registry serialization tests

Inputs And Risks

  • Spec authenticated-webhook API and compatibility section.
  • Do not reinterpret omitted fields during YAML/JSON round trips in a way that breaks old packages.