Policies Configuration Parameters
The [policies]
section defines rules for connection routing. Incoming connections are routed to a specific pool based on policy matching. A policy matches incoming connections on the target database, user, IP and protocol. Policies are order dependent.
Note
Due to the origins of Hyper-Q using PostgreSQL clients, which provide a database name when connecting, the database name is part of the information on which policies match. For Teradata clients, which do not send a database name (not to be confused with Teradata database = schema on most target systems), the database name is configured in the [endpoint]
section
"policy".protocol = all
"policy".database = all
"policy".user = all
"policy".ip = "0.0.0.0"
"policy".ip_prefix = 0
"policy".pool = "pool"
"policy".auth_method = passthru
Parameter | Type | Description |
---|---|---|
| Integer | IP address of the Teradata client. |
| Integer | Specifies the whole of IP addresses for Teradata clients. It is used to match policies with pools. |
| String | Specifies that the protocol attached to a policy. It is used to match policies with pools. Values can can be |
| String | Same as one of the |
| String | Specifies the database user endpoint to attach to this policy. It can also accept a list of users. For example:
|
| String | Specifies user using a regular expression. For example:
|
| String | Specifies the authentication method for the policy. It currently accepts the value |