Skip to content

feat: limit services and writes per user #124

Closed

Description

@uniqueg

Why?

Any user who logs in with LS Login can register services. Nothing in the app limits how many services one user registers, or how often they write. A single account can therefore fill the registry with entries, and admins have to clean up by hand. For 0.3.0, the deployment docs recommend rate limiting at the Ingress instead (#121), which limits requests per client address, not per user.

This was deferred from the low-severity review findings in #117.

How?

  1. Decide the limits:
    • a maximum number of services a user owns (e.g. configurable, default 50);
    • optionally, writes per user per time window.
    • Should admins and groups be exempt or counted?
  2. Add the limits to the app config (custom section) and the Helm values.
  3. Enforce them on POST /services and PUT /services/{serviceId} (creates only), with 429 or 403 and a clear problem detail.
  4. Docs: README (access control, limits), deployment README.

Acceptance criteria

  • A user who reaches the configured number of services can't create more; updates still work.
  • The limits are configurable, and documented, including how to turn them off.
  • Tests cover the limits, including concurrent creates by the same user.

Activity

  1. added
    type: feature
    type: security
    priority: medium
    workload: days
    status: on hold
    on Oct 21, 2026
  2. added
    status: in progress
    and removed
    status: on hold
    on Oct 28, 2026
  3. added this to the v1.0.0-rc1 milestone on Oct 28, 2026
  4. removed
    status: in progress
    on Oct 29, 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

    priority: mediumtype: featuretype: securityworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions