vault-client icon indicating copy to clipboard operation
vault-client copied to clipboard

Support for editing objects and lists

Open onitake opened this issue 8 years ago • 0 comments

When trying to edit a secret that is not a string, I get the following error:

$  vc edit my-secret-object
panic: interface conversion: interface {} is map[string]interface {}, not string

goroutine 1 [running]:
main.WriteSecretToFile(0xc42041e000, 0xc4203fc180)
        /go/src/github.com/adfinis-sygroup/vault-client/src/edit.go:193 +0x43d
main.(*EditCommand).Run(0xc420017d20, 0xc420010350, 0x1, 0x1, 0x0)
        /go/src/github.com/adfinis-sygroup/vault-client/src/edit.go:47 +0x23c
github.com/mitchellh/cli.(*CLI).Run(0xc4200d68c0, 0x0, 0x409125, 0x0)
        /go/src/github.com/mitchellh/cli/cli.go:255 +0x229
main.main()
        /go/src/github.com/adfinis-sygroup/vault-client/src/main.go:32 +0x6f

Please support editing of other secret types, for example by converting them to JSON and back when the editor closes.

onitake avatar Sep 15 '17 09:09 onitake