- Issue created by @nvl.sateesh
- πΊπΈUnited States cmlara
At the moment the Drupal Module is currently primarily bringing in the 3rd party library in a manner that interface with Drupal's common API's. Many of these methods are still 'low level' and require knowledge of how to format Vault API messages. The VAULT HTTP API documentation is a useful reference. https://developer.hashicorp.com/vault/api-docs
The vault_key_kv module may provide some assistance of sample code to help (note: this is written for KV2 storage)
https://git.drupalcode.org/project/vault_key_kv/-/blob/2.x/src/Plugin/Ke...$this->vaultClient->write($path, [$key => $value]);
I assume for this simplistic example that $path is a KV storage engine, the question is if it is a KV1 or KV2, the format of the submitted data depends upon this (KV1 it is a direct key/value pair while in the case of KV2 key should under a 'data' key )KV1 submit format
KV2 submit formatAddtionaly care must be taken regarding
/
placement in$path
to ensure path is correctly formatted with the base path already provided.We appear to be missing documentation on this, a developer can set the
vault.logger.level
container parameter todebug
to enable additional logging that may provide additional details. I will create a followup issue for that documentation to be added.