-
Notifications
You must be signed in to change notification settings - Fork 170
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
Support for URLs with basic authentication #892
base: master
Are you sure you want to change the base?
Conversation
This looks exactly as I had it in mind, thanks @cottsay! I was thinking of utilizing the gnome-keyring for storing the credentials on a per-user basis, what do you think? If you think it would be a good idea, I can also give it a shot at implementing it! |
I have mixed feelings about the utility of this change as well, but I also believe it is a simple improvement. Another reason I'm not super happy with this change is that the password is printed to stdout whenever an update is performed. I looked into printing the "sanitized" URL instead, but the best I could do was to repeat the same process in another spot, so it felt forced. Maybe that can be addressed in a follow-up change. There are some tricks you can utilize to make the passwords less universally readable. You could forego the global rosdep sources list and protect the sources list that contains secrets under your home directory:
After that, export the |
I'm very hesitant to take an unconditional dependency on any gnome libraries just to implement that feature, but I agree that it would be ideal. Maybe there is a lightweight library that can do it opportunistically, but keep in mind that we're still supporting Python 2 in rosdep and many newer libraries don't support that anymore. |
I will give it a shot in the next days and see what I can come up with, I would also prefer a cleaner and more streamlined solution, but not at the expense of backwards compatibility. |
Codecov ReportBase: 74.83% // Head: 74.89% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #892 +/- ##
==========================================
+ Coverage 74.83% 74.89% +0.05%
==========================================
Files 44 44
Lines 3362 3374 +12
==========================================
+ Hits 2516 2527 +11
- Misses 846 847 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This change adds support for basic HTTP authentication values in URLs.