brannondorsey / chattervox

đŸ“¡ An AX.25 packet radio chat protocol with support for digital signatures and binary compression. Like IRC over radio waves.
Other
748 stars 36 forks source link

Key discovery #14

Open kmarekspartz opened 5 years ago

kmarekspartz commented 5 years ago

Can the protocol be used to discover keys of other participants? Can a revoke be announced? Can keys automatically rotate?

I suspect not today, and that’s fine. Neat project!

brannondorsey commented 5 years ago

I'm glad you brought this up. A feature similar to this is something that I've been considering, but I didn't want to put the cart before the horse. I was imagining implementing a system whereby users would automatically sign the public keys of other stations they trust, (chattervox addkey would add the key, and sign it with your private key). I was imagining certain message payloads could then trigger automatic commands by the client application (similar to irc).

Something like /requestkey KC3LZO typed in to chat would broadcast a message to all stations listening and if any of them had KC3LZO's key AND you trusted the station that claims it does, it would message it back to you. This would allow you to create a classic web of trust, where new keys for stations you haven't chatted with before could be trusted depending on how many other stations you trust also trust that station.

I'd actually like to add all of the current cli subcommands to the chat by simply prefixing any message with /, for convenience (e.g. /genkey --make-signing).

streeetlamp commented 5 years ago

Would some sort of simple and totally volunteer directory of users who would like to discover/chat with others could sign up for be a short term solution? Simple app, wiki page, etc?

brannondorsey commented 5 years ago

I like that idea, and not just as a short term solution. I still think some kind of key exchange mechanism built into the TypeScript client would be nice, but a shared registry actually serves a different and useful purpose. Like the MIT PGP key server.

Here are a few solutions I can think of off the top of my head. Suggestions welcome...

I'd lean towards the GitHub registry as it's easy and would be simple and effective but it's easy to trust myself, so I'd welcome criticism of that idea too. Whatever solution we choose (or is proposed down the line) should incorporate the ability for users to verify each other's identities by signing each other's keys. Another thought, although I'm not sure how it fits into all of this right now, is to somehow incorporate Keybase into the equation. Perhaps keys could be signed using keybase keys, amplifying the web of trust.

Also, don't mean to creep your bio but shout out RVA, that's my hometown :upside_down_face:

streeetlamp commented 5 years ago

I prefer the simple and easy even if it leaves some trust up to owners. Someway of using keybase is interesting as heck too but flat files are flat files and I like the idea of adding your key via a PR. Lots of pro's and only a few downsides. I would be surprised if someone messing with this stuff wouldn't have a GH account but I guess the microsoft thing drove some off.

Also HI FROM RVA it's still pretty hot !

jedahan commented 5 years ago

+1 for starting simple with just a wiki page or github repo + PRs I was seeing if there was some hacky way to add our own metadata to the FCC registry but I couldn't find one.

brannondorsey commented 5 years ago

Alrighty, I hear y'alls requests and have made a public key registry on GitHub at brannondorsey/chattervox-keys. Would love it if y'all would go through the motions of adding your keys and let me know what you think. Open to suggestions, but this was the quick solution, and I think I'm pleased with it. Let me know if y'all have any Qs.

zhaofengli commented 5 years ago

This is more related to key verification than discovery, but operators could use LotW's RSA keypair to sign (and for others, to verify) their chattervox key to ensure legitimacy. AMPRNet uses those keys to restrict VPN access to licensed hams.