As of Enforcer 5.0 and Alfa 2.0, the ALFA compiler introduces configuration options for the Enforcer ALFA compiler.
ALFA Compiler Configuration
To provide configuration to the ALFA compiler, Enforcer looks for a json file in the root folder of your configured policy store. The default ALFA config file name is alfaconfig.json
. The presence of this file is optional and the file name is configurable during Enforcer startup (see Configuring Enforcer for details).
All configuration values are opt-in. If configuration options are not provided, the ALFA compiler will use default values that maintain backwards compatibility with previous ALFA versions.
Compiler configuration is currently supported for filesystem and embedded resource policy stores.
Configuration Options
The table below describes
Option | Values | Enforcer version | Description |
---|---|---|---|
stringEqualityIgnoreCase | true or false |
5.0 | Changes string equality checks with == and != operators to be case-insensitive. |
Example
{
"stringEqualityIgnoreCase": true
}