Skip to content

Conversation

@Aditya-PS-05
Copy link
Contributor

closes #8324

Summary

I guess the from_env function from the credentials was not set in the middleware. So, used in middleware.

fn fetch_env_credentials(&self, url: &Url) -> Option<Credentials> {
let host = url.host_str()?;
let index_name = host.replace('.', "_").to_uppercase();
Credentials::from_env(&index_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is quite right -- the index name is not necessarily the same as the URL host, it's a user-provided string.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charliermarsh ,
Can you help me by telling me the position of getting index_name by the url?

@charliermarsh
Copy link
Member

I think this was fixed separately by #8345 -- thanks for the PR, sorry for the overlap!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authentication error to Google Artifactory with custom index and env variables

2 participants