Skip to content

Reference auth-proxy worker (examples/) #72

Description

@ramboz

Part of #66

Problem

~80% of a real BYO integration is the same glue: an edge worker that hides the engine's API key, reads/mints the visitor id, calls the engine, and returns a normalized decision. Every customer rebuilds it.

Proposal

A reference auth-proxy worker under examples/:

  • a Cloudflare entry + a framework-neutral core (portable to other runtimes),
  • hides the API key (server-side secret),
  • reads/mints the visitor-id cookie,
  • calls the engine and returns the normalized decision (per the contract sub-issue),
  • documented env/secret setup + a minimal engine stub so it runs standalone.

Acceptance criteria

  • examples/ worker that runs with documented setup.
  • Key never reaches the client; visitor-id read/mint handled server-side.
  • Emits decisions conforming to the client ⇄ engine contract.
  • README wiring it to the client resolver hook.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions