31333337 / bmrng

1 stars 2 forks source link

feat: private server config #20

Open xendarboh opened 1 year ago

xendarboh commented 1 year ago

Currently, in og trellis:

Desired State, initially

Desired State, later...

Holo-Terra-Formation

See go/trellis/config/config.proto:

// Fields that are secrets are included here for convience
// public value and server members agreement is out of scope
// Each server would have their own secrets
message Server {
  // Server address (public)
  string address = 1; 

  int64 id = 2;

  // TLS certificate (public)
  bytes identity = 3;

  // Secret for certificate (this should not be public)
  bytes private_identity = 4;

  // Public key for authenticated encryption to this server (public)
  bytes public_key = 5;

  // Secret for authenticated encryption (this should not be public)
  bytes private_key = 6;

  // Key to verify this servers signature (public)
  bytes verification_key = 7;

  // Signature key (this should not be public)
  bytes signature_key = 8;
}

public:

private:

Originally posted in https://github.com/31333337/bmrng/issues/15#issuecomment-1769712139

xendarboh commented 1 year ago

Within the vision of many mix-net components as well as what can be supportive immediately:

xendarboh commented 1 year ago
xendarboh commented 1 year ago

Currently, servers are uniquely identified by a number starting from 0.

For self-regulating servers, they should have an UUID instead (likely to be related to a crypto address later).

xendarboh commented 1 year ago

fair amount of moving parts and missing feature in og-trellis balance now and then (ie, appropriately invest dev roi for short-lifecycle code) consider an initial step in between to mimic server<->coord comm

xendarboh commented 1 year ago

TODO... more complete e2e tests of critical execution paths of xtrellis

xendarboh commented 1 year ago

TODO... consider more complete local server config management and context of future db