Automic VaultAutomic Vault

brew

使用 Homebrew, apk, zypper, scoop 安装 opa

查看 opa 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install opa

local Homebrew formula metadata

Windows

Scoop已验证 · 92%
scoop install main/opa

Scoop 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.

时间线

  • 2018-03-29: OPA was accepted into the CNCF.
  • 2019-04-02: OPA moved to CNCF Incubating maturity.
  • 2019: Kubernetes Gatekeeper work helped make OPA a common choice for admission control and cluster policy.
  • 2021-01-29: OPA reached CNCF Graduated maturity.
  • 2021-02-04: CNCF announced OPA's graduation and summarized contributor, maintainer, and adopter data.

Related projects

  • Related projects include OPA Gatekeeper, Conftest, Rego Playground, Kubernetes admission webhooks, Envoy external authorization integrations, SPIFFE/SPIRE, Helm, CoreDNS, and other policy-as-code tooling.

安全态势

尚未找到受保护工具覆盖

没有找到 opa 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
opacli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.18.2
管理器更新时间2026-07-02
本地数据OK
上游当前
检测到的最新版本v1.18.2

https://github.com/open-policy-agent/opa

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameopa
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

apk95%

opa 1.15.2-r1

Open source, general-purpose policy engine

https://www.openpolicyagent.org/

sudo apk add opa
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: opa
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Opa
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: opa from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

opa-bash-completion 1.15.2-r1

Bash completions for opa

https://www.openpolicyagent.org/

sudo apk add opa-bash-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: opa
  • normalized package name match
  • 匹配方式:Opa
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: opa-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

opa-doc 1.15.2-r1

Open source, general-purpose policy engine (documentation)

https://www.openpolicyagent.org/

sudo apk add opa-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: opa
  • normalized package name match
  • 匹配方式:Opa
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: opa-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

opa-fish-completion 1.15.2-r1

Fish completions for opa

https://www.openpolicyagent.org/

sudo apk add opa-fish-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: opa
  • normalized package name match
  • 匹配方式:Opa
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: opa-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

opa-zsh-completion 1.15.2-r1

Zsh completions for opa

https://www.openpolicyagent.org/

sudo apk add opa-zsh-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: opa
  • normalized package name match
  • 匹配方式:Opa
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: opa-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
zypper95%

opa 1.17.1-1.1

Open source, general-purpose policy engine

https://github.com/open-policy-agent/opa

sudo zypper install opa
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: opa
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Opa
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: opa from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

opa-bash-completion 1.17.1-1.1

Bash Completion for opa

https://github.com/open-policy-agent/opa

sudo zypper install opa-bash-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: opa
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Opa
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: opa-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

opa-fish-completion 1.17.1-1.1

Fish Completion for opa

https://github.com/open-policy-agent/opa

sudo zypper install opa-fish-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: opa
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Opa
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: opa-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

opa-zsh-completion 1.17.1-1.1

Zsh Completion for opa

https://github.com/open-policy-agent/opa

sudo zypper install opa-zsh-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: opa
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Opa
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: opa-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
Scoop95%

main/opa

scoop install main/opa
  • normalized package name match
  • 匹配方式:Opa
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/opa.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment