-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Update rewriteBasePath documentation #114562
Comments
Pinging @elastic/kibana-core (Team:Core) |
I don't love removing settings like this, forcing users to change proxy configs is likely to cause some headaches and issues. It also feels like the only "tech debt" here is a config option that skips code we're going to already planning to maintain (the rewrite code). Just kind of wish we left this around for as long as we can stand, or until usage data indicates it's really unnecessary. |
I hear you, for 8.0, we're keeping the deprecation but changing the level from |
Just to be clear, the docs currently say:
In fact, though, the default is |
Additionally, this is what the docs say about
The if configured part seems wrong - when I don't set
this is what I have in my
Maybe this is an issue only with a Docker setup, though. |
After discussing this we think the low maintenance cost means that it's not worth potentially impacting any customers so we will just keep this as is. We should however review our documentation to ensure that it's up to date/accurate. |
From the docs:
@rudolf |
) fix elastic#114562   --------- Co-authored-by: Lisa Cawley <lcawley@elastic.co> (cherry picked from commit 7839db9)
Update 18 July 2024:
rewriteBasePath
was introduced and a deprecation warning was immediately introduced at the same time.The original PR describes why this was needed quite well but the relevant parts are:
“ server.basePath expects the proxy sending the request to rewrite the request and strip the basePath” (this was tripping folks up).
We added
server.rewriteBasePath
to tell Kibana if it should remove the basePath from requests it receives. The setting was going to be enabled by default in 7.0 (which it wasn't) and the deprecation was supposed to be removed in the 7 series (which it also wasn't)..kibana.yml
still hasserver.rewriteBasePath: false
with the same info added in the original PR andthe deprecation message itself hasn’t changed. It's unclear if the setting change was an oversight or if there's a specific reason to not have followed through on the plans.
We should decide on what we want to do here: flip the default to
true
and remove the deprecation or keep it as it is.While there isn't much overhead in keeping this deprecation around in the immediate future (in #103915 we changed the deprecation level to
warning
) , we should come up with a plan on how we could approach it.Changing the default could also have serious consequences and we need to check:
packages/kbn-cli-dev-mode/src/base_path_proxy_server.ts
) cc @elastic/kibana-operationsrewriteBasePath
from the defaultThe text was updated successfully, but these errors were encountered: