Skip to content

enrollment: finish or clean up a partial CertificateSigningRequest record #365

Closed

Description

@hexfusion

What would you like to be added

Two fixes to the enrollment record from #360:

  • Retry or clean up a request that was approved but never received its certificate.
  • Track outstanding record tasks and wait for them within the shutdown drain.

Why is this needed

The service writes each record in three calls: create, approve, complete. If the completion fails after approval, the request stays Approved with no certificate. The Kubernetes cleaner only collects that state from 1.35 on, after 24 hours. On 1.30 to 1.34 it is never collected.

The task is detached from the request, so the 25s graceful drain does not wait for it. A shutdown between calls leaves the same partial record, or one created but never approved.

Issuance is unaffected: the certificate is committed before the record starts, and the service's enrollment record is the durable trail. The cost is a misleading or leftover object on the hub.

Follow-up to #360 (comment) and #360 (comment).

Activity

  1. added this to the v0.3.0 milestone on Oct 12, 2026
  2. added theissue type on Oct 12, 2026
  3. pazqo commented on Oct 30, 2026

    @pazqo
    Contributor

    Taking a look at this today.

  4. added a commit that references this issue on Nov 2, 2026
    f68a17b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions