# Apache Polaris

**Apache Polaris** 是一款面向 [Apache Iceberg](https://www.edgepedia.org/zh/apache-iceberg) 的开源目录服务，通过 Iceberg REST Catalog API 管理 Iceberg 目录、命名空间、表、视图、主体、角色、策略及相关元数据，并为任何兼容 Iceberg 的计算引擎提供基于角色的访问控制和凭证分发。<sup>[1](https://github.com/apache/polaris/blob/main/SECURITY-THREAT-MODEL.md)</sup><sup> • </sup><sup>[2](https://polaris.apache.org/index.html)</sup> 该项目起源于 [Snowflake](https://www.edgepedia.org/zh/snowflake) 的 Polaris Catalog，于 2024-08-09 进入 Apache 孵化器，并于 2026-02-18 晋升为 Apache 软件基金会顶级项目。<sup>[3](https://apache.org/foundation/board/minutes/Polaris.html)</sup><sup> • </sup><sup>[4](https://www.youtube.com/watch?v=_VISUbnPIaU)</sup>

| 关键事实 | 详情 |
|---|---|
| 定位 | 面向 Apache Iceberg 的开源目录，基于 Iceberg REST 协议构建，内置 RBAC 与凭证分发<sup>[2](https://polaris.apache.org/index.html)</sup><sup> • </sup><sup>[5](https://fluss.apache.org/docs/next/streaming-lakehouse/datalake-catalogs/polaris/)</sup> |
| 起源 | 由 Snowflake 发起，名为 Polaris Catalog（2024 年 6 月公布）；自 2024-08-09 起在 ASF 孵化<sup>[4](https://www.youtube.com/watch?v=_VISUbnPIaU)</sup><sup> • </sup><sup>[3](https://apache.org/foundation/board/minutes/Polaris.html)</sup> |
| 治理 | 2026-02-18 晋升为 ASF 顶级项目；截至 2026 年 8 月，PMC 有 19 名成员，项目有 32 名提交者<sup>[3](https://apache.org/foundation/board/minutes/Polaris.html)</sup><sup> • </sup><sup>[6](https://whimsy.apache.org/board/minutes/Polaris.html)</sup> |
| 版本发布 | 首个版本 0.9.0 于 2025 年 3 月 11 日发布；1.0.0-incubating 于 2025 年 7 月 9 日发布；最新版本 1.8.0 于 2026 年 9 月 28 日发布<sup>[7](https://github.com/apache/polaris/blob/main/CHANGELOG.md)</sup><sup> • </sup><sup>[8](https://www.dremio.com/blog/apache-polaris-1-8-0-whats-new-breaking-changes-and-upgrade-guide/)</sup> |
| 支持的引擎 | Apache Doris、Apache Flink、Apache Spark、Dremio OSS、StarRocks 和 Trino 通过 Iceberg REST API 连接<sup>[2](https://polaris.apache.org/index.html)</sup> |
| 访问控制 | 基于角色的访问控制与凭证分发，使引擎获得限定范围、短时效的存储凭证，而非静态凭证<sup>[5](https://fluss.apache.org/docs/next/streaming-lakehouse/datalake-catalogs/polaris/)</sup><sup> • </sup><sup>[9](https://polaris.apache.org/guides/trino/)</sup> |
| 默认服务端点 | 标准部署中，REST 目录服务于 `http://polaris:8181/api/catalog`<sup>[9](https://polaris.apache.org/guides/trino/)</sup> |

## 用途：面向 Iceberg 的开放目录

Apache Iceberg 是一种表格式，用于管理表的数据文件和元数据文件。目录按表名跟踪最新的元数据文件路径，因此 Trino 或 Spark 等引擎可以用 SQL 按表名读写表，并创建、删除或重命名表。<sup>[10](https://docs.starburst.io/introduction/polaris-intro.html)</sup> Iceberg 0.14.0 引入的 Iceberg REST Catalog API 通过 HTTP 接口将这一功能标准化：每个引擎和语言不再需要各自实现目录专用客户端，一份客户端实现即可与任何兼容服务器配合工作。<sup>[11](https://iceberg.apache.org/docs/latest/rest-catalog/)</sup><sup> • </sup><sup>[10](https://docs.starburst.io/introduction/polaris-intro.html)</sup>

Polaris 是该规范的一个开源实现。由于它使用标准 REST 协议，许多不同的引擎无需厂商专用客户端即可集成读写功能，使其成为 [Hive 元数据存储](https://www.edgepedia.org/zh/hive-metastore)、[AWS Glue](https://www.edgepedia.org/zh/aws-glue) 和 Nessie 等目录之间的一个厂商中立选项。<sup>[12](https://techcontentwave.com/files/1765463585_309a33167bee3981175b.pdf)</sup><sup> • </sup><sup>[10](https://docs.starburst.io/introduction/polaris-intro.html)</sup>

## Polaris 管理的内容

除 Iceberg 表之外，Polaris 还管理命名空间、视图、主体、角色和策略，并通过配置的持久化后端（例如基于 JDBC 的 [PostgreSQL](https://www.edgepedia.org/zh/postgresql)）持久化这些元数据。<sup>[1](https://github.com/apache/polaris/blob/main/SECURITY-THREAT-MODEL.md)</sup><sup> • </sup><sup>[7](https://github.com/apache/polaris/blob/main/CHANGELOG.md)</sup> 各版本不断扩展其治理的对象类型：1.0.0-incubating 版本新增了策略存储，内置数据合并和快照过期等表维护策略；1.8.0 版本新增了对语义模型的一等授权支持，并修复了视图、通用表、策略和位置相关的正确性问题。<sup>[7](https://github.com/apache/polaris/blob/main/CHANGELOG.md)</sup><sup> • </sup><sup>[8](https://www.dremio.com/blog/apache-polaris-1-8-0-whats-new-breaking-changes-and-upgrade-guide/)</sup>

**联邦。** 自 1.1.0-incubating 起，Polaris 通过模块化联邦架构支持 Hive 元数据存储联邦，该架构旨在容纳多种目录类型，并提供用于管理联邦目录的 CLI 支持。<sup>[7](https://github.com/apache/polaris/blob/main/CHANGELOG.md)</sup>

## 认证、授权与凭证分发

Polaris 通过配置的机制对调用方进行认证，包括使用 OAuth2 客户端凭证的 Keycloak 等外部身份提供方，并在返回或变更元数据之前，依据 Polaris 角色、权限和策略对操作进行授权。<sup>[1](https://github.com/apache/polaris/blob/main/SECURITY-THREAT-MODEL.md)</sup><sup> • </sup><sup>[13](https://hive.apache.org/docs/latest/quickstart-rest-catalog/)</sup> 开放策略代理（OPA）授权器可作为外部策略决策点使用。<sup>[3](https://apache.org/foundation/board/minutes/Polaris.html)</sup>

凭证分发是一项核心机制：Polaris 不向引擎提供静态存储凭证，而是分发限定于已授权主体、操作和存储位置的委托凭证。例如，在 Trino 指南中，`vended-credentials-enabled` 属性使 Trino 使用 Polaris 分发的凭证访问对象存储。<sup>[9](https://polaris.apache.org/guides/trino/)</sup><sup> • </sup><sup>[1](https://github.com/apache/polaris/blob/main/SECURITY-THREAT-MODEL.md)</sup> 该项目的威胁模型将凭证分发授予超出调用方已授权操作的存储访问权限视为安全漏洞，并要求令牌的签发、交换、重置和轮换保持预期的主体、领域、角色范围、过期和撤销语义。<sup>[1](https://github.com/apache/polaris/blob/main/SECURITY-THREAT-MODEL.md)</sup><sup> • </sup><sup>[14](https://apache.googlesource.com/polaris/%2B/75dd1bbe7ad27f693e6007cf5d6870144bfb0bba/SECURITY-THREAT-MODEL.md)</sup>

## 部署与生态

Polaris 部署由一个长期运行的服务端组成，对外暴露管理和目录数据平面 API，后端由持久化存储支撑，并与对象存储和身份提供方集成。<sup>[1](https://github.com/apache/polaris/blob/main/SECURITY-THREAT-MODEL.md)</sup> 各版本以源码和二进制发行版、[Kubernetes](https://www.edgepedia.org/zh/kubernetes) Helm 图表、[Docker Hub](https://www.edgepedia.org/zh/docker-hub) 上的 Docker 镜像、Maven 构件和 Python 客户端的形式发布，全部经 GPG 签名并附 SHA-512 校验和。<sup>[15](https://github.com/apache/polaris/releases)</sup> 文档指南涵盖 PostgreSQL 和 [CockroachDB](https://www.edgepedia.org/zh/cockroachdb) 的 JDBC 持久化、Keycloak 认证、Prometheus 和 Jaeger 遥测，以及包括 Apache Ozone、Ceph、RustFS 和 MinIO 在内的存储集成，并可通过可配置的 S3 和 STS 端点支持 S3 兼容的本地存储。<sup>[16](https://polaris.incubator.apache.org/releases/)</sup><sup> • </sup><sup>[7](https://github.com/apache/polaris/blob/main/CHANGELOG.md)</sup>

引擎通过将其 Iceberg REST 目录客户端指向 Polaris 端点来连接。Trino 部署需设置 `iceberg.catalog.type=rest`、URI `http://polaris:8181/api/catalog`、仓库（目录）名称、OAuth2 安全配置，以及将请求路由到正确 Polaris 领域的 `Polaris-Realm` 头。<sup>[9](https://polaris.apache.org/guides/trino/)</sup> Hive 4.2.0 通过其 HiveRESTCatalogClient 集成，使用位于 `/api/catalog/v1/oauth/tokens` 的 OAuth2 令牌端点，以及绑定到 Polaris 主体角色的 `PRINCIPAL_ROLE:ALL` 等范围。<sup>[13](https://hive.apache.org/docs/latest/quickstart-rest-catalog/)</sup> 在 Apache Fluss 的湖仓架构中，Fluss 通过 Polaris 管理 Iceberg 表元数据，分层服务将数据写入对象存储并通过 Polaris 提交快照，随后任何兼容 Iceberg 的引擎都可以查询分层后的表。<sup>[5](https://fluss.apache.org/docs/next/streaming-lakehouse/datalake-catalogs/polaris/)</sup>

采用率随项目一同增长：2026 年 8 月的董事会报告指出，[Apache Doris](https://www.edgepedia.org/zh/apache-doris) 和 [StarRocks](https://www.edgepedia.org/zh/starrocks) 的最新版本均使用 Polaris 作为其默认的外部 Iceberg 目录。<sup>[3](https://apache.org/foundation/board/minutes/Polaris.html)</sup>

## 历史

Snowflake 发起 Polaris 是为了让 Apache Iceberg 用户实现互操作，并于 2024 年 6 月公开发布 Polaris Catalog，将其定位为基于 Iceberg 社区 REST 标准的开源目录，强调基于角色的访问控制和厂商中立的存储。<sup>[4](https://www.youtube.com/watch?v=_VISUbnPIaU)</sup> 该项目于 2024-08-09 进入 Apache 孵化器，并于 2025 年 3 月 11 日发布首个版本 0.9.0，仅提供源码发行版。<sup>[3](https://apache.org/foundation/board/minutes/Polaris.html)</sup><sup> • </sup><sup>[7](https://github.com/apache/polaris/blob/main/CHANGELOG.md)</sup> 2025 年 7 月 9 日发布 1.0.0-incubating，被描述为首个可用于真实工作负载的版本，提供二进制发行版、官方 Helm 图表、策略存储和原生 PostgreSQL JDBC 持久化；该版本也标志着向 Quarkus 的迁移。<sup>[7](https://github.com/apache/polaris/blob/main/CHANGELOG.md)</sup>

Polaris 于 2026-02-18 从孵化器毕业成为顶级项目，此后社区确立了每月发布的节奏。<sup>[3](https://apache.org/foundation/board/minutes/Polaris.html)</sup> 截至 2026 年中期，发布的版本依次为 1.4.1（2026 年 5 月 1 日）、1.5.0（2026 年 5 月 18 日）、1.6.0（2026 年 7 月 8 日）和 1.7.0（2026 年 8 月 2 日），1.8.0 于 2026 年 9 月 28 日发布。<sup>[6](https://whimsy.apache.org/board/minutes/Polaris.html)</sup><sup> • </sup><sup>[17](https://mirrors.huaweicloud.com/apache/polaris/)</sup><sup> • </sup><sup>[8](https://www.dremio.com/blog/apache-polaris-1-8-0-whats-new-breaking-changes-and-upgrade-guide/)</sup>

**社区治理。** 截至 2026 年 8 月，PMC 成员来自七个组织，包括 Dremio、Snowflake、Databricks、微软、Confluent、LanceDB 和 Red Panda，其中 46% 的 PMC 成员是在孵化期间基于功绩选举产生的，而非初始捐赠的一部分。<sup>[3](https://apache.org/foundation/board/minutes/Polaris.html)</sup> 2026 年 9 月的报告列出 32 名提交者和 19 名 PMC 成员，社区正从毕业后的稳定阶段转向通过数据共享、OpenLineage 和 Polaris 目录的设计提案来扩展目录的范围。<sup>[6](https://whimsy.apache.org/board/minutes/Polaris.html)</sup>

## 安全模型

该项目维护一份正式的威胁模型，界定其信任边界。它将认证凭证、持有者令牌、签名密钥、主体和策略元数据、可见性受 Polaris 授权管辖的目录元数据，以及存储位置和其他含 URI 的元数据视为受保护资产，并将认证绕过、授权绕过、跨目录或跨领域数据访问、凭证泄露和存储位置验证绕过列为应作为安全问题处理的发现项。<sup>[1](https://github.com/apache/polaris/blob/main/SECURITY-THREAT-MODEL.md)</sup>

该模型还说明了 Polaris 不提供哪些保护：部署基础设施、持久化后端、对象存储、身份提供方或 Kubernetes 集群被攻陷后不提供保护；不防范已授权管理员违背部署意图滥用其合法权限；除部署本身提供的措施外，不提供网络隔离、TLS 终止、防火墙或云账户隔离。<sup>[1](https://github.com/apache/polaris/blob/main/SECURITY-THREAT-MODEL.md)</sup>

## 发布与工具

配套工具包括用于迁移目录的 Iceberg 目录迁移工具、Polaris 基准测试、Polaris 同步器、Polaris 控制台 UI 和 Polaris MCP 服务器。<sup>[16](https://polaris.incubator.apache.org/releases/)</sup> 1.8.0 版本侧重于运维加固：可配置的列表分页、更严格的认证和令牌交换、针对过期提交的可重试 409 响应（而非错误请求错误）、关系型 JDBC 部署的可配置模式放置，以及两项需要对现有 PostgreSQL 和 CockroachDB 数据库执行手动操作的索引修复。<sup>[8](https://www.dremio.com/blog/apache-polaris-1-8-0-whats-new-breaking-changes-and-upgrade-guide/)</sup> [文档](https://www.edgepedia.org/zh/documentation)指出，Iceberg REST Catalog API 的修订由 Apache Iceberg 社区控制，Polaris 的某个版本不保证实现该 API 的最新版本。<sup>[18](https://polaris.incubator.apache.org/releases/1.7.0/evolution/)</sup>

## References

1. [Apache Polaris Threat Model (SECURITY-THREAT-MODEL.md), apache/polaris on GitHub](https://github.com/apache/polaris/blob/main/SECURITY-THREAT-MODEL.md)
2. [Apache Polaris homepage](https://polaris.apache.org/index.html)
3. [Board reports: Polaris, Apache Software Foundation](https://apache.org/foundation/board/minutes/Polaris.html)
4. [Introducing Polaris Catalog: An Open Source Catalog For Apache Iceberg, Snowflake Developers (YouTube, June 2024)](https://www.youtube.com/watch?v=_VISUbnPIaU)
5. [Polaris, Apache Fluss documentation](https://fluss.apache.org/docs/next/streaming-lakehouse/datalake-catalogs/polaris/)
6. [Polaris board meeting minutes (19 August 2026), Apache Whimsy](https://whimsy.apache.org/board/minutes/Polaris.html)
7. [polaris/CHANGELOG.md, apache/polaris on GitHub](https://github.com/apache/polaris/blob/main/CHANGELOG.md)
8. [Apache Polaris 1.8.0: What's New, Breaking Changes, and Upgrade Guide, Dremio blog](https://www.dremio.com/blog/apache-polaris-1-8-0-whats-new-breaking-changes-and-upgrade-guide/)
9. [Getting Started with Apache Polaris and Trino, Apache Polaris guides](https://polaris.apache.org/guides/trino/)
10. [Apache Polaris, Starburst documentation](https://docs.starburst.io/introduction/polaris-intro.html)
11. [REST Catalog, Apache Iceberg documentation](https://iceberg.apache.org/docs/latest/rest-catalog/)
12. [A Catalog for Governed Interoperability (Apache Polaris white paper)](https://techcontentwave.com/files/1765463585_309a33167bee3981175b.pdf)
13. [Hive 4.2.0 REST Catalog Integration, Apache Hive documentation](https://hive.apache.org/docs/latest/quickstart-rest-catalog/)
14. [Apache Polaris Threat Model, apache.googlesource.com](https://apache.googlesource.com/polaris/%2B/75dd1bbe7ad27f693e6007cf5d6870144bfb0bba/SECURITY-THREAT-MODEL.md)
15. [Releases, apache/polaris on GitHub](https://github.com/apache/polaris/releases)
16. [Releases, Apache Polaris documentation](https://polaris.incubator.apache.org/releases/)
17. [Index of /polaris, Apache downloads mirror](https://mirrors.huaweicloud.com/apache/polaris/)
18. [Polaris Evolution, Apache Polaris 1.7.0 documentation](https://polaris.incubator.apache.org/releases/1.7.0/evolution/)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 数据库与数据系统 › 数据挖掘、数据仓库与大数据 › 大数据平台与框架

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/apache-polaris

English original: https://www.edgepedia.org/apache-polaris
