Skip to content

Present outbound client identities (mTLS) on Axum #527

Backlog

Description

@ChristianPavilonis

Description

#523 added portable outbound client identities (#524): an application declares an identity in [capabilities.outbound.client-identities.<name>] and selects it with OutboundRequest::client_identity(name). Core owns declarations, the host check and errors; each adapter owns its runtime binding. Axum currently rejects identity requests with ClientIdentityError::Unsupported { adapter: "axum" } before any transport work.

Proposed binding

  • Read each identity's certificate chain, private key and hosts list from operator configuration (file paths or environment), not from the manifest.
  • Build one reqwest::Client per identity with reqwest::Identity::from_pem, lazily, and reuse it; requests without an identity keep the shared client.
  • Run core's ClientIdentityHosts check on every hop and bypass any response caching, as on Fastly.

Known limits

None known. Requests without an identity present no certificate, and identities choose per request.

Done when

  • Identity requests present the configured certificate; requests without one are unchanged.
  • Missing or invalid material, unlisted hosts and redirects fail with the existing ClientIdentityError reasons before I/O.
  • Rotation is defined (reload on change or restart) and documented.
  • outbound-client-identity reports Native for Axum once tests against a local origin that requires client certificates pass; the matrix, docs contract and guide are updated.

Related

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions