Skip to content
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

Resolve issues related to custom index URL and environment variables #8335

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

How can I get the name from the pyproject.toml file.

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