- 17 May 2023
- Print
- DarkLight
- PDF
Managing Connectors
- Updated on 17 May 2023
- Print
- DarkLight
- PDF
This section describes how you can create and manage your connectors.
As a reminder, connectors are the way users define the data sources to which the Masking Engine should connect. Connectors are grouped within environments. In order to navigate to the connectors screen, click on an environment and then click the Connector tab.
The connectors screen contains the following information and actions:
- Connector ID — The numeric ID of the connector used to refer to the connector from the Masking API.
- Connector — The name of the connector.
- Meta Data Source — The type of connector. One of Database, File, or Mainframe.
- Type — The specific type of connector.
- Edit — Edit the connector. See more details below.
- Delete — Delete the connector. See more details below.
The connectors on the screen can be sorted by the various informational fields by clicking on the respective field.
Creating a Connector
To create a new connector:
- In the upper right-hand corner of the Connector tab, click Create Connection. The Create Connection window appears, prompting you for connection information for the data source you would like to connect to. The required information will change depending on the Type of data source you select. For more details on what info is needed to connect to different types (Oracle, AWS RDS, etc) see sections below.
- Several of our connector types offer two different modes of connecting, Basic and Advanced Mode. Advanced Mode gives you the ability to specify the exact JDBC URL and add parameters that may not be available in Basic Mode.
- The fields that appear on the Connector screen are specific to the selected Connector Type (see Connector Types below).
- Click Save.
Editing a Connector
To edit a connector:
- In the Connector tab, click the Edit icon for the connector you want to edit.
- Change any information necessary. To change the password:
- Select the checkbox next to Change Password.
- In the field that appears, enter the new password.
- Click Save.
Deleting a Connector
To delete a connector, click the Delete icon to the far right of the connector name.
Connector Types
Database Connectors
The fields that appear are specific to the DBMS Type you select. If you need assistance determining these values, please contact your database administrator.
You can only create connectors for the databases and/or files listed. If your database or file type is not listed here, you cannot create a connector for it.
- Connection Type— (Oracle, MS SQL Server, and Sybase only) Choose a connection type:
- Basic — Basic connection information.
- Advanced — The full JDBC connect string including any database parameters.
- Connection Name — The name of the database connector (specific for your Delphix application).
- Schema Name — The schema that contains the tables that this connector will access.
- Database Name— The name of the database to which you are connecting.NoteThe database name field is case-sensitive. It must match exactly with the name of the current database as known to the instance.
- Host Name/ IP — The network hostname or IP address of the database server.
- Use Kerberos Authentication— (Oracle only, optional) Whether to use Kerberos to authenticate to the database. This box is clear by default. Before Kerberos may be used, the appliance must be properly configured, refer to the Kerberos configuration instructions. If this box is checked, the application authenticates with the Kerberos KDC before connecting to the database, then uses its Kerberos credentials to authenticate to the database instead of a login/password. When Kerberos is enabled, the "Login ID" field is treated as the Kerberos user principal name. The password, if supplied, is used to authenticate the user principal with the KDC. The password field may be left blank if the keytab set during appliance configuration contains keys for the user principal.NoteKerberos functionality has been disabled in containerized masking.
- Login ID — The user login this connector will use to connect to the database (not applicable for Kerberos Authentication).
- Password — The password associated with the Login ID or Username. (This password is stored encrypted.)
- Use Password Vault— (PostgreSQL only) Whether to use a password vault to authenticate to the database instead of a login ID and password. This box is clear by default. Before a password vault may be used, it must be properly configured. If this box is checked, the selected Credential Path is used to obtain database credentials from the password vault it references.
- Credential Path— (PostgreSQL only) The path to credentials in a password vault to use for database authentication in lieu of a login ID and password.
- Principal Name— (Kerberos Authentication only) The name of the Kerberos user principal to use when authenticating with the KDC. The realm portion of the principal may be omitted if it matches the configured default realm.
- Service Principal— (Sybase with Use Kerberos Authentication only) The name of the Sybase service instance.
- Port — The TCP port of the server.
- SID — (Oracle only) Oracle System ID (SID).
- Instance Name — (MS SQL Server only) The name of the instance. This is optional. If the instance name is specified, the connector ignores the specified "Port" and attempts to connect to the "SQL Server Browser Service" on port 1434 to retrieve the connection information for the SQL Server instance. If the instance name is provided, be sure to make exceptions in the firewall for port 1434 as well as the particular port that the SQL Server instance listens to.
- Custom Driver Name — (Generic only) The name of the JDBC driver class, including Java package name.
- JDBC URL — (Generic and Advanced connector mode for Oracle, MS SQL Server, and Sybase only) The custom JDBC URL, typically including hostname/IP and port number.
- Connection Properties File - A Java properties file to specify configurations for the JDBC connection. See Database Connection Properties for more information.
All database types have a Test Connection button at the bottom left of the New Connector window. We highly recommend that you test your connection before you save it. Do so before you leave this window. When you click Test Connection, Delphix uses the information in the form to attempt a database connection. When finished, a status message appears indicating success or failure.
File Connectors
The following values appear when any of the file connector types are selected:
- Connector Name — The name of the file connector (specific to your Delphix application and unrelated to the file itself).
- Connection Mode— Filesystem Mount Point, SFTP and FTPNoteDue to networking complications in containerized masking, FTP is currently disabled in containerized deployments. Delphix is researching options to re-enable FTP (for containerized masking) at a future date.
The rest of the values appear based on the selected Connection Mode value. For Filesystem Mount Point connection mode, refer to the corresponding section in the Managing Remote Mounts page. For other connection modes, the following values appear:
- Path — The path to the directory where the file(s) are located.
- Server Name — The name of the server used to connect to the file.
- Port — The port used to connect to the server.
- User Name — The user name to connect to the server.
- Password — (non-Public Key Authentication only) The associated password for the server.
- Public Key Authentication — (Optional) (Only appears for SFTP.) Check this box to specify a public key. When you check this box, the Available Keysdrop-down appears. Choose a key from the drop-down. See Delphix Masking APIs for information on uploading public keys to the Masking Engine.NoteIf you plan to do on-the-fly masking then you will need to create a separate environment and connector to be the source for the files to be masked. The masked files will get put into the directory pointed to by the connector you created previously (the target). However, the file path specified in the connector of the target rule set must point to an existing file the target directory. It does not have to be a copy of the file, just an entry in the directory with the same name. It will be replaced by the masked file.
Starting version 6.0.9.0 the SFTP mode is extended with the 'User Directory as root' flag. If the Path defined is relative to the User-home-dir as configured on the SFTP Server, tick the flag below.
If connector is configured via the API than that flag is accessible as "userDirIsRoot", for example:
{
"connectorName": "Test SFTP Connector",
"environmentId": 2,
"fileType": "DELIMITED",
"connectionInfo": {
"connectionMode": "SFTP",
"path": "/delimited",
"host": "yourSFTPServer",
"loginName": "xxxxx",
"password": "xxxxx",
"port": 22,
"userDirIsRoot": true
}
}
Database Connection Properties
Getting Properties
To retrieve all properties set on the connector, make a request to the GET database-connector/{id}/properties
endpoint. This endpoint will respond with all default properties set by the driver, superimposed by any properties specified by an uploaded connection properties file. If a properties file is uploaded for a connector, this list can also be viewed through the UI on the database connector form, where you can sort by Property
, Value
, or Modified
. The Modified
field signifies whether the property value is the default or modified by the uploaded properties file.
Note
Note
Setting Properties
Properties can sometimes be set through the JDBC URL or through a connection properties file. Customizing the JDBC URL is limited to Advanced, Generic, and Extended Connectors, while uploading a properties file is supported by all database connectors. All properties files must have the extension .properties
and must adhere to Java properties file syntax. Even if a property specified in the properties file is not technically supported by the JDBC driver, it will still be passed along to the driver when building the JDBC Connection. All provided and unsupported properties will be logged whenever the properties file is loaded.
Note
Note
Note
- Connector form fields (where applicable) for username, password, and schema
- Properties file 3a. Connector form fields (where applicable) for database name, host, port, SID, and instance name 3b. JDBC URL
Though this hierarchy is convention, it is up to the JDBC driver to implement the precedence for duplicate properties specified among the URL, Properties object, and JDBC Connection API. Please defer to the specific JDBC Driver documentation to verify which method of specification precedes the other. A Delphix Masking connectors form will either have the fields listed in 3a or 3b, but not both. Therefore, it is not possible to duplicate a property between 3a and 3b.
Security Considerations
The property key or value provided in a database connector's properties file will not be regulated and is subject to any user with CREATE or UPDATE connector
privileges. This means that even supported sensitive properties such as user
, password
, hostname
, etc... will be available in plain text to anyone with the VIEW connector
privilege.
If possible, specify sensitive properties through relevant form fields which will be obfuscated in all places or through the JDBC URL which will still be visible in plain text to any user with the VIEW connector
privilege but will be redacted in support bundles.