Skip to content

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()