Supported database engines
The Baton-SQL connector currently supports the following database engines:- PostgreSQL
- MySQL
- Microsoft SQL Server
- Oracle
- SAP HANA
Configuration overview
The Baton-SQL connector is configured using a YAML file that defines:- Application metadata
- Database connection details
- Resource types to sync (users, groups, roles, etc.)
- Entitlements that can be granted to resources
- Grants that define which principals have which entitlements
- Provisioning rules for granting/revoking entitlements
Examples folder in the baton-sql connector repo.
Configuring the YAML file
The basic structure of a Baton-SQL connector configuration file includes:Database connection configuration
Theconnect section defines how to connect to your database:
Resource type configuration
Resource types define the entities you want to sync to ConductorOne. Common resource types include users, groups, and roles. Basic structure:Listing resources
Thelist section defines how to query resources from your database:
Mapping resources
Themap section defines how to transform database query results into ConductorOne resources:
.column_name) references a column from the query result.
Pagination
Thepagination section defines how to handle large result sets:
- offset: Uses LIMIT and OFFSET in SQL queries
- cursor: Uses a value-based approach where records after a certain key value are fetched
Entitlements
Entitlements define permissions that can be granted to resources.Static entitlements
Static entitlements are predefined and don’t require a database query:Dynamic entitlements
Dynamic entitlements are fetched from the database:Grants
Grants define which principals (users/groups) have which entitlements:skip_if field uses a CEL expression to determine whether to skip a grant mapping.
Provisioning
Provisioning defines how to implement entitlement changes:Account provisioningAccount provisioning allows creating new accounts directly through ConductorOne:
Running the connector
To run the connector, use the following command:--client-idand--client-secret: Authentication with ConductorOne--config-path: Path to your configuration file-f/--file: Path to save the sync data-p/--provisioning: Enable provisioning actions--log-level: Set logging verbosity (debug, info, warn, error)