Skip to content

Authentication, rate limits and provider spend controls #7

Description

@TechBeme

Goal

Provide reusable protection for public Open-Higgsfield deployments that use paid provider credentials.

Scope

  • Add an authentication adapter boundary.
  • Add per-user and per-IP generation rate limits.
  • Add configurable provider/model allowlists.
  • Add daily or monthly spend/usage limits where provider metadata permits it.
  • Return clear, provider-neutral limit errors to the UI.

Acceptance criteria

  • Security controls are opt-in for local development and documented for production.
  • API keys remain server-only.
  • Limits work consistently across image and video routes.
  • Tests cover bypass and concurrency scenarios.

Activity

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

    enhancementNew feature or requesthelp wantedExtra attention is neededsecuritySecurity hardening without vulnerability details

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions