2022-06-24 00:41:58 +00:00
|
|
|
# Description
|
|
|
|
|
|
|
|
SSHFP Tool is a tool created in Golang to glue Consul DB and Cloudflare.
|
|
|
|
|
|
|
|
Main purpose is creating SSHFP records to get rid of "host key verification failed".
|
|
|
|
|
2022-08-02 14:00:35 +00:00
|
|
|
# Building
|
2022-06-24 00:41:58 +00:00
|
|
|
|
2022-08-02 14:00:35 +00:00
|
|
|
```sh
|
|
|
|
make
|
2022-06-24 00:41:58 +00:00
|
|
|
```
|
2022-08-02 14:00:35 +00:00
|
|
|
Or to build for all platforms
|
|
|
|
```sh
|
|
|
|
make release
|
2022-06-24 00:41:58 +00:00
|
|
|
```
|
|
|
|
|
2022-08-02 14:00:35 +00:00
|
|
|
# Usage
|
2022-06-24 00:41:58 +00:00
|
|
|
|
|
|
|
Supported env variables:
|
|
|
|
|
2022-08-02 14:00:35 +00:00
|
|
|
* `DOMAIN_NAME` - Domain name which will be working on.
|
|
|
|
* `CF_TOKEN` - CloudFlare Token with write access to above domain.
|
|
|
|
* `HOST_LIVENESS_TIMEOUT` - After this number of seconds of host being offline DNS records are removed.
|
2022-06-24 00:41:58 +00:00
|
|
|
|
2022-08-02 14:00:35 +00:00
|
|
|
It's possible to create JSON formatted config file (example in `testcfg`)
|
|
|
|
|
|
|
|
As it has been designed to work with `consul watches` passing proper JSON file to `stdin` is required.
|
|
|
|
```sh
|
|
|
|
cat watches.dump | ./sshfp-updater
|
|
|
|
```
|
|
|
|
|
|
|
|
# Current state
|
2022-06-24 00:41:58 +00:00
|
|
|
|
|
|
|
- CloudFlare integration is fully implemented
|
|
|
|
- SSHFP Record creation based on tag in Consul form.
|
|
|
|
- Implemented Consul watches integration
|
|
|
|
- Implemented logic to manipulate states (merging config, etc)
|
|
|
|
|
2022-08-02 14:00:35 +00:00
|
|
|
# TODO
|
|
|
|
|
2022-06-24 00:41:58 +00:00
|
|
|
- A few major changes
|