MySQL is a widely used open-source relational database system that can be used as a data-source in build.security.
You may run any query, from within the policy, to extract any data that is required for making an authorization decision.
To create a new MySQL data source in the control plane:
Click the NEW DATA SOURCE button on the data-source screen. The New Data Source panel will open on the right.
In the Name field, enter the name of the new data-source.
In the Description field, enter a description (optional).
In the Type area, select MySQL.
In the Host field, enter either the IP address or the hostname of the data-source.
In the Port field, enter the port that the data-source exposes for accepting connections.
In the Username field, enter the username that should be used for authenticating the connection.
In the Password Environment Variable field, enter PDP environment variable from which the database password will be retrieved. For security purposes, the data-source password will be stored within the PDP as an environment variable. After creating the MySQL data-source, you will need to declare this variable when deploying the PDP.
In the Database Name field, enter the name of the MySQL database that should be used.
In the Cache TTL field, enter the amount of time that query results should be cached by the PDP. Acceptable values (in seconds) are 0-600.
Click SAVE to create the new data-source.
The new MySQL data-source will now appear in the list of existing data-sources on the data-source screen.