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

fix wildcard expansion for stored credentials of domains #442

Merged
merged 4 commits into from
Dec 17, 2023

Conversation

0xbe7a
Copy link
Contributor

@0xbe7a 0xbe7a commented Dec 16, 2023

While testing the auth-file feature for rattler-build (prefix-dev/rattler-build#413) I noticed that the wildcard extension for domains does not work correctly:

https://repo.prefix.dev was matched with repo.prefix.dev and *.repo.prefix.dev, but not with *.prefix.dev. On closer inspection, it looks like the function never worked properly: See #252

This PR fixes the wildcard handling and adds a unit test for it.

Copy link
Collaborator

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I left some small notes but the idea is great!

@baszalmstra
Copy link
Collaborator

Thanks @0xbe7a !

@baszalmstra baszalmstra merged commit 976b049 into conda:main Dec 17, 2023
13 checks passed
@0xbe7a 0xbe7a deleted the fix-wildcard branch December 17, 2023 08:48
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.

2 participants