Skip to content

Conversation

@lmktfy
Copy link
Member

@lmktfy lmktfy commented Nov 23, 2025

Add more text to explain how clients can authenticate to the Kubernetes API by presenting a peer certificate.

Also uses Ada Lovelace as the example user, rather than @jbeda. Countess Lovelace is no longer a data subject and so privacy legislation definitely won't apply.

See the preview vs original

Split out of PR #50364

/sig auth
/language en

@k8s-ci-robot k8s-ci-robot added sig/auth Categorizes an issue or PR as relevant to SIG Auth. language/en Issues or PRs related to English language labels Nov 23, 2025
@k8s-ci-robot k8s-ci-robot requested a review from deads2k November 23, 2025 15:42
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign urvashi0109 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from liggitt November 23, 2025 15:42
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 23, 2025
@netlify
Copy link

netlify bot commented Nov 23, 2025

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit f70ac87
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/692b471385bd6f000819eb4e
😎 Deploy Preview https://deploy-preview-53408--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@enj enj added this to SIG Auth Nov 24, 2025
@enj enj moved this to Needs Triage in SIG Auth Nov 24, 2025
@pmengelbert
Copy link

/assign @stlaz

@lmktfy lmktfy force-pushed the 20251123_improve_client_cert_authn_advice branch from 2ad6db0 to 19e3d64 Compare November 24, 2025 19:11
@lmktfy
Copy link
Member Author

lmktfy commented Nov 24, 2025

@aman4433 my feedback on your feedback is based on our reviewing checklist. I do appreciate it, but I also plan to skip a couple of the points you made.

@aman4433
Copy link
Contributor

@aman4433 my feedback on your feedback is based on our reviewing checklist. I do appreciate it, but I also plan to skip a couple of the points you made.

All good, @lmktfy! I get your point. Appreciate the feedback, and no problem skipping those bits.

@lmktfy lmktfy force-pushed the 20251123_improve_client_cert_authn_advice branch from 19e3d64 to 052fb8a Compare November 25, 2025 17:36
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 25, 2025
with uid set to "aaking1815", Kubernetes considers that the client's username is "Ada Lovelace";
Kubernetes ignores the `uid` attribute.

##### Group mapping {#x509-client-certificates-k8s-group}
Copy link
Member

Choose a reason for hiding this comment

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

Didn't you originally also include guide to map user UID? I think we would want all of username/group/uid mapping mentioned.

Copy link
Member Author

Choose a reason for hiding this comment

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

See line 171?

Copy link
Member

@stlaz stlaz Dec 1, 2025

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Looks like the feature was not properly documented in #50818 and this piece is now still missing 😐

Comment on lines +195 to +197
Kubernetes can use the same approach for node identity; nodes are clients of the Kubernetes API server
(also, although less relevant here, the API server is usually also a client of each node).
For example: a Node "server-1a-antartica42", with the domain name "server-1a-antartica42.cluster.example", could use a certificate issued to "CN=system:node:server-1a-antartica42,O=system:nodes". The node's username is then "system:node:server-1a-antartica42", and the node is a member of "system:authenticated" and "system:nodes".
Copy link
Member

Choose a reason for hiding this comment

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

This is now much better 👍

I wonder if we should mention anywhere that these node identities are typically used by kubelets to be extra explicit.

Copy link
Member Author

Choose a reason for hiding this comment

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

You want a bigger PR? I have lots more to cover; see #50364

The perfect is, often, the enemy of the good-enough-to-merge.

Copy link
Member

Choose a reason for hiding this comment

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

What I meant is really just a single sentence but it's not that important, really.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 29, 2025
The commit makes a minimal number of less related changes, to ensure that
the page still makes sense.

Co-authored-by: Standa Láznička <[email protected]>
@lmktfy lmktfy force-pushed the 20251123_improve_client_cert_authn_advice branch from e2dfd69 to f70ac87 Compare November 29, 2025 19:18
@lmktfy
Copy link
Member Author

lmktfy commented Dec 1, 2025

I'll try to combine this with the best of #51487

…but not yet. Marking this as draft until v1.35 has shipped.

@lmktfy lmktfy marked this pull request as draft December 1, 2025 22:54
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. language/en Issues or PRs related to English language sig/auth Categorizes an issue or PR as relevant to SIG Auth. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

5 participants