3 ms·
It is not clear to me what you are reading in the proposal. There is no need for DNS and SSL hosting. Packages are put as tarball onto the Internet. Then in the
by hannesm 11y ago
It is not clear to me what you are reading in the proposal. There is no need for DNS and SSL hosting. Packages are put as tarball onto the Internet. Then in the opam-repository the metadata, including a signature over the tarball. The tarball is fetched (over any insecure connection) and its signature is verified. The naming and trust delegation happens within opam and the opam repository.
How is an update supposed to work if the connection to the timestamp is prevented/intercepted? How if the connection to the repository is prevented/intercepted? Using a single connection leads to less potential failure modes.
- justinsb 11y agoI understand that; I am trying to explain one way that a CA-based system might work in response to your statement that the CA system was not applicable. I believe I understand the basics of the TUF system, though the mechanics of your update mechanism are still not entirely clear to me. I simply haven't seen a comparison to the (more naive?) alternatives like the one I am straw-man proposing. I think that TUF and an https based system would both warn if an adversary or adverse conditions was blocking connectivity to the "root file". I don't think either can do anything more than warn. TUF makes it easier to mirror the root file (because it doesn't require HTTPS), so TUF has the advantage there. But I think an attacker could probably as easily (more easily?) block or intercept every TUF mirror (over HTTP) as they could block a small number of HTTPS update servers, so I'm not sure this is a huge advantage in real life. I believe the same problems apply to delivery of the root file as to subsequent files; if you are concerned about malicious attackers interfering with file delivery it seems you should prefer HTTPS. Both TUF and HTTPS-for-root are basically agnostic to the delivery mechanism for subsequent files, I believe, so I don't see this as an advantage for either: for both an attacker can trivially block individual files over HTTP; if you use HTTPS as the transport it is still trivial to block connectivity altogether, and neither approach offers a solution to this no-connectivity attack.
- edwintorok 11y agoopam could show a warning if it didn't have an updated signed timestamp for a certain amount of time (1 day, 7 days). We had a similar warning for ClamAV when no anti-virus signature database updates were seen for a certain amount of time, usually indicating DNS problems or bad mirror selection.