Open techs07 opened 4 years ago
sharing some steps which I have followed to setup custom plugins in Kubernetes. Hope it will help others, till we get best practices to setup plugins.
copy plugin to all PVC. If you have three pods then copy plugins to all three PVC.
kubectl cp
generate shasum
shasum -a 256
Configure plugin by providing shasum
vault write sys/plugins/catalog/plugin_name \
sha256=
Reload the plugin if you are updating any existing plugin. $ cat payload.json { "plugin": "mock-plugin" }
$ curl \ --header "X-Vault-Token: ..." \ --request PUT \ --data @payload.json \ http://127.0.0.1:8200/v1/sys/plugins/reload/backend
These plugin will persist even in new pods, provided you are using same PVV.
If anyone has better solution, please update the post. Thanks
There is now an official guide on how to upgrade a plugin in Vault: https://www.vaultproject.io/docs/upgrading/plugins#upgrading-vault-plugins It's exactly the same procedure that @techs07 outlines, but @techs07 has provided the coding steps.
Hi Team,
I want to push some custom backend plugin to vault cluster running on Kubernetes environment. I have gone through the documentation and could find anything relevant to kubernetes. These are the available documentation so far and there is no details about pushing plugin on vault kubernetes cluster. https://www.vaultproject.io/docs/plugin https://www.vaultproject.io/docs/internals/plugins https://learn.hashicorp.com/vault/developer/plugin-backends
Could you please update details like
Environment details: Vault raft cluster with 3 nodes. Vault version: 1.4.1
Thanks