-
Notifications
You must be signed in to change notification settings - Fork 138
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
[FEATURE] Is there a way to change the authentication information in the headers when calling the predict API? #3208
Comments
Hi @10000-ki, thank you for posting this. Have you considered the alternative way to update the connector? You could automate this procedure if you really wanted to you just need the model id and connector id
Im trying to think in the long term how an enhancement like this would unfold for example typically connector credentials are stored in a index (I think!) so maybe passing them via a predict would be a security concern? |
Actually this is a better alternative instead of un-deploying you can do it like how it states here https://opensearch.org/docs/latest/ml-commons-plugin/remote-models/connectors/#updating-connector-credentials |
@b4sjoo , I think we have some limitation for updating connector credential. Can you clarify ? |
oh thx!!! i will try |
@10000-ki Yeah so currently our stand-alone connector does not support update on-the-fly, right now the work around is to use the inner connector in above link. We have the plan to support the stand-alone connector in the future, but we haven't come into a detailed design yet. |
@10000-ki Does that unblock your use-case? |
No, the API is not functioning properly. The credentials are not updated correctly. It seems there might be an issue with the API, i think we need to review the code. |
@b4sjoo could you please check? |
Is your feature request related to a problem?
Currently, we are configuring it to include authentication information when creating a custom ML connector.
The issue is that this authentication token has an expiration period, so it needs to be renewed periodically.
What solution would you like?
Is there a way to pass the auth token value again at the point of calling the predict API or the custom connector API?
What alternatives have you considered?
A clear and concise description of any alternative solutions or features you've considered.
Do you have any additional context?
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: