kumo.secrets.load(SOURCE)
Given a keysource, load and return the bytes stored in that source.
Example of Loading a credential from a vault
local request = kumo.http.build_client({}):get 'https://example.com/'
local passwd = kumo.secrets.load {
vault_mount = 'secret',
vault_path = 'example.com-passwd',
}
request:basic_auth('username', passwd)
local response = request:send()
Last update:
2023-05-09
Created: 2023-05-09
Created: 2023-05-09