Skip to content

[v17] Fix CRLs in the backend#57879

Merged
zmb3 merged 4 commits intobranch/v17from
bot/backport-57822-branch/v17
Aug 14, 2025
Merged

[v17] Fix CRLs in the backend#57879
zmb3 merged 4 commits intobranch/v17from
bot/backport-57822-branch/v17

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented Aug 14, 2025

Backport #57822 to branch/v17

changelog: fixed an issue that could cause revocation checks to fail in Windows environments.

zmb3 added 3 commits August 14, 2025 01:03
In #55429 we added an empty certificate revocation list to the
TLS keypairs in the certificate_authority backend resource.

The intent was that the CRL would be signed by the keypair it is
assocaited with, but the code mistakenly used a function that would
find _any_ suitable keypair, which could create CRLS signed by the
wrong key.

This commit corrects both the initial CRL generation as well as
any existing CRLs that have invalid signatures.
In clusters with multiple active signers (like those using HSMs or
KMS for private keys), the only safe way to get a CRL is to use
the one that's already present in the certificate_authority resource.

Generating a CRL with GenerateCertAuthorityCRL will give you a valid
CRL, but you have no control over which certificate signs it, which
is likely to cause revocation failures later on.
In most cases, we're looking up an existing CRL, not generating one.
@github-actions github-actions bot requested review from greedy52 and nklaassen August 14, 2025 01:29
@github-actions github-actions bot added backport size/sm tctl tctl - Teleport admin tool labels Aug 14, 2025
@zmb3 zmb3 requested a review from rosstimothy August 14, 2025 22:30
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from nklaassen August 14, 2025 22:32
@zmb3 zmb3 force-pushed the bot/backport-57822-branch/v17 branch from cbdc37b to 8196a79 Compare August 14, 2025 22:38
@zmb3 zmb3 added this pull request to the merge queue Aug 14, 2025
Merged via the queue into branch/v17 with commit 27392be Aug 14, 2025
38 checks passed
@zmb3 zmb3 deleted the bot/backport-57822-branch/v17 branch August 14, 2025 23:40
@doggydogworld doggydogworld mentioned this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport size/sm tctl tctl - Teleport admin tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants