This PR finally authenticates counselors signing in!
This also finishes one CLI mechanism for adding counselors.
In this version, hyperdome_server generate will generate a one-time-use code that can be given to a counselor. This code is placed in the "password" field when adding a server.
The client will authenticate using ed448 keys. Currently the counselor's keys are encrypted, but with a static hard-coded password.
Server settings are now stored and reloaded with the application.
This PR fixes #38 and invalidates #13 by cementing key authentication, and never broadcasting a password.
Checklist
[x] If code changes were made then they have been tested.
[x] This PR fixes an issue.
[x] This PR adds something new (e.g. new method or parameters).
[x] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)
Summary
This PR finally authenticates counselors signing in!
This also finishes one CLI mechanism for adding counselors.
In this version,
hyperdome_server generate
will generate a one-time-use code that can be given to a counselor. This code is placed in the "password" field when adding a server. The client will authenticate using ed448 keys. Currently the counselor's keys are encrypted, but with a static hard-coded password.Server settings are now stored and reloaded with the application.
This PR fixes #38 and invalidates #13 by cementing key authentication, and never broadcasting a password.
Checklist