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

HTTP Basic Auth not working with pixi #989

Closed
pavelzw opened this issue Mar 15, 2024 · 1 comment
Closed

HTTP Basic Auth not working with pixi #989

pavelzw opened this issue Mar 15, 2024 · 1 comment

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Mar 15, 2024

It seems to me that HTTP basic auth is not working in pixi.

Unfortunately, I don't have access to an artifactory / basic auth instance outside of corporate infrastructure so I could only reproduce this issue inside of corporate infrastructure.

Following setup:

{
  "my.quetz.instance":
    {"CondaToken":"***"},
  "repo.prefix.dev":
    {"BearerToken":"***"},
  "my.artifactory":
    {"BasicHTTP":
      {"username":"my-user","password":"***"}
    }
}

These commands work:

rattler-build build -r recipe/recipe.yaml -c https://my.artifactory/artifactory/conda-forge
pixi search -c https://my.quetz.instance/get/custom-channel private-package
pixi search -c https://repo.prefix.dev/setup-pixi-test private-package

This command doesn't work:

pixi search -c https://my.artifactory/artifactory/conda-forge polarify

So rattler-build is able to use the basic auth credentials from .rattler/credentials.json but pixi is not capable of doing so.
The credentials.json is read from pixi since otherwise the other pixi search commands would fail.
pixi search -c https://my.artifactory/artifactory/conda-forge polarify fails with the following error message:

Having an end-to-end test for HTTP basic auth, quetz api keys and repo.prefix.dev would probably help with debugging this issue.
image

@pavelzw
Copy link
Contributor Author

pavelzw commented Mar 19, 2024

Fixed by #994

@pavelzw pavelzw closed this as completed Mar 19, 2024
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

No branches or pull requests

1 participant