Skip to content

[v18] Fix CRLs in the backend#57880

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

[v18] Fix CRLs in the backend#57880
zmb3 merged 4 commits intobranch/v18from
bot/backport-57822-branch/v18

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented Aug 14, 2025

Backport #57822 to branch/v18

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

zmb3 added 3 commits August 14, 2025 01:04
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 added backport size/sm tctl tctl - Teleport admin tool labels Aug 14, 2025
@github-actions github-actions bot requested review from greedy52 and nklaassen August 14, 2025 01:29
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from nklaassen August 14, 2025 17:19
@zmb3 zmb3 force-pushed the bot/backport-57822-branch/v18 branch from ea9d33c to 2c9eaa0 Compare August 14, 2025 20:55
@zmb3 zmb3 added this pull request to the merge queue Aug 14, 2025
Merged via the queue into branch/v18 with commit fabda53 Aug 14, 2025
41 of 42 checks passed
@zmb3 zmb3 deleted the bot/backport-57822-branch/v18 branch August 14, 2025 22:15
@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