forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix eval of objects/sets containing vars
If object keys (or set elements) are vars, then they must be plugged before lookup is attempted, otherwise lookup will fail and expression will be undefined. This could result in poor performance if rule outputs are large enough. In that case, we could revisit how the rule outputs are constructed (e.g., we could construct outputs with the first level of set/object plugged and propagate binding lists for each key/value pair.) Also, updated test runner to accept OPA_TRACE_TEST environment var to selectively enable tracing output. This is useful for debugging purposes. Fixes open-policy-agent#505
- Loading branch information
Showing
2 changed files
with
63 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters