website icon indicating copy to clipboard operation
website copied to clipboard

Kubernetes docs search returns HTTP 403 for queries starting with env followed by a space

Open eldarush opened this issue 2 weeks ago • 4 comments

This is a Bug Report

Problem:

The Kubernetes documentation search returns HTTP 403 for the tested queries that start with the word env followed by a space and another word. The search results page never loads.

Steps to reproduce:

  1. Open https://kubernetes.io/search/?q=env.
  2. In the “Search this site” field, type env variable and press Enter.
  3. The browser opens https://kubernetes.io/search/?q=env%20variable and displays “Access to kubernetes.io was denied” with “HTTP ERROR 403”.

Expected behavior: The search results page loads for env variable and shows relevant documentation or a normal no-results message.

Proposed Solution:

Investigate why requests to /search/ are rejected for these ordinary documentation search terms. Allow the affected queries to reach the search page and verify that the examples below load normally.

Page to Update:

https://kubernetes.io/search/

Additional Information:

Reproduced in a Chromium browser on November 19, 2026. The first failing query was submitted through the search field. The remaining cases were checked by opening the corresponding search URLs in the same browser.

Query Observed result
env variable HTTP 403
env vars HTTP 403
env configmap HTTP 403
env Search results loaded
environment variable Search results loaded

Related: #59160 reports a 403 for searches containing .forwarding. The cause of the env query failures has yet to be verified.

eldarush avatar Nov 19 '26 13:11 eldarush

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

kubernetes-prow[bot] avatar Nov 19 '26 13:11 kubernetes-prow[bot]

/assign

bismayam avatar Nov 20 '26 15:11 bismayam

https://github.com/kubernetes/website/pull/59220

bismayam avatar Nov 21 '26 05:11 bismayam

I reproduced a related WAF false positive on Nov 24. Both /search/?q=base64 and /search/?q=BASE64 return an empty HTTP 403 with Netlify WAF rule 932260. The pod and secret queries return HTTP 200. The Netlify request ID for base64 is 01M864JW2E7JX0YVDRG2S541R9.

U-S-jun avatar Nov 24 '26 06:11 U-S-jun