mirror of
https://github.com/status-im/sshfp-generator.git
synced 2025-01-19 00:52:47 +00:00
Artur Marud
33983caa92
Added Dockerfile and .dockerignore
Signed-off-by: Artur Marud <artur@status.im>
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".
Building
go mod -vendor
go build -mod vendor
Usage
Supported env variables:
DOMAIN_NAME
- Domain name which will be working on
CF_TOKEN
- CloudFlare Token with write access to above domain
HOST_LIVENESS_TIMEOUT
- number in seconds after which host is
considered as removed and dns records can be deleted
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. Ex:
cat watches.dump | ./infra-sshfp-cf
Current state
- 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)
TODO:
- A few major changes
Description
Languages
Go
93%
Makefile
5.1%
Dockerfile
1.9%