• Christophe Le Guern's avatar
    Use 'vault kv put' instead of 'vault write' · cc90f834
    Christophe Le Guern authored
    When using vault_cli with a kv2 path, it isn't working. I have the following error:
    ```
    WARNING! The following warnings were returned from Vault:                                                                                                                                                                                     
                                                                                                                                                                                                                                                  
      * Invalid path for a versioned K/V secrets engine. See the API docs for the                                                                                                                                                                 
      appropriate API endpoints to use. If using the Vault CLI, use 'vault kv put'                                                                                                                                                                
      for this operation.                                                                                                                                                                                                                         
    ```
    The new way to write data  is to use `vault kv put`, it is compatible with kv1 and kv2.
    Ref: https://www.vaultproject.io/docs/commands#reading-and-writing-data
    ```
    The original version of K/V used the common read and write operations. A more advanced K/V Version 2 engine was released in Vault 0.10 and introduced the kv get and kv put commands.
    ```
    cc90f834
vault_cli.sh 1.74 KB