News for hackers. Stuff that matters.
Re:Tofu: Do You Check? by eichin on Friday September 22, 2023 @05:01PM (#37617741)
We actually ship a bunch of vetted pubkeys in our developer tools package (in ssh_known_hosts2) . We tried to get a little bit out of the loop and tell our devs that they could use the instructions at https://bitbucket.org/blog/ssh-host-key-changes (confirm it doesn't cert fail, then read the curl https://bitbucket.org/site/ssh bit and see that it also checks certs, so we can leverage "trusted https cert" to "trusted ssh key"... much better than TOFU...

Didn't work, because there's no trailing newline on the output of site/ssh. So even if it works, it corrupts the next addition.

Re:Tofu: Do You Check? by js2 on Friday September 22, 2023 @09:09PM (#37619730)
Change from this:

  curl https://bitbucket.org/site/ssh >> ~/.ssh/known_hosts
To this:

  (curl https://bitbucket.org/site/ssh; echo) >> ~/.ssh/known_hosts
Re:Tofu: Do You Check? by eichin on Tuesday September 26, 2023 @02:47PM (#37663987)
You may have missed the part about "telling people they can trust the vendor instructions"...
Re:Tofu: Do You Check? by ahoka on Saturday September 23, 2023 @02:25AM (#37621024)
Umm, why don’t you just use git over HTTPS?
Re:Tofu: Do You Check? by eichin on Tuesday September 26, 2023 @02:46PM (#37663981)
Much worse performance (which might have been idiosyncratic, or might have been improved in recent years, but repeated authentication vs. single stream design hasn't changed.)
Re:Tofu: Do You Check? by tjk_ on Monday September 25, 2023 @09:59AM (#37643910)
Thanks for pointing this out, I'll put in a PR to fix that up today.
Re:Tofu: Do You Check? by eichin on Tuesday September 26, 2023 @02:48PM (#37664004)
cool, thanks! I'm sort of surprised it didn't get attention via some other path, but then I never got around to filling a ticket myself :-)
Re:Tofu: Do You Check? by tjk_ on Wednesday September 27, 2023 @10:58AM (#37675575)
Optimistically, I like to think that people were just not _quite_ bothered enough to file a bug report. The pessimist in me thinks that people went back to blindly typing "yes" when prompted. Either way, thanks for the feedback, the fix should be live!
Re:Tofu: Do You Check? by eichin on Wednesday September 27, 2023 @07:54PM (#37683240)
Confirmed, with curl. Thanks for closing the loop!