publish / publish (push) Successful in 2m53s
The host connector answers filesystem_usage, directory_sizes and old_files on configured hosts over SSH with pinned host keys, dialling through the egress tunnel when confined. The sops engine decrypts with the sops library instead of the CLI, takes its file from settings and an age identity from its secrets.
14 lines
441 B
Go
14 lines
441 B
Go
// Command host is the host connector: read-only lookups on the hosts it is
|
|
// configured with, run over SSH with a pinned host key and the credential
|
|
// Archie hands it. It runs no free-form command; a judged command action
|
|
// comes with judgement.
|
|
package main
|
|
|
|
import "github.com/samcharles93/archipelago/sdk/connector"
|
|
|
|
func main() {
|
|
connector.Serve(func(cfg connector.Config) (connector.Connector, error) {
|
|
return newHost(cfg)
|
|
})
|
|
}
|