Skip to main content

SecretsTask

Securely request secrets from a Switchboard SecretsServer that are owned by a specific authority. Any secrets that are returned for the current feed will then be unwrapped into variables to be accessed later.

Input: None

Returns: The input

Example: SecretsTask

{
"secretsTask": {
"authority": "Accb21tUCWocJea6Uk3DgrNZawgmKegDVeHw8cGMDPi5"
}
}

See the SecretsTask typescript definition in @switchboard-xyz/common

Fields

NameTypeDescription
 authority

string

The authority of the secrets that are to be requested.

 url

string

The url of the server to request secrets from. The default is https://api.secrets.switchboard.xyz.