# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
#
# IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
# `get_provider_info_TEMPLATE.py.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
[docs]
def get_provider_info():
return {
"package-name": "apache-airflow-providers-apache-polaris",
"name": "Apache Polaris",
"description": "`Apache Polaris <https://polaris.apache.org/>`__ provider for Apache Airflow.\nOwns the ``polaris`` connection type, hooks for the Polaris Management API and catalog\nAPIs, idempotent operators for catalogs, namespaces, tables, principals, roles,\ngrants and policies, and a helper that turns table-maintenance policies into Iceberg\nSpark procedure calls.\n",
"integrations": [
{
"integration-name": "Apache Polaris",
"external-doc-url": "https://polaris.apache.org/",
"logo": "/docs/integration-logos/apache-polaris.png",
"how-to-guide": ["/docs/apache-airflow-providers-apache-polaris/operators/polaris.rst"],
"tags": ["apache"],
}
],
"hooks": [
{
"integration-name": "Apache Polaris",
"python-modules": ["airflow.providers.apache.polaris.hooks.polaris"],
}
],
"operators": [
{
"integration-name": "Apache Polaris",
"python-modules": [
"airflow.providers.apache.polaris.operators.base",
"airflow.providers.apache.polaris.operators.catalog",
"airflow.providers.apache.polaris.operators.principal",
"airflow.providers.apache.polaris.operators.rbac",
"airflow.providers.apache.polaris.operators.policy",
"airflow.providers.apache.polaris.operators.namespace",
"airflow.providers.apache.polaris.operators.table",
],
}
],
"connection-types": [
{
"hook-class-name": "airflow.providers.apache.polaris.hooks.polaris.PolarisHook",
"hook-name": "Apache Polaris",
"connection-type": "polaris",
"conn-fields": {
"auth_type": {
"label": "Auth Type",
"schema": {
"type": ["string", "null"],
"enum": ["internal", "oidc", "token"],
"default": "internal",
},
"description": "internal (default): Login/Password are a Polaris principal's client ID and secret, exchanged at the Polaris token endpoint. oidc: Login/Password are client credentials of an external OIDC identity provider; set the token endpoint URL below. token: Password is a ready-made bearer token (not refreshed); Login is unused.",
},
"realm": {
"label": "Realm",
"schema": {"type": ["string", "null"]},
"description": "Polaris realm, sent in the realm header on every Polaris request (and on internal token requests). Leave empty to use the server's default realm.",
},
"realm_header": {
"label": "Realm Header Name",
"schema": {"type": ["string", "null"], "default": "Polaris-Realm"},
"description": "Name of the realm header, if the server overrides polaris.realm-context.header-name.",
},
"scope": {
"label": "Scope",
"schema": {"type": ["string", "null"]},
"description": "internal: space-separated principal roles to activate, each PRINCIPAL_ROLE:<name> (default PRINCIPAL_ROLE:ALL). oidc: passed to the identity provider as-is (optional). Unused for token.",
},
"oauth2_server_uri": {
"label": "Token Endpoint URL",
"schema": {"type": ["string", "null"], "format": "url"},
"description": "oidc: the identity provider's token endpoint (required). internal: optional override of the Polaris token endpoint (default <host>/api/catalog/v1/oauth/tokens). Unused for token.",
},
"audience": {
"label": "Audience",
"schema": {"type": ["string", "null"]},
"description": "oidc only. Optional audience parameter for identity providers that need it.",
},
"resource": {
"label": "Resource",
"schema": {"type": ["string", "null"]},
"description": "oidc only. Optional resource parameter for identity providers that need it.",
},
"client_auth_method": {
"label": "Client Auth Method",
"schema": {
"type": ["string", "null"],
"enum": ["client_secret_basic", "client_secret_post"],
"default": "client_secret_basic",
},
"description": "internal and oidc: send the client ID and secret in an HTTP Basic header (default) or in the request body.",
},
"default_catalog": {
"label": "Default Catalog",
"schema": {"type": ["string", "null"]},
"description": "Catalog used when an operator or hook call does not name one. Also used by Test Connection to verify access.",
},
"verify": {
"label": "TLS Verification",
"schema": {"type": ["boolean", "string", "null"]},
"description": "true (default), false, or a path to a CA bundle file.",
},
"catalog_path": {
"label": "Catalog API Path",
"schema": {"type": ["string", "null"], "default": "/api/catalog"},
"description": "Path of the catalog API under the host. Change only for non-standard gateways.",
},
"management_path": {
"label": "Management API Path",
"schema": {"type": ["string", "null"], "default": "/api/management/v1"},
"description": "Path of the Management API under the host. Change only for non-standard gateways.",
},
"timeout": {
"label": "Timeout (seconds)",
"schema": {"type": ["number", "null"], "default": 30},
"description": "HTTP timeout for token and API requests.",
},
},
"ui-field-behaviour": {
"hidden-fields": ["schema"],
"relabeling": {
"host": "Polaris URL",
"login": "Client ID",
"password": "Client Secret or Token",
},
"placeholders": {
"host": "https://polaris.example.com",
"login": "client ID (unused for auth_type=token)",
"password": "client secret, or bearer token for auth_type=token",
"extra": '{"auth_type": "internal", "realm": "POLARIS", "scope": "PRINCIPAL_ROLE:ALL"}',
},
},
}
],
}