Skip to content

refactor: Remove admin/internal endpoints from Drawbridge#211

Merged
macterra merged 1 commit intomainfrom
206-drawbridge-public-only
Mar 14, 2026
Merged

refactor: Remove admin/internal endpoints from Drawbridge#211
macterra merged 1 commit intomainfrom
206-drawbridge-public-only

Conversation

@macterra
Copy link
Copy Markdown
Collaborator

@macterra macterra commented Mar 14, 2026

Summary

  • Remove 11 gatekeeper admin proxy routes from Drawbridge, keeping it as a public-facing API gateway only
  • Removed endpoints: queue management, event processing, DID removal, DID import, batch operations, block creation, DB reset/verify
  • These admin operations should be accessed directly through gatekeeper
  • Drawbridge-specific admin routes (L402 management) are retained

Closes #206

Test plan

  • Build Drawbridge successfully
  • Verify removed endpoints return 404
  • Verify public endpoints still work (DID resolve, registries, search, IPFS, lightning)
  • Verify L402 management routes still work for admin

🤖 Generated with Claude Code

Drawbridge is the public-facing API gateway and should only expose
endpoints that external users need. Remove 11 gatekeeper admin proxy
routes that should only be accessed directly through gatekeeper:

- GET/POST /queue/:registry (queue management)
- POST /events/process (event processing)
- POST /dids/remove (DID deletion)
- POST /dids/import (DID import)
- POST /batch/export, /batch/import, /batch/import/cids (batch ops)
- POST /block/:registry (block creation)
- GET /db/reset, GET /db/verify (database admin)

Closes #206

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@macterra macterra merged commit 5e4c4da into main Mar 14, 2026
13 checks passed
@macterra macterra deleted the 206-drawbridge-public-only branch March 14, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Factor out Gatekeeper admin interface

1 participant