Skip to content

Do not try an validate Oauth tokens that are known to be invalid #15890

Closed as not planned

Description

@Emyrk

Related to #14982

Problem

At present, every time a request for an external auth token is made, ValidateToken is called. If the jwt is not expired, but revoked on the IdP side, then Coder will consistently retry to use the token.

This can cause excessive IdP requests, and hit rate limits.

Failed refreshes were fixed such that they are not retried here: #15608

Solution

Do not reuse invalid tokens, caching the invalid error and preventing them from causing duplicate failed requests.

Notes

Activity

  1. added
    bug risk
    needs-triage
    on Dec 16, 2024
  2. bpmct commented on Jan 4, 2025

    @bpmct
    Member

    Moving this as a candidate for the next sprint, as it's related to several tickets.

  3. added
    security
    s2
    customer-reported
    need-backend
    and removed
    bug risk
    on Jan 6, 2025
  4. removed
    needs-triage
    on Jan 8, 2025
  5. zenithwolf1000 commented on Nov 16, 2026

    @zenithwolf1000
    Collaborator

    Closing due to inactivity.

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

    customer-reportedneed-backends2security

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions