macOS
brew install opalocal Homebrew formula metadata
安装
brew install opalocal Homebrew formula metadata
sudo apk add opaAlpine Linux edge package indexes · opa · 来源: dl-cdn.alpinelinux.org
sudo zypper install opaopenSUSE Tumbleweed package metadata · opa · 来源: download.opensuse.org
scoop install main/opaScoop official bucket manifest trees · bucket/opa.json · 来源: api.github.com
概览
Open source, general-purpose policy engine
历史
Open Policy Agent, usually invoked as opa, is a general-purpose policy engine for policy-as-code. It lets teams move authorization and operational policy out of application code into Rego policies evaluated by a standalone binary, sidecar, library, or service integration.
OPA was created to provide a unified policy decision point across the stack. The official docs describe it as an open-source, general-purpose policy engine with simple APIs for offloading policy decisions and a high-level declarative language, Rego, for writing policies against structured data.
OPA entered the Cloud Native Computing Foundation on March 29, 2018, moved to Incubating on April 2, 2019, and reached Graduated maturity on January 29, 2021. CNCF's graduation announcement emphasized open governance, feature maturity, sustainability, and production use across cloud-native environments.
By the 2021 CNCF graduation announcement, OPA had more than 90 contributors from roughly 30 organizations, maintainers from Google, Microsoft, VMware, and Styra, and production adoption at organizations including Goldman Sachs, Netflix, Pinterest, and T-Mobile. CNCF also reported survey data from more than 150 organizations, with 91% using OPA in some stage from QA to production.
OPA's ecosystem expanded through Kubernetes admission control, Envoy authorization, CI/CD checks, API gateways, service meshes, and infrastructure-as-code validation. Gatekeeper became the Kubernetes-native policy-controller companion, while related tools such as Conftest and OPA's official ecosystem entries made the opa binary useful both in clusters and in developer workflows.
Developers write Rego policies and feed OPA JSON-like input and data. The opa CLI is used to run policies locally, test Rego, build bundles, evaluate decisions, and support CI checks; services can call OPA over APIs or embed policy evaluation into a broader control plane.
Platform and security teams use OPA to enforce Kubernetes admission rules, API authorization, deployment guardrails, configuration rules, and audit policies without hard-coding every rule in each application. The same policy language can be reused from local command-line checks to production admission controllers.
OPA is one of the canonical examples of a single CLI package representing a much larger cloud-native control-plane concept. The Homebrew formula is just opa, but the binary brings a policy language, evaluator, test runner, bundle format, server mode, WebAssembly targets, and a CNCF ecosystem with it.
安全态势
没有找到 opa 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
opa | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/open-policy-agent/opa
安装元数据
| 软件包键 | brew:opa |
|---|---|
| 版本 | 1.18.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/opa |
| 主页 | https://www.openpolicyagent.org |
| 仓库 | https://github.com/open-policy-agent/opa |
| 上游文档 | https://www.openpolicyagent.org/docs/latest |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/open-policy-agent/opa/archive/refs/tags/v1.18.2.tar.gz |
| 最后更新 | 2026-07-02T16:41:00Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | opa |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
opa 1.15.2-r1
Open source, general-purpose policy engine
https://www.openpolicyagent.org/
sudo apk add opaopa-bash-completion 1.15.2-r1
Bash completions for opa
https://www.openpolicyagent.org/
sudo apk add opa-bash-completionopa-doc 1.15.2-r1
Open source, general-purpose policy engine (documentation)
https://www.openpolicyagent.org/
sudo apk add opa-docopa-fish-completion 1.15.2-r1
Fish completions for opa
https://www.openpolicyagent.org/
sudo apk add opa-fish-completionopa-zsh-completion 1.15.2-r1
Zsh completions for opa
https://www.openpolicyagent.org/
sudo apk add opa-zsh-completionopa 1.17.1-1.1
Open source, general-purpose policy engine
https://github.com/open-policy-agent/opa
sudo zypper install opaopa-bash-completion 1.17.1-1.1
Bash Completion for opa
https://github.com/open-policy-agent/opa
sudo zypper install opa-bash-completionopa-fish-completion 1.17.1-1.1
Fish Completion for opa
https://github.com/open-policy-agent/opa
sudo zypper install opa-fish-completionopa-zsh-completion 1.17.1-1.1
Zsh Completion for opa
https://github.com/open-policy-agent/opa
sudo zypper install opa-zsh-completionmain/opa
scoop install main/opa来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.