feat: setting to override trusted sites list#1819
Conversation
57a0fa6 to
6f5a74c
Compare
|
Ready for review @mosteo. |
mosteo
left a comment
There was a problem hiding this comment.
A minor refactor and a general comment:
I find using ' ' or whitespace in general to mean any domain is a bit hackish and won't be nice when printing settings with alr settings. What do you think about using some impossible domain, like '*' or "..." instead? (Probably the latter to avoid interactions with shell expansions at the time of setting.)
Agreed. |
|
Merged, thanks. |
|
This feature needs to be documented for private indexes. I'm getting an error because dev.azure.com isn't a recognized one. |
Closes #814.
The
alr publishandalr index --checkcommands currently require that Git origins use a URL with a host found in a hard-coded list of trusted sites, motivated by concerns regarding SHA1 hash collisions. Those using their own hosting arrangements (with private indexes) need to be able to configure this list.This PR makes the list configurable, except when using
alr publishwithout the--for-private-indexswitch.PR creation checklist
doc/user-changes.mdhas been updated, if applicable.