-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I'm trying to use anaconda-auth to authenticate conda to a custom Anaconda Cloud domain (stage.anaconda.com) to access private channels, but I'm encountering 403 authentication errors despite following the configuration steps.
Expected Behavior
I should be able to:
- Configure
anaconda-authto use a custom domain (e.g.,stage.anaconda.com) - Login using
anaconda auth login - Use conda to install packages from authenticated channels on that domain without needing to manually pass tokens via environment variables
Current Behavior
Even after configuration and authentication, conda cannot access the authenticated channel and returns 403 errors.
Steps to Reproduce
- Configure
~/.anaconda/config.toml:
default_site = "cloud-staging"
[sites."cloud-staging"]
domain = "stage.anaconda.com"- Configure
~/.condarc:
channels:
- https://repo-latest.dev-us-east-1.anaconda.cloud/repo/wheels-test-
Run
anaconda auth login(successfully authenticates) -
Attempt to create an environment with a package from the authenticated channel:
ANACONDA_AUTH_DOMAIN=stage.anaconda.com CONDA_TOKEN=$(anaconda auth api-key) conda create -c https://repo-latest.dev-us-east-1.anaconda.cloud/repo/wheels-test/ fastapi -p /tmp/wheelsResult: 403 authentication errors
Issues
- The authentication setup is overly complex and requires manually passing both
ANACONDA_AUTH_DOMAINandCONDA_TOKENenvironment variables - Even with these environment variables set, authentication still fails
- The
anaconda auth logincommand doesn't appear to configure conda to automatically use the credentials for the configured domain - There's no clear integration between
anaconda-authconfiguration and conda's channel authentication
Expected Workflow
The ideal workflow should be:
- Configure the auth domain in
~/.anaconda/config.toml - Run
anaconda auth login - Add authenticated channels to
~/.condarc - Run conda commands normally - authentication should "just work" without manual token passing
Environment
- Domain:
stage.anaconda.com - Channel:
https://repo-latest.dev-us-east-1.anaconda.cloud/repo/wheels-test/
Note:
There was a discussion about this in Slack, and @mattkram did debugging on the debug/wheels branch (https://github.com/anaconda/anaconda-auth/tree/debug/wheels), thanks Matt!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels