opa icon indicating copy to clipboard operation
opa copied to clipboard

Open Policy Agent (OPA) is an open source, general-purpose policy engine.

Results 459 opa issues
Sort by recently updated
recently updated
newest added

The `http.send()` and `net.lookup_ip_addr()` built-in functions can be allow-listed by host through the `allow_net` Capabilities param. This feature is, however, limited to the `eval` command. If capabilities could also be...

feature-request
inactive

TL;DR: if you are checking for membership in a partial set iteratively (in another partial rule, or in a comprehension), and it seems very slow, try copying the partial set...

bug
performance

## Short description * OPA version: `0.58.0` * Executing: `docker run ... opa test --verbose` results in a timeout exit after 5s * Executing: `docker run ... opa test` works...

bug
inactive
requires-investigation

As one of the most common errors, we should strive to make type error messages as easy to understand as possible. Simplified / silly example, but it'll work well for...

feature-request
usability
rego

If a policy has two `METADATA` blocks declared back-to-back, with no empty lines in-between, e.g.: ```rego package play # METADATA # title: Ps # scope: document # METADATA # title:...

bug
inactive

In the docs, a section should be added where, for each deprecated built-in, an alternative function call or snippet of Rego is described. When running `opa check` and `opa fmt`...

feature-request

A danger of using custom annotations not organized into the `custom` annotation in a `METADATA` comment block is that your policy is vulnerable to future OPA updates. E.g. the following...

feature-request
usability
rego
strict-mode

It would be very useful if the unit test system allowed for some type of simple "data driven" parameterization of tests where one of the mocked inputs could be parameterized...

feature-request
inactive

```bash ./opa run --server --log-level debug policy.rego {"current_version":"0.58.0","level":"debug","msg":"OPA is up to date.","time":"2023-11-03T10:32:03+01:00"} ``` This is basic policy: ```rego package test import future.keywords.if default allow := false allowed(_) if { input.subject.on_duty...

bug
partial-eval
inactive

## Short description any_prefix_match and any_suffix_match builtin constructs a trie index [internally](https://github.com/open-policy-agent/opa/blob/8a8dd09f78f93f7e4164ee84af36c3056147ff6d/topdown/strings.go#L93-L113) every time the builtin is invoked. If the input is a reference to data there is possibility of...

feature-request
inactive