F-Droid Devs

195 Members
#fdroid-dev F-Droid development discussion only | Use #fdroid:f-droid.org for general, app- and repo-related matters | Meetings: https://gitlab.com/fdroid/wiki/-/wikis/Weekly-Office-Hours | This channel is publicly logged at https://matrix.f-droid.org/alias/%23fdroid-dev:f-droid.org37 Servers

Load older messages


SenderMessageTime
15 Jan 2022
@cdesai:matrix.orgcde

I came across https://theupdateframework.io/

The Update Framework (TUF) helps developers maintain the security of software update systems, providing protection even against attackers that compromise the repository or signing keys.

03:42:13
@cdesai:matrix.orgcdeThe entire framework might be too much for us, but I was going through https://theupdateframework.io/security/ - and it seemed useful03:43:01
@cdesai:matrix.orgcdehttps://wiki.laptop.org/go/Canonical_JSON03:45:30
@cdesai:matrix.orgcde

https://theupdateframework.io/metadata/

This is really good

The timestamp.json metadata file lists the hashes and size of the snapshot.json file. This is the first and potentially only file that needs to be downloaded when clients search for updates. It is frequently re-signed, and has a short expiration date, thus allowing clients to quickly detect if they are being prevented from obtaining the most recent metadata. An online key is generally used to automatically re-sign this file at regular intervals.

03:57:14
16 Jan 2022
@_oftc_mimi89999:matrix.orgmimi89999 left the room.05:34:24
@_oftc_mimi89999:matrix.orgmimi89999 joined the room.05:34:47
@SylvieLorxu:matrix.orgSylviaDoes anyone speak French? Someone just made 4 topics on the forum and I think they just don't really understand how to use a forum but it's chaotic :P22:06:15
@_oftc_Licaon_Kter[xmpp]:matrix.orgLicaon_Kter[xmpp] Online translators don't help? 22:29:25
@SylvieLorxu:matrix.orgSylviaWell they helped shape the conclusion I got to22:44:05
17 Jan 2022
@eighthave:matrix.org_hc
In reply to @cdesai:matrix.org

https://theupdateframework.io/metadata/

This is really good

The timestamp.json metadata file lists the hashes and size of the snapshot.json file. This is the first and potentially only file that needs to be downloaded when clients search for updates. It is frequently re-signed, and has a short expiration date, thus allowing clients to quickly detect if they are being prevented from obtaining the most recent metadata. An online key is generally used to automatically re-sign this file at regular intervals.

The Update Framework analysis papers were very helpful in the 2016 bazaar2 round of work, and writing up the security model. I can recommend them. Their software would be good to use if starting a project from scratch, but it is poorly suited for use in running projects because it has strong opinions about architecture.
07:31:51
@eighthave:matrix.org_hcalso, I've meet with them a few times over the years, they are doing interesting stuff with reproducible builds, and follow F-Droid as well07:32:27
@cdesai:matrix.orgcde
In reply to @eighthave:matrix.org
The Update Framework analysis papers were very helpful in the 2016 bazaar2 round of work, and writing up the security model. I can recommend them. Their software would be good to use if starting a project from scratch, but it is poorly suited for use in running projects because it has strong opinions about architecture.
agree about the from scratch bit - that's why I linked to certain pages specifically, as general practices to follow, and copy if it might fit. The timestamp.json looks quite similar to the 'list of diffs' file being talked about - and also the idea I mentioned about having the client only check a tiny file all the time.
12:56:06
@cdesai:matrix.orgcde
In reply to @cdesai:matrix.org

something simple like

if (firstRun && noIndex)
    minimalIndex
else
   sameAsBefore

could work

jochensp: I tried to look a bit at this over the weekend and I don't think it's going to be trivial for the client :(
Won't be too much work but I wasn't able to do a quick patch either.
12:56:53
@grote:matrix.orggroteI'd say we do the full v2 index first and if there's time, we can still make the client handle a reduced version.13:08:12
@eighthave:matrix.org_hc I agree with grote 13:20:09
@eighthave:matrix.org_hcin other news, I've started pointing swap to index-v1.jar and ripping out index.xml/index.jar support13:20:32
@eighthave:matrix.org_hcindex.xml support is quite tangled into the code :-/13:20:44
@eighthave:matrix.org_hcI suppose that's not surprising. It'll be good to have that all out of the code base13:20:59
@grote:matrix.orggroteHopefully the untangling doesn't tangle too much with my untangling...13:26:46
@cdesai:matrix.orgcde
In reply to @grote:matrix.org
I'd say we do the full v2 index first and if there's time, we can still make the client handle a reduced version.
agree, and hopefully that work helps in doing at least a quick proof of concept easily to see the real world benefits before committing more to it.
13:28:33
@eighthave:matrix.org_hc
In reply to @grote:matrix.org
Hopefully the untangling doesn't tangle too much with my untangling...
some inter-un-tangling is inevitable I think. Are you thinking you'd rather do the index.xml purge?
13:43:13
@grote:matrix.orggroteNo, as long as we don't let these refactoring linger in branches for too long, it will be fine.13:49:49
@grote:matrix.orggroteWe could look into getting 1.4 out before, or make a dev branch where we merge our MRs into with the intention to merge that into master once the dust has settled.13:51:00
@eighthave:matrix.org_hcyeah I was thinking a dev branch could make sense. and it would be good to get 1.4 out too14:01:16
@grote:matrix.orggroteMaybe release a new alpha now that the crash is fixed?14:14:09
@eighthave:matrix.org_hc grote: you're feeling pretty good about that fix? I haven't looked at it at all 14:16:04
@grote:matrix.orggrotethe diff looked ok and I didn't see it crashing again14:16:33
@cdesai:matrix.orgcderelease early, release often!14:28:56
@_oftc_Licaon_Kter[xmpp]:matrix.orgLicaon_Kter[xmpp]Disable crashing build fast!14:40:54
@cdesai:matrix.orgcdewhat good is an alpha that doesn't crash once in a while ;)14:43:06

Show newer messages


Back to Room ListRoom Version: 6