📜  Vault create enable secret engine - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:46.696000             🧑  作者: Mango

代码示例1
/* Create a Secret Engine and enable it on a custom path */
vault secrets enable -path=mykv2 kv-v2   #OR
vault secrets enable -path=mykv2 --version=2 kv
#No path provided then takes the same last name as path

#Disable a Secret-Engine kv-v2 is the path provided
vault secrets disable kv-v2

#Move a secret-engine from old to new mount path 
#Here i am moving mykv2(existing path) to new mount path mykv3
vault secrets move mykv2/ mykv3/