Lucee Function Reference

secretproviderset()

Sets a secret value in a configured Secret Provider. The value type is automatically detected and stored appropriately as a string, boolean, or integer.
Note: Not all Secret Providers support writing. Providers that are read-only (such as environment variables) will throw an exception when attempting to set a value.

Example

secretproviderset(string key,any value,string name):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
key string  Yes Key to store the secret under (e.g., "database.password", "api.key")  
value any  Yes The secret value to store. Can be a string, boolean, or integer.  
name string  Yes Name of the Secret Provider to write to, as configured in .CFConfig.json.