IMPORTANT: Developer documentation for the current main branch.
This content is unreleased and may change before the next Polaris release.
For stable user documentation, see the
latest release docs.
External Policy Decision Point
This section provides information about integrating Apache Polaris with external Policy Decision Points (PDPs) for authorization.
Overviewπ
By default, Apache Polaris uses an internal authorization system based on role-based access control (RBAC). For advanced use cases requiring external policy management, centralized authorization, or integration with existing policy infrastructure, Polaris supports integration with external Policy Decision Points (PDPs).
What is a Policy Decision Point?π
A Policy Decision Point (PDP) is a component that evaluates authorization requests against defined policies and returns authorization decisions (allow/deny).
Organizations may choose to use an external PDP instead of Polaris’s internal authorization in order to leverage a centralized policy store that manages authorization policies across multiple services and applications.
Architectureπ
When using an external PDP, Polaris delegates authorization decisions as follows:
- Client request: A client makes a request to Polaris (e.g., read a table)
- Authorization check: Polaris sends an authorization request to the external PDP
- Policy evaluation: The PDP evaluates the request against configured policies
- Decision: The PDP returns an allow/deny decision
- Enforcement: Polaris enforces the decision and proceeds or rejects the request
βββββββββββ βββββββββββββββ ββββββββββββββββ
β Client ββββββββββ>β Polaris βββββββββ>β External PDP β
β β Request β β AuthZ β β
β β β β Request β β
β β<ββββββββββ β<βββββββββ β
β β Response β β Decisionβ β
βββββββββββ βββββββββββββββ ββββββββββββββββ
Available Implementationsπ
Apache Polaris currently supports the following external PDP integrations:
- Open Policy Agent (OPA): A general-purpose policy engine with a rich ecosystem and flexible policy language (Rego)
Configurationπ
To enable external PDP integration, set the following configuration property:
polaris.authorization.authorizer.type=<pdp-type>
Where <pdp-type> is the identifier for the PDP implementation (e.g., opa). The default value is internal.
π Note
Thepolaris.authorization.type property used in previous releases is deprecated, but is still
honored when polaris.authorization.authorizer.type is not set.Per-realm Configurationπ
The authorizer can be overridden for individual realms, using the same pattern as the authenticator configuration:
# Default authorizer for all realms
polaris.authorization.authorizer.type=internal
# Realm "realm1" uses OPA with the default OPA configuration
polaris.authorization.authorizer.realm1.type=opa
# Realm "realm2" uses OPA with the OPA configuration named "tenant2"
polaris.authorization.authorizer.realm2.type=opa
polaris.authorization.authorizer.realm2.tenant-key=tenant2
The optional tenant-key property selects a named configuration (“authorizer tenant”) defined in
the PDP-specific configuration. When it is absent, the PDP’s default configuration is used. Refer to
the specific PDP documentation for how to define named configurations, e.g.
OPA tenants.
A realm that sets a tenant-key must also set its type. Polaris validates the authorizer
configuration of every realm listed in polaris.realm-context.realms at startup, and fails to start
if a realm refers to an unknown authorizer type or tenant key.
See the specific PDP documentation for detailed configuration options: