fishfolk / bones

An easy-to-use game engine for making real games.
https://fishfolk.org/development/bones/introduction/
Other
210 stars 20 forks source link

Allow matchmaker to configure Iroh secret key for stable nodeID #405

Closed MaxCWhitehead closed 3 months ago

MaxCWhitehead commented 3 months ago

nodeID is derived from secret key which is currently randomly generated. Each time matchmaker restarts it will get a new node id, making it difficult to share a stable node ID (address for connection).

Couple of thoughts:

  1. Could generate secret if not provided and save to a file (which would be some mounted volume on container, would need a write-able local path if non-containerized which is slightly more annoying).
  2. Allow secret key (ed2515119) to be specified as env var, generate if none, otherwise use env.

I think two sounds slightly simpler / probably good enough.

zicklag commented 3 months ago

Yeah, I think option 2 is good. :+1: