Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Using kv-v2 gets either "unsupported operation" or stacktrace and empty secrets #10

Description

@dietmarb01

The kv-v2 supports the LIST operation only on mount/metadata/, while retrieval of secrets is limited to mount/data/
(see https://www.vaultproject.io/api/secret/kv/kv-v2#list-secrets)

I am using Vault-1.8.1 (latest as of today)

As there is only a single "path" field to be specified in the sync-entry, which one to use?

Using .../metadata seems to synchronize entries (i.e. it re-creates the tree and adds entries), but none of the entries has any fields.

Using .../data tells me it has fetched some keys, but hickups on the return value from Vault (also note the doubled '/' on the path). The structure is not re-created within KeePass.

Exception for e2/metadata/path/to//my//secret: Unexpected character encountered while parsing value: {. Path 'data.versions', line 1, position 325.
   at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType)
   at Newtonsoft.Json.JsonTextReader.ReadAsString()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions