Returns a struct containing all secrets from a configured Secret Provider. Each key in the struct corresponds to a secret name, and each value is a reference object (similar to SecretProviderGet) that resolves to the actual secret value when used.
When no provider name is specified, the function aggregates secrets from all configured providers. If the same secret key exists in multiple providers, the first provider (in configuration order) takes precedence.
Lucee Function Reference
secretproviderlist()
Example
secretproviderlist([string name,[boolean resolve]]):struct
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | No | Name of the Secret Provider to list secrets from, as configured in .CFConfig.json. If not defined, the function lists secrets from all configured providers. |
| resolve | boolean | No | If set to true, all secrets are resolved immediately. If set to false (default), secrets are resolved when used. |