Skip to content

Header-less clients share one vote identity and rate-limit bucket #104

Description

@royalpinto007

Problem

hashIp("unknown") is identical for every header-less client, so vote routes treat them as one voter (toggles collide) and they share one rate-limit bucket.

Where

lib/utils/hash.ts (x-real-ip ?? "unknown") + vote/rate-limit consumers.

Acceptance

Add a failing test first hashing two header-less requests, expecting isolated identities (or explicit rejection from voting). Then fix.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions