Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine http api and dns registration servers (#140)
* Add dns registrar * Add debug prints * Strip clientconf in response if present * Add unidirectional mode * Assign bd endpoint in forwarder ctor * Update dependencies Use DNS registrar packages in updated gotapdance repo. Remove old repo dependency. * Add more logs * Update log * Check and log error from forwarder.RecvAndForward * Return RecvAndRespond error value * Update dependency version * Add Makefile rules for dns registrar * Add ability to read config from config file * Add systemd service unit file for dns registrar * Change defualt dnds reg privkey path in conf * Add dns registrar simulation environment config * Use logrus library to use log levels * Format log to show timestamp * Return on unsuccessful API HTTP code Return immediatly, otherwise it will try to unmarshal the payload resulting in another error. Also change log levels. * Add log level flag option and config var * Change .gitignore * Clean up comments * Log RegID in logs * Read key as raw bytes instead of encoded string For compatibility with Conjure keys. * Remove genkey functionality and unused functions No need for dns registrar to genkey as we can just use conjure keys. * Add comments and add log level * Update config to use Conjure privkey path * Move process bd req to func * Rename api server * Create regprocessor interface in seperate pkg Put functions that handle formating registration requests and publishing to zmq into its own package for reuse by DNS registrar and future registration servers. * Add zmq auth in regprocessor ctor * Add regprocessor to api reg server * Add regprocessor tests * Add regprocessor tests * Change var names * Refactor api reg server to use regprocessor * Add tests for api reg server * Refactor dns registrar to use regprocessor * Fix logging in api and dns reg server * Add registration server cli main * Add waitgroup for reg processes * Use os instead of ioutil to read file * Read log client IP env var * Rm old registration api * Use log fomatting in bdapi * Use io instead of ioutil * Add more logging * Add systemd service file for registration server * Update .gitignore * Update logrus version * Update sim env with reg server * Fix make rule * Remove unused files * Add auth type config * Remove logClientIP var from config struct * Fix linter errors * Update gh action to build combined reg server * Update config files and instructions * Fix file path in gh action rule * Add tests for registration source * Fix nil addr in registration processing * Use same enum for api and bdapi in payload to zmq * Reduce log level of successful registration logs * Add metrics * Add metric logging interval to config file * Revert uninteded edit in config file
- Loading branch information