Go to file
Artur Marud be748b44d6
sshfp-generator: initial commit.
Fully working version.
TODO: Few minor changes

Signed-off-by: Artur Marud <artur@status.im>
2022-06-24 02:47:20 +02:00
cloudflare sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00
config sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00
consul sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00
sshfp sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00
statestore sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00
.gitignore sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00
README.md sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00
go.mod sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00
go.sum sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00
main.go sshfp-generator: initial commit. 2022-06-24 02:47:20 +02:00

README.md

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 CONSUL_TOKEN - Consul Token with priviledges to read services

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