I’m implementing a custom plugin of type secret.
When enabling and mounting the plugin there exists to ability to add custom options via the following.
vault secrets enable -path=test \
-options="custom_opt1=option1" \
-options="custom_opt2=option2" \
-description="I have custom options" \
vault-plugin-custom
It is possible to read and write these options via the following vault commands.
vault read sys/mounts/test/tune
vault secrets tune -options "custom_opt1=newoption" test
vault write sys/mounts/test/tune "options=custom_opt1=newoption"
What is the recommend way to read these parameters within the plugin context using the sdk/logical
and sdk/framework
golang libraries?