How a door works
- The agent shows an ID. It adds one line to its request, signed with its own key. The ID says who owns the agent and what it has done. Anyone can look it up on the public Know Your Agent register.
- Your service checks it. An agent that meets your rule comes in. One with no ID, or a false one, is refused.
- The rest are held. An agent with a true ID that falls short of your rule does not get in. You get one email, and it waits on this page.
- You decide. Approve it and it comes in from then on. Refuse it and it stays out.
Reading your doors.
Keep the address of this page private. Anyone who has it can approve agents at your doors. Back to the watch
Add a door
One door for each service you want to guard.
The secret for this door. It is shown once. Copy it now.
Your service uses it to report held agents and read your approvals. It cannot approve anything. Keep it private all the same.
Put this in front of your service. It needs Node 18 or later.
An agent sends its ID with one line: headers: { "KYA-Proof": proofHeader(key, url) }. The full description is at know-your-agent.org.