Skip to content

Rate-limited token validation is invisible to operators #1503

Closed

Description

@mafredri

When ValidateToken detects a rate limit (403 with rate-limit headers or 429), it returns "valid" without actually confirming the token with the provider. Nothing logs or metrics this, so operators cannot distinguish "provider confirmed the token" from "we assumed it was valid because we were rate-limited."

Context: coder/coder#24334

🤖 Generated with the help of Coder Agents on behalf of @mafredri.

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