The default provider: secrets kept in the host's storage, as typed. It protects nothing beyond what the storage itself does, and says so (keeps: 'plain'); a host that can do better passes its own provider as KernlOptions.secrets.
keeps: 'plain'
KernlOptions.secrets
The host's storage; each secret is one key under kernl:secrets:v1:.
kernl:secrets:v1:
A provider over that storage; set rejects unavailable:secrets when the storage refuses the write.
set
unavailable:secrets
const secrets = createStorageSecrets(localStorage);await secrets.set('download:sabnzbd:apiKey', 'k1');await secrets.get('download:sabnzbd:apiKey'); // 'k1' Copy
const secrets = createStorageSecrets(localStorage);await secrets.set('download:sabnzbd:apiKey', 'k1');await secrets.get('download:sabnzbd:apiKey'); // 'k1'
The default provider: secrets kept in the host's storage, as typed. It protects nothing beyond what the storage itself does, and says so (
keeps: 'plain'); a host that can do better passes its own provider asKernlOptions.secrets.