-
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
Detect old Kibana UI on serverless server #162332
Comments
Pinging @elastic/kibana-core (Team:Core) |
Between the two listed options, I'd rather go with
Yeah, but I don't think it matters much in the end. That header is an "internal" header that in theory is only used for kibana UI<->server communication, so it's value and format can probably be considered an implementation detail ihmo. Note that an alternative would be to keep |
I was going to suggest this as well. We now have the build hash included in the status API (in both serverless and self-managed iirc), so I could see a |
Related to #163671 |
Close #162332 ### List - [x] Add E2E test --------- Co-authored-by: Kibana Machine <[email protected]>
…ic#163577) Close elastic#162332 ### List - [x] Add E2E test --------- Co-authored-by: Kibana Machine <[email protected]>
Close #162332 ### List - [x] Add E2E test --------- Co-authored-by: Kibana Machine <[email protected]>
Since our thinking has evolved on the original issue here are my thoughts on technical details of an approach to just detecting old browsers/UIs on Kibana server.
On serverless we will be deploying versions "between" stack versions but we only communicate the stack version today (i.e. 8.9.0) via the
kbn-version
header.Proposal for detecting old UIs
We modify the version being sent via
kbn-version
to something that can represent a new Kibana build (as opposed to just a new stack version). Top of my head I can imagine two approaches:kbn-version
value with a build number: something like8.9.0+123abcdefg
and keep it SemVer compliant.kbn-version
to something entirely new like a build hash123abcdefg
, non SemVer compliantI prefer (1), I also think it will be easier to implement as it remains largely compatible with how this value is used today, but I can also see a case for (2) in that "stack version" is not really a thing on serverless anymore.
Note: we have a way to get a unique build number for Kibana, this will be a number like 64910 not an actual commit SHA. In development we just set this to Node.js' max int. See:
https://github.com/elastic/kibana/blob/a39531edce1c59e18c1f5b77e62cf77ac5e43ef2/src/dev/build/lib/get_build_number.ts
Open to other ideas of course!
The text was updated successfully, but these errors were encountered: