listSecretInfo( )


Gets a list of objects containing information about all secrets stored in the Secrets Manager.

The listSecretInfo() function returns a Promise that resolves to a list containing information about all secrets stored on your site. The secret's value is omitted for security reasons, and can be retrieved using the getSecret() function for each individual secret.

Note: Do not use listSecretInfo() in a .jsw file with anonymous permissions! This is a serious security risk which exposes your secrets to potential leaks. To prevent this, implement listSecretInfo() in a separate .js file to block frontend access. If you must include listSecretInfo() in a .jsw file, make sure the exported function has permissions set to Admin.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<Array<SecretInfo>>
Did this help?