Skip to content

authn: per-issuer key and fetch options #601

Todo

Description

@jhrozek

Why. ToolHive's validators accept EdDSA tokens, because ToolHive's embedded authorization server signs with
Ed25519. The incoming validator also follows same-host redirects for clients using a token file. The authorization
server's validator adds a CA bundle to the system roots, refreshes keys every 5 minutes, and tries every key when no
kid matches. Moving them onto authn without these would change their behaviour.

What.

  • In progress:
    • Listing "EdDSA" in a trust's Algs accepts Ed25519. Ed448 and X25519 keys are refused.
    • DefaultAlgs() returns the default list, so a caller writes append(authn.DefaultAlgs(), "EdDSA").
    • Redirects is none (the default) or same-host, for discovery and key fetches. The token file is never sent to
      another host.
    • Open question: should setting Redirects together with a custom HTTPClient be an error?
  • Still to do:
    • CA mode: replace the system roots (today) or add to them. If the system pool fails to load, return an error.
    • A key refresh interval (authn uses 15 minutes today).
    • Whether to try every key when no kid matches (an option, or a documented change).

Done when. Table tests cover each option, and the defaults are unchanged.

Activity

  1. self-assigned this
    on Dec 2, 2026
  2. added
    needs-triage
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions