Skip to content

🔒 Add signature verification to /relay/ping endpoint — 10 RTC #388

@Scottcjn

Description

@Scottcjn

Bounty: 10 RTC

Problem

The /relay/ping endpoint in beacon_chat.py accepts any JSON body with an agent_id and auto-registers it into the Atlas directory with no authentication. This allows anyone to pollute the agent directory with fake agents or impersonate real ones.

What needs to happen

  1. Require the ping payload to include an Ed25519 signature proving the caller owns the private key for the agent_id
  2. For existing agents (heartbeat updates), require the relay token
  3. Add tests proving an unsigned ping is rejected

Files

  • Scottcjn/beacon-skill/atlas/beacon_chat.py — lines 1653-1732 (relay_ping() function)
  • Reference: beacon_skill/identity.py for how signatures work

Reward

10 RTC — paid to your RustChain wallet upon merge.

How to claim

  1. Comment "I'm working on this" below
  2. Fork the repo, make your fix, open a PR
  3. Include test coverage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions