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

Allow different auth configurations for channels on the same host #550

Open
pavelzw opened this issue Mar 1, 2024 · 1 comment
Open
Labels
help wanted Extra attention is needed needs-design Needs discussion, investigation, or design

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Mar 1, 2024

Currently auth is per host.

{
  "my.conda.server": {
    "CondaToken": "***"
  }
}

In some cases you might want to use auth per channel. I know one example with artifactory.

Maybe we could do something like this

{
  "my.conda.server": {
    "CondaToken": "***"
  },
  "my.second.server": {
    "channel1": {
      "CondaToken": "***"
    },
    "channel2": {
      "CondaToken": "***"
    }
  }
}
@baszalmstra baszalmstra added needs-design Needs discussion, investigation, or design help wanted Extra attention is needed labels Mar 1, 2024
@baszalmstra
Copy link
Collaborator

Thanks, this definitely makes sense. We do need to come up with a design for this for the AuthenticationMiddleware. Alternatively we might also match not just on the host but also on part of the path.

e.g.

{
  "my.conda.server/channel1/*": {
    "CondaToken": "***"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed needs-design Needs discussion, investigation, or design
Projects
None yet
Development

No branches or pull requests

2 participants