Skip to content

Repair links to the removed authentication-resources API reference pages - #57414

Open
abhinav-phi wants to merge 1 commit into
kubernetes:mainfrom
abhinav-phi:fix-auth-api-reference-links
Open

Repair links to the removed authentication-resources API reference pages#57414
abhinav-phi wants to merge 1 commit into
kubernetes:mainfrom
abhinav-phi:fix-auth-api-reference-links

Conversation

@abhinav-phi

Copy link
Copy Markdown

What type of PR is this?

/kind bug
/kind cleanup

What this PR does / why we need it

As of the v1.36 API reference migration (to the gen-apidocs markdown backend), the legacy authentication-resources URLs were removed and the generator did not emit the authentication/authorization group pages. Sixteen links across ten English docs pages still pointed at the dead URLs — for example, service-accounts-admin #tokenrequest-api links TokenRequest to a page that now redirects into the storage CSI docs (#57313).

This PR repoints those links at the pages that document the same API today:

Old target (authentication-resources/...) New target
token-review-v1/ /docs/reference/kubernetes-api/definitions/token-review-v1-authentication/
self-subject-review-v1/ /docs/reference/kubernetes-api/definitions/self-subject-review-v1-authentication/
service-account-v1/ /docs/reference/kubernetes-api/core/service-account-v1/
certificate-signing-request-v1/ (+ anchor variant) /docs/reference/kubernetes-api/certificates/certificate-signing-request-v1/
token-request-v1/ TokenRequest API usage docs: /docs/reference/access-authn-authz/service-accounts-admin/#bound-service-account-token-volume

For the three TokenRequest mentions inside service-accounts-admin.md itself (where linking to that same page's anchor would be self-referential), the links become inline code spans. A mention of the historical 1.22 blog post is left untouched.

There is no TokenRequest definitions page on main today (see the note below), which is why TokenRequest links go to the canonical usage documentation instead.

Which issue(s) this PR fixes

Fixes #57313

Special notes for your reviewer

  • The root cause (the generator skipping create-only resources such as TokenRequest, TokenReview, SelfSubjectReview and the SubjectAccessReview family) is fixed upstream in gen-apidocs: include create-only resources in the generated ToC kubernetes-sigs/reference-docs#473. Once that lands and the API reference is regenerated, the missing authentication/ and authorization/ group directories return, and these links can be upgraded to the new per-resource pages if desired.
  • Follow-up to the closed Restore authentication API reference pages #57362: as discussed there, the pages themselves must come from the upstream generator rather than being hand-restored; this PR only repairs the inbound links so readers are not stranded in the meantime.
  • Link count check: grep -rn "authentication-resources" content/en/docs --include="*.md" returns 0 after this PR (was 16).

Does this PR introduce a user-facing change?

NONE

The v1.36 switch of the Kubernetes API reference to the gen-apidocs
markdown backend did not emit pages for create-only resources, so the
authentication.k8s.io and authorization.k8s.io group pages disappeared
along with the legacy authentication-resources URLs (kubernetes/website
kubernetes#57313). Sixteen links across ten English docs pages still pointed at
those dead URLs.

Repoint the links at the pages that document the same API today:

- TokenReview and SelfSubjectReview -> their definitions pages under
  /docs/reference/kubernetes-api/definitions/
- ServiceAccount -> /docs/reference/kubernetes-api/core/service-account-v1/
- CertificateSigningRequest -> /docs/reference/kubernetes-api/certificates/certificate-signing-request-v1/
- TokenRequest -> the TokenRequest API usage documentation
  (service-accounts-admin bound-token sections); the remaining mentions
  that only named the API inline now use a code span instead of a link
- A historical blog post keeps its original text unchanged (it describes
  the state of that release)

Signed-off-by: abhinav-phi <alpha9coder@gmail.com>
@kubernetes-prow kubernetes-prow Bot added kind/bug Categorizes issue or PR as related to a bug. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. 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. language/en Issues or PRs related to English language labels Sep 4, 2026
@kubernetes-prow
kubernetes-prow Bot requested a review from deads2k September 4, 2026 15:02
@kubernetes-prow

Copy link
Copy Markdown
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 natalisucks for approval. For more information see the Code Review Process.

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

Details 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

@kubernetes-prow
kubernetes-prow Bot requested a review from enj September 4, 2026 15:02
@netlify

netlify Bot commented Sep 4, 2026

Copy link
Copy Markdown

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit f5f98d4
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/6a9add628d0c4100080793cd
😎 Deploy Preview https://deploy-preview-57414--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.

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. kind/bug Categorizes issue or PR as related to a bug. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. language/en Issues or PRs related to English language size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authentication v1 API reference has disappeared from navigation as of 1.36

1 participant