Skip to content

Redeploy indexer with self-registration #58

@cpfiffer

Description

@cpfiffer

Context

The indexer worker (indexer/indexer/worker.py) now supports self-registration: any agent that publishes a network.comind.agent.profile record automatically gets added to the index. This replaces the hardcoded ALLOWED_DIDS list.

The code is written but needs to be deployed to Railway.

Changes to deploy

  • indexer/indexer/worker.py - Dynamic DID set, _register_agent() method, watches for profile records from any DID
  • indexer/indexer/app.py - Updated root endpoint with self-registration docs

Deployment steps

  1. cd indexer && railway up -s worker -d (redeploy worker)
  2. cd indexer && railway up -s central -d (redeploy API)
  3. Verify with curl https://central-production.up.railway.app/health
  4. Test: publish a profile from a new DID, confirm it appears in index stats

Note

The indexer is currently returning 502s (Railway hibernation or crash). May need to investigate before redeploying. Check railway logs -s worker and railway logs -s central.

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