Skip to content

Rate-limited token validation is invisible to operators #1503

@mafredri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions