Skip to content

Logical client incompatible with KV Secrets Engine v2 #114

@larsp

Description

@larsp

Hello!

Maybe I am totally off but it seems that the API is incompatible to the new KV secrets engine?

The new KV v2 write API is nesting secret key/values under the data field such as:

{
  "data": {
      "foo": "bar",
      "zip": "zap"
    }
}

Given the fact that write does not support nested structures and just calls toString() on any unknown type it seems that one can not use the API to write to the new KV engine?

Using a JSON string is not working since the string will be escaped which will lead to the following error:

{
  "errors": [
    "error converting input {\"foo\":\"bar\",\"zip\":\"zap\"} for field \"data\": '' expected a map, got 'string'"
  ]
}

Thanks

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