Skip to content

fix(self-managed): tolerate API Keys cold start in admin token issuer proxy #1229

Description

@mikeyrcamp

Problem

During a fresh self-managed control-plane installation,
admin-token-issuer-proxy can start before API Keys is listening. Its first
metadata request is refused and the proxy exits, causing repeated container
restarts during an otherwise healthy cold start. Kubernetes eventually
recovers the pod after API Keys becomes ready, but the avoidable restart loop
adds noise and can consume Helm readiness budgets on slower clusters.

This is distinct from API Keys authentication failures: in the observed
recovery, API Keys became ready and the proxy converged without configuration
changes or pod deletion.

Expected behavior

The proxy tolerates temporary API Keys unavailability during startup and
becomes ready once its dependency is available without a crash loop.

Acceptance criteria

  • Retry connection-refused and other explicitly transient API Keys startup
    failures with bounded backoff.
  • Keep readiness false until metadata initialization succeeds.
  • Fail clearly on permanent configuration or authentication errors.
  • Add a startup-order regression where the proxy starts before API Keys.
  • Verify Helm installation converges within its documented readiness budget.

By submitting this issue, you acknowledge that you are an assigned member of
the NVCF development team and agree to follow the project code of conduct and
contributing guidelines.

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