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

Enable persistent configuration of authenticated index URL #651

Closed
charliermarsh opened this issue Dec 14, 2023 · 1 comment
Closed

Enable persistent configuration of authenticated index URL #651

charliermarsh opened this issue Dec 14, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@charliermarsh
Copy link
Member

For users of AWS CodeArtifact and other similar services, we need a way for users to provide and persist authentication credentials that lives outside of the project.

You can see an example in CodeArtifact's pip documentation, where they suggest:

pip config set site.index-url https://aws:$CODEARTIFACT_AUTH_TOKEN@my_domain-111122223333.d.codeartifact.region.amazonaws.com/pypi/my_repo/simple/

Similarly, Poetry users tend to do something like:

  1. Retrieve an Authorization Token (https://docs.aws.amazon.com/cli/latest/reference/codeartifact/get-authorization-token.html).
  2. Add a repository URL to Poetry (https://python-poetry.org/docs/configuration/#repositoriesnameurl)
  3. Configure that repository to use an authorization token (https://python-poetry.org/docs/configuration/#http-basicnameusernamepassword) via, e.g., poetry config http-basic.$CODE_ARTIFACT_DOMAIN aws $CODE_ARTIFACT_AUTH_TOKEN.
@charliermarsh
Copy link
Member Author

You can now put this in your user uv.toml which seems ok. It'd be nice to have a CLI for configuring it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants