Commit graph

15 commits

Author SHA1 Message Date
76286b6388 config.go: iterate slices via indices to get pointers instead of copies
All checks were successful
continuous-integration/drone/push Build is passing
Iterating over a slice returns a copy of the respective member instead
of a reference to the original slice member. Thus, any modification are
discarded and the pointers saved inside cfg.users and cfg.rrconfigs are
incorrect, too.
2021-09-11 22:14:39 +02:00
e15da33296 config.go: improve config validation
Also check whether there are no users/records and if records have an
actual user associated with them.
2021-09-11 22:14:39 +02:00
4cb237a05b add various tests for prepareConfig and update go dependencies 2021-09-11 22:14:39 +02:00
41107cdc2e config.go: externalize config preparation for more convenient testing 2021-09-11 22:14:39 +02:00
2f2ef5b7c7 nameserver.go: delete old record before adding new one 2021-09-11 22:14:39 +02:00
835229c495 use drone-ci instead of gitlab-ci and add release 2021-09-11 22:14:28 +02:00
3682eb626e rename go module 2021-09-10 11:11:59 +02:00
451776bde0 restructure config to allow user credentials to update multiple records
This commit separates user credentials from resource record configs to
allow user credentials to be used for multiple records instead of one.
2021-09-10 11:11:56 +02:00
7f1500d53d add basic gitlab-ci.yml
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2021-07-16 23:57:16 +02:00
ef22e29cef rewrite most code; removes database to solely rely on config file 2021-07-13 13:36:37 +02:00
32bf03dc07 auth.go: use hashed/salted passwords instead of plaintext 2018-09-22 14:59:15 +02:00
892c4b27ac main.go: add argument parsing for config path 2018-09-22 14:00:26 +02:00
94770ef25c add example config.toml 2018-09-22 01:40:58 +02:00
fb43d8da3a add support for toml configuration file 2018-09-22 01:38:40 +02:00
2e90d32ce2 intial import 2018-09-09 21:38:37 +02:00