feat(connectors): fail fast when target uses sudo-rs#1876
Conversation
|
This should not close #1499, and I'd rather not see this released because it will break things worse for me. (I currently have things working with sudo-rs and a monekypatch.) See that issue for details. Sorry about not getting this information to you earlier. |
|
Updated the branch. It now:
@0cjs if you can pull this branch and test on your Ubuntu 26.04/26.10 hosts, that would confirm the fix in a real environment. |
|
Unfortunately we've hit the last day of the week and I and my co-workers don't have time to do this today. We'll try for next week, but I'd suggest in the long term you spin up container hosts for testing these kinds of things. We've found that to be very helpful, though I'm not in a position to release the code for that any time soon, unfortunately. (Though thank you for reminding me; I now may have an idea why our container host didn't catch this when we tried it with Ubuntu 26.04.) |
Closes #1499 (in a way)...
Detects when the target host uses
sudo-rsinstead of traditional sudo by runningsudo --versionon the first use of_sudo. Ifsudo-rsis detected, pyinfra fails fast with a clear error message rather than failing later with a cryptic authentication error.host.connector_data.