Skip to content

feat(onramp): allow-all gate for internal use #2548

Open

Description

@thiras

The onramp's gate is pluggable since decdn/sponsord#19 (sponsord_onramp::gate::Gate). For internal use (our own team, a trusted network, CI), a gate that lets everyone through avoids running a captcha.

Proposal

ONRAMP_GATE=allow-all, refused at startup unless ONRAMP_ALLOW_ALL_I_UNDERSTAND=true is also set (or the bind address is loopback), since anyone who can reach the onramp can then spend the pool up to the rate limits.

  • The page needs no widget: it posts /v1/fund on load and shows the result.
  • Startup logs a warning naming the per-capability cap and the rate limits, which then are the only bounds on spending.

Done when

  • AllowAllGate implements Gate; the startup guard is tested.
  • docs/security.md lists it with its risk.

Activity

  1. added
    kind:feature
    on Oct 3, 2026
  2. transferred this issue fromdecdn/sponsordon Oct 19, 2026
  3. added
    area:sponsord
    on Oct 19, 2026
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

    area:sponsordkind:feature

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions