Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Support for editing objects and lists #57

@onitake

Description

@onitake

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions