-
Notifications
You must be signed in to change notification settings - Fork 141
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
[BUG] externally hosted model can not have a private ip address #2142
Comments
Need to verify with security guardians. |
@JohnUiterwyk Thank you for raising this issue. I have removed the bug label, as blocking any private IP addresses was a deliberate choice made after discussions with our security engineers. However, since there is now a request from the community, we will consult with our security engineers to explore how we can accommodate this for our community. |
Thanks @dhrubo-os . My motivation raising the issue to enable private ip addresses is specifically driven by security and data control considerations. |
hi @dhrubo-os, i was wondering if there is any progress on this. i would love to see this included in 2.13 as it looks like a very small change; This private ip restriction is currently a blocker in certain enterprise environments for using some of the amazing capabilities available via the ml-commons open search plugin. Thanks for your effort and attention on this. |
Hi @JohnUiterwyk , sorry for the late response. I think 2.13 will be bit tight as we are still in conversation with the security team. But we can definitely target for 2.14. Thanks. |
thanks @dhrubo-os, great to hear there is progress on this! Also just wanted to say thanks for all you and your teams hard work. This project is incredibly valuable and having a huge impact! |
Did this get updated yet? I was researching this error for a while (while trying to configure a local llm connector):
and finally tied that response with this issue. Thanks, |
@whittssg The private local ip blocked now for security concern (to block creating connector to bypass security layer to call your local service directly) https://github.com/opensearch-project/ml-commons/blob/main/ml-algorithms/src/main/java/org/opensearch/ml/engine/httpclient/MLHttpClientFactory.java#L76 Will consult with security guys first. |
So how can we communicate with self hosted embedding inference endpoints? Why can't I communicate within my docker network freely? Is there a workaround for now? Why does opensearch take on the responsibility to decide what is and isnt secure here? |
Replied on another Github issue #2126 (comment)
|
I am really interested what the reason is that an externally hosted LLM should be more secure than a self-hosted one reachable over a private IP. |
Has it been solved and is it part of 2.14.? Even if you would like to protect from using private, the implementation has too many flaws. There are better ways to solve this. |
It is planned for 2.15 |
Let me know how you want it to be solved and we open a PR. |
PR #2534 |
I still see error in 2.15 { |
Did you set the new opensearch setting 'connector.private_ip_enabled: true' ? With this it works in my setting. |
Seems this setting not allowed on AWS OpenSearch. @ylwu-amzn Can you confirm ? This blocks us |
@holdenma , sorry that this setting not supported on AWS. Suggest to deploy your model somewhere else like Sagemaker, EC2 etc. You can create load balancer and use that URL in connector. |
I have use case as well that involves using an "externally hosted model" that is self hosted and located within a private network (or more simply another use cases is if i'm using an api gateway that has a private ip address ), however it seems there is a hard coded requirement that externally hosted models can not have a private ip address:
ml-commons/ml-algorithms/src/main/java/org/opensearch/ml/engine/httpclient/MLHttpClientFactory.java
Lines 77 to 84 in 0903d5d
This seems like an arbitrary restriction, which i think should either be removed or only used when a config flag is provided.
The text was updated successfully, but these errors were encountered: