-
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
[Console] Legacy Config Deprecations in 7.10 #68497
Comments
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
Pinging @elastic/kibana-platform (Team:Platform) |
Relates to #65028 |
Moved back to There are two slightly different needs here:
Two options then, the quick one and the good one. The quick one
Definitely the easiest solution (or temporary solution). Definitely not the best one in term of security or isolation, as any plugin can access the whole ES configuration, but realistically, this was already the case in legacy, so it's not a regression, just a non-improvement. The good one
No need to argument much. Compared to previous option, the ES config (well, except from Only restraining factor is the timing here. We need to get this done for 7.10, and I'm not sure we really have the capacity to directly implement the ES proxy in core, so I feel like doing 1/ now and 2/ later might be the most viable option. @restrry @joshdover wdyt? |
Totally agree 🚢 |
Hey @pgayvallet , thanks for working on this. Just to clarify:
Also happy to assist working on moving the console proxy to core when time comes, let me know! |
Answer for Pierre while he is out:
I believe so, yes. From what I can tell the only purpose of the legacy console plugin is to expose the Elasticsearch URL to the frontend. #73055 should make this possible in the new platform.
Yes, we're aiming to remove all legacy plugins in 7.10. Once #73055 is in, it would be very helpful for us if you all could tackle the last bit of work of removing the legacy console plugin. |
Thanks @joshdover ! |
@jloleysens just got back, sorry for the delay. Actively working on #73055 right now. Yea, once #73055 is merged, you will be able to remove the legacy 'bridge' you were using to access the config from the legacy plugin. The changes should also be trivial, as we will just be exposing Only minor modification I can see is that in your legacy |
FYI, #73055 has just been merged, you should be good to go. |
Great, thanks for the update @pgayvallet , I'll be sure to get this in for 7.10 |
Currently, Console uses the following config to act as a proxy between Kibana and ES:
kibana/src/plugins/console/server/types.ts
Line 34 in 09eaa1c
The
hosts
,customHeaders
andssl
settings all come from internal platform config we get through the remaining Console legacy plugin code: https://github.com/elastic/kibana/blob/master/src/legacy/core_plugins/console_legacy/index.ts.In 7.10 this will no longer be running and Console will not be able to act as a proxy anymore in many environments.
It would be great if the proxy functionality that Console has implemented became part of the platform so that internal config can remain internal (except for the
hosts
value that we still send through to the client so that copy as curl can work).A temporary alternative can be to just expose the required config through the platform somehow.
CC @restrry @flash1293
The text was updated successfully, but these errors were encountered: