Commit Graph

5 Commits

Author SHA1 Message Date
Jakub Sokołowski 16bc968e21
cloudflare: handle init failures properly
Otherwise the process explodes with:
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x656b1b]

goroutine 1 [running]:
infra-sshfp-cf/cloudflare.(*service).FindHostByName(0xc000436600, {0xc00030c510, 0x18})
	/home/admin/sshfp-generator/cloudflare/service.go:25 +0x15b
main.main()
	/home/admin/sshfp-generator/main.go:89 +0x8d0
exit status 2
```
Due to inability to find the configured zone.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-08-01 18:00:34 +02:00
Artur Marud 1d070a80c4
sshfp: added support for calling consul binary directly
Signed-off-by: Artur Marud <artur@status.im>
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-07-29 17:08:08 +02:00
Artur Marud 68db7fadb9
Added configurable storage file + some cosmetic changes
Signed-off-by: Artur Marud <artur@status.im>
2022-07-27 13:36:51 +02:00
Artur Marud bf6021c8bb
sshfp-generator: New features and fixes
* Support for deleted hosts (cleanup records after configured time)
* Small fixes

Signed-off-by: Artur Marud <artur@status.im>
2022-06-27 17:47:07 +02:00
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