Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consolidate (un)marshalling of keys to/from PEM format #43260

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

nklaassen
Copy link
Contributor

@nklaassen nklaassen commented Jun 19, 2024

This commit consolidates various functions we have for marshalling private and public keys to and from PEM-encoded DER, mostly by replacing functions from lib/utils and lib/tlsca with equivalents in api/utils/keys.

The new functions also support ECDSA and Ed25519 keys, which is necessary for the implementation of RFD 136.

This doesn't make any functional changes, except that new key algorithms will be supported when we start using them.

@nklaassen nklaassen added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 labels Jun 19, 2024
@nklaassen nklaassen force-pushed the nklaassen/consolidate-key-marshal branch 2 times, most recently from f9f72d6 to 0cb7701 Compare June 20, 2024 01:07
api/utils/keys/publickey.go Show resolved Hide resolved
Copy link
Contributor

@timothyb89 timothyb89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, aside from the missing license header

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from atburke June 21, 2024 18:10
@nklaassen nklaassen enabled auto-merge June 21, 2024 18:11
This commit consolidates various functions we have for marshalling
private and public keys to and from the PEM format, mostly by replacing
functions from lib/utils and lib/tlsca with equivalents in api/utils/keys.

The new functions also support ECDSA and Ed25519 keys, which is
necessary for the implementation of RFD136.
@nklaassen nklaassen force-pushed the nklaassen/consolidate-key-marshal branch from 2f67100 to d9a94f7 Compare June 21, 2024 19:13
@nklaassen nklaassen added this pull request to the merge queue Jun 21, 2024
Merged via the queue into master with commit bcb1699 Jun 21, 2024
38 checks passed
@nklaassen nklaassen deleted the nklaassen/consolidate-key-marshal branch June 21, 2024 19:51
@public-teleport-github-review-bot

@nklaassen See the table below for backport results.

Branch Result
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v16 kubernetes-access machine-id no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants