Alejandro Mery
|
884b11d1f9
|
cluster: sort regions, for `jpictl dump`' sake
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
5bbe15ef24
|
cluster: move SortRegions() from dns to cluster
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
fd1c57d377
|
cluster: introduce Cluster.ReadLines()
reading a file, splitting and trimming lines, and
allowing # to comment a line out
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
2fd5947f1b
|
cluster: introduce Cluster.WriteStringFile()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
14b3d91191
|
cluster: introduce Cluster.RemoveFile()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
abe3005769
|
dns: sort zones when writing data
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
727fd67bc6
|
jpictl: add --domain/-D and --scan-dir/-d options
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
b8e1b321e5
|
jpictl: add `-S` flag to ignore the config file and always scan
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
0c5429a681
|
jpictl: move verbosity handling to the log module
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
e5639b2f4e
|
cluster: generate ring keys on scan if missing
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
543824a54a
|
cluster: allow empty wgN.conf files as markers to enable the ring
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
9ab7594bcc
|
Merge pull request 'jpictl: add initial `dns add` command' (#29)
Reviewed-on: #29
|
1 year ago |
Nagy Károly Gábriel
|
07d4f462a3
|
Merge pull request 'wireguard: fix KeyPair.Validate()' (#30)
Reviewed-on: #30
|
1 year ago |
Alejandro Mery
|
142ea00577
|
wireguard: fix KeyPair.Validate()
PrivateKey and PublicKey are now fixed length arrays,
so testing for len 0 is invalid
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
052f89152c
|
jpictl/dns: introduce add command to register new machines
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
557f156579
|
dns: refactor asSyncRecords()
for direct access of the unsorted map
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
e857ff7456
|
Merge pull request 'dns: refactor record formatting and sort show results' (#28)
Reviewed-on: #28
|
1 year ago |
Alejandro Mery
|
9da49f2d86
|
dns/show: sort records
v2: change Name to lower case and Type to upper case before comparing
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
356322bc94
|
dns/show: introduce writeRecords() helper
to print a whole []libdns.Record
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
7dac96f474
|
dns/show: refactor Record formatting
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
134606207d
|
Merge pull request 'jpictl: introduce `jpictl dns show` command' (#27)
Reviewed-on: #27
|
1 year ago |
Alejandro Mery
|
66178923a3
|
chore: update darvaza.org/resolver to support the darvaza.org/core update
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
440dcde50a
|
jpictl: introduce `jpictl dns show` command
to list dns entries
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
c578990f8c
|
jpictl: refactor dns command initialization
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
b0f4be7047
|
dns: refactor GetRecords() to allow commands other than sync
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
7dd04d84f4
|
Merge pull request 'chores: update dependencies' (#26)
Reviewed-on: #26
|
1 year ago |
Alejandro Mery
|
385f85ff91
|
chore: go work sync
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
986db350b4
|
cluster: make unreachable panic explicit
making revive 1.3.4 happy
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
99ae34e98c
|
chore: update darvaza.org/core to v0.10.0
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
76b40e63c7
|
Merge pull request 'dns: introduce `jpictl dns sync` to update public DNS records' (#25)
A and AAAA only
Reviewed-on: #25
|
1 year ago |
Alejandro Mery
|
5d82de5535
|
jpictl: introduce `jpictl dns sync` to update public DNS records
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
c33d0dab16
|
jpictl: refactor dns.Manager factory to support Provider data
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
dd585b0fa2
|
dns: add Sync() mechanism to update A/AAAA records on the DNS provider
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
172752ab90
|
dns: add RecordSetter and RecordAppender to Provider
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
4e2693b12c
|
Merge pull request 'dns: introduce DNS Manager and BIND config writer' (#24)
Reviewed-on: #24
|
1 year ago |
Alejandro Mery
|
eba0340e32
|
jpictl: introduce `jpictl dns write` command
it renders BIND config to describe the public view of the cluster
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
1a47985bd7
|
dns: Manager.WriteTo() generates BIND config, fully qualifies
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
f5ea72740c
|
dns: introduce initial DNS Manager
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
357c85dc1a
|
dns: SortRegions() by ISO3166
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
00aec477a4
|
dns: DefaultDNSProvider() using CLOUDFLARE_DNS_API_TOKEN
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
e0d8592dc1
|
dns: introduce AddrRecord{} to abstract A/AAAA entries
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
c397ca29ac
|
cluster: introduce Region interators
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
066788b9be
|
vscode: add Lookuper, publicsuffix and libdns to the dictionary
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
4402555f04
|
Merge pull request 'cluster: ensure ceph monitors are set when loading a config file' (#23)
Reviewed-on: #23
|
1 year ago |
Alejandro Mery
|
6e7f24f491
|
cluster: ensure ceph monitors are set when loading a config file
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
54b302c6d5
|
vscode: add asciigoat, cyclomatic and Wrapf to the dictionary
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
f62a47003d
|
Merge pull request 'cluster: introduce Regions to group zones' (#22)
Reviewed-on: #22
|
1 year ago |
Alejandro Mery
|
5abaed9047
|
Merge pull request 'jpictl: fix verbosity handling' (#21)
Reviewed-on: #21
|
1 year ago |
Alejandro Mery
|
c702d649e0
|
cluster: introduce Regions to group zones
only available via config-file
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
e9f9d474dc
|
jpictl: fix verbosity handling
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |