Class: IExecSecretsModule
April 29, 2026 ยท View on GitHub
iexec / IExecSecretsModule
Class: IExecSecretsModule
module exposing secrets methods
Extends
Constructors
Constructor
new IExecSecretsModule(
configOrArgs,options?):IExecSecretsModule
Create an IExecModule instance
Parameters
configOrArgs
options?
Returns
IExecSecretsModule
Inherited from
Properties
config
config:
IExecConfig
current IExecConfig
Inherited from
Methods
checkRequesterSecretExists()
checkRequesterSecretExists(
requesterAddress,secretName):Promise<boolean>
check if a named secret exists for the requester in the Secret Management Service
example:
const isSecretSet = await checkRequesterSecretExists(requesterAddress, "my-password");
console.log('secret "my-password" set:', isSecretSet);
Parameters
requesterAddress
string
secretName
string
Returns
Promise<boolean>
pushRequesterSecret()
pushRequesterSecret(
secretName,secretValue):Promise<{isPushed:boolean; }>
SIGNER REQUIRED, ONLY REQUESTER
push a named secret to the Secret Management Service
NB:
- pushed secrets can be used in
teetasks by specifyingiexec_secretsin the requestorder params. - once pushed a secret can not be updated
example:
const { isPushed } = await pushRequesterSecret("my-password", "passw0rd");
console.log('pushed secret "my-password":', isPushed);
Parameters
secretName
String
secretValue
String
Returns
Promise<{ isPushed: boolean; }>
fromConfig()
staticfromConfig(config):IExecSecretsModule
Create an IExecSecretsModule instance using an IExecConfig instance
Parameters
config
Returns
IExecSecretsModule