When using Secrets Management and attempting to retrieve a value from the vault you receive an error similar to the below. In this example the environment variable password has been set.
Error: could not get value from external vault (no value found)When running the command in debug mode
Error:
/usr/local/share/lua/5.1/kong/cmd/vault.lua:108: could not get value from external vault (no value found)
stack traceback:
[C]: in function 'get'
/usr/local/share/lua/5.1/kong/cmd/vault.lua:108: in function 'cmd_exec'
/usr/local/share/lua/5.1/kong/cmd/init.lua:32: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:32>
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/kong/cmd/init.lua:32: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:16>
(command line -e):5: in function 'inline_gen'
init_worker_by_lua(nginx.conf:147):48: in function <init_worker_by_lua(nginx.conf:147):47>
[C]: in function 'xpcall'
init_worker_by_lua(nginx.conf:147):57: in function <init_worker_by_lua(nginx.conf:147):55>I can see the environment is currently set, why can it not be referenced?
printenv | grep password
password=lowercase_kong