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:

  1. Client request: A client makes a request to Polaris (e.g., read a table)
  2. Authorization check: Polaris sends an authorization request to the external PDP
  3. Policy evaluation: The PDP evaluates the request against configured policies
  4. Decision: The PDP returns an allow/deny decision
  5. 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:

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

The polaris.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: