Anand Krishnamoorthi
edd0ccca5b
fix: Issues #302 , #303 ( #304 )
...
Handle undefined values correctly in ordered-else. Previously an undefined value
in one of the blocks could cause the entire rule to evaluate to undefined.
Handle undefined values correctly in generic rule refs to prevent them from
propagating to output.
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-08-29 09:47:45 -07:00
dependabot[bot]
fec6f8f8b4
Bump rexml in /bindings/ruby in the bundler group across 1 directory ( #300 )
...
Bumps the bundler group with 1 update in the /bindings/ruby directory: [rexml](https://github.com/ruby/rexml ).
Updates `rexml` from 3.3.3 to 3.3.6
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.3.3...v3.3.6 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: indirect
dependency-group: bundler
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-22 14:13:29 -07:00
Anand Krishnamoorthi
dff65f0329
chore: release ( #298 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
regorus-v0.2.3
2024-08-16 08:45:52 -07:00
dependabot[bot]
6bf40c7394
Update cbindgen requirement from 0.26.0 to 0.27.0 ( #296 )
...
Updates the requirements on [cbindgen](https://github.com/mozilla/cbindgen ) to permit the latest version.
- [Release notes](https://github.com/mozilla/cbindgen/releases )
- [Changelog](https://github.com/mozilla/cbindgen/blob/master/CHANGES )
- [Commits](https://github.com/mozilla/cbindgen/compare/0.26.0...v0.27.0 )
---
updated-dependencies:
- dependency-name: cbindgen
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-12 09:09:53 -07:00
Anand Krishnamoorthi
a488a84969
fix: Match OPA behavior for split ( #295 )
...
In case of empty delimiter, Rust's split returns leading and trailing
empty strings whereas Golang's doesn't.
Change behavior to match Golang/OPA.
fixes #291
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-08-08 14:53:01 -07:00
dependabot[bot]
e4a58ad1dc
Bump rexml in /bindings/ruby in the bundler group across 1 directory ( #294 )
...
Bumps the bundler group with 1 update in the /bindings/ruby directory: [rexml](https://github.com/ruby/rexml ).
Updates `rexml` from 3.3.2 to 3.3.3
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.3.2...v3.3.3 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: indirect
dependency-group: bundler
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 13:08:09 -07:00
dependabot[bot]
430a453fde
Update csbindgen requirement from =1.9.0 to =1.9.3 ( #292 )
...
Updates the requirements on [csbindgen](https://github.com/Cysharp/csbindgen ) to permit the latest version.
- [Release notes](https://github.com/Cysharp/csbindgen/releases )
- [Commits](https://github.com/Cysharp/csbindgen/compare/1.9.0...1.9.3 )
---
updated-dependencies:
- dependency-name: csbindgen
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 11:39:56 -07:00
Anand Krishnamoorthi
ef549a6528
fix: Merge data to init document ( #293 )
...
Init document is the aggregated data documen that the user has
specified using multiple `add_data` calls. Each query evaluation
starts of by initializing the current data to the init document.
Previously `add_data` was incorrectly added to the current document,
causing the added data to be lost if the addition happened after query
evaluation.
With this fix, scenarios where data addition may be interspersed with
query evaluation calls are supported.
Also provide a get_data method to obtain the (init) data document.
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-08-07 11:39:23 -07:00
Anand Krishnamoorthi
52afcbe5c5
chore: release ( #289 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
regorus-v0.2.2
2024-07-28 13:19:09 +05:30
Anand Krishnamoorthi
f0576cef77
Update readme ( #288 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-07-28 13:04:47 +05:30
Anand Krishnamoorthi
20eece58ed
Update binding versions ( #287 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-07-28 12:32:39 +05:30
Anand Krishnamoorthi
6599ce6001
feat: Update to opa v0.67.0 ( #286 )
...
Implement strings.count builtin
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-07-28 11:46:07 +05:30
Anand Krishnamoorthi
7095e269b7
fix: Handle aliases in scheduler ( #285 )
...
Earlier scheduler only recognized rules and would raise an
`unsafe var` error on alias.
Register alias var names to fix this.
fixes #284
Also fix clippy warning treated as error
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-07-27 23:26:53 +05:30
Stuart Neivandt
6e1f8cdb36
build.rs create hooks dir if not exists ( #283 )
2024-07-21 10:27:51 +05:30
Jie Yang
fb5151e0e4
add extension_list example ( #281 )
...
- Created an example of extension policy
- Added C# binding support of .NET framework 4.0 and created a Nuget
spec for it.
- Added a pytest in python bindings to test the extension policy and the
python binding
- Restructured the example and Csharp binding directories due to above
changes.
- Added copyrights.
- Added a Windows workflow for .NET 4.0 build and test.
2024-07-16 11:08:37 +05:30
Anand Krishnamoorthi
37d283cb38
Fix build break ( #278 )
...
- Fix warning due to use of deprecated function.
This was causing a build issue in the hava and csharp bindings
- Lock use of csbindgen@1.9.0
The newer version 1.9.2 causes a "type of namespace C could not be fond" error
In the generated code, struct inherits from C instead of uint
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-07-12 05:28:25 +05:30
dependabot[bot]
25dbd27d82
Update pyo3 requirement from 0.21.0 to 0.22.0 ( #275 )
...
Updates the requirements on [pyo3](https://github.com/pyo3/pyo3 ) to permit the latest version.
- [Release notes](https://github.com/pyo3/pyo3/releases )
- [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md )
- [Commits](https://github.com/pyo3/pyo3/compare/v0.21.0...v0.22.0 )
---
updated-dependencies:
- dependency-name: pyo3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-01 09:51:50 +05:30
Anand Krishnamoorthi
292948a694
Update to OPA v0.66.0 ( #274 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-06-28 08:57:03 +05:30
Anand Krishnamoorthi
5a0048cd64
chore: release ( #271 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
regorus-v0.2.1
2024-06-19 16:09:03 -07:00
Anand Krishnamoorthi
4a2a724a80
Fix c,cpp,no-std binding examples ( #272 )
...
- Use regorus_ffi in target_link_libraries instead of regorus-ffi.
Something seems to have changed in corrosion-rs to need this.
- Workaround for cmake issue where FFI header may not be generated in time
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-06-19 16:01:29 -07:00
Anand Krishnamoorthi
46e28b36f8
feat: get_policies: Way to obtain policy files and content ( #267 )
...
closes #254
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-06-19 00:01:55 -07:00
Anand Krishnamoorthi
ee898e112e
Update binding versions for next release ( #270 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-06-18 23:39:12 -07:00
balcanuc
e6f2ec825d
rename method from 'Clone' to 'clone' in 'Engine' class to match the java naming convention and definiont in the of java.lang.Object. ( #268 )
...
Co-authored-by: Cristi Balcanu <balcanu@amazon.com >
2024-06-18 20:46:21 -07:00
Anand Krishnamoorthi
45627aa64a
Suppress clippy unused warning ( #269 )
...
The field will be used later.
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-06-18 10:28:02 -07:00
Anand Krishnamoorthi
df98c8d168
Provide ability to get JSON representation of policy AST ( #266 )
...
closes #265
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-06-08 18:58:30 -07:00
Anand Krishnamoorthi
25902bab57
Update OPA tests to v0.65.0 ( #264 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-06-04 20:19:35 -07:00
Anand Krishnamoorthi
e62bfdf161
Allow lexer to be used for other policy languages ( #262 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-06-04 19:59:54 -07:00
Anand Krishnamoorthi
658f34753b
chore: release ( #260 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
regorus-v0.2.0
2024-05-30 06:35:12 -07:00
Anand Krishnamoorthi
5eda76fd00
Add release-plz config to publish only regorus package ( #259 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-30 06:26:10 -07:00
Anand Krishnamoorthi
97914d5596
Revert "chore: release v0.2.0 ( #257 )" ( #258 )
...
This reverts commit ffb79f1b30 .
2024-05-30 06:09:47 -07:00
Anand Krishnamoorthi
ffb79f1b30
chore: release v0.2.0 ( #257 )
...
v0.2.0
Signed-off-by: Anand Krishnamoorthi <35780660+anakrish@users.noreply.github.com >
---------
Signed-off-by: Anand Krishnamoorthi <35780660+anakrish@users.noreply.github.com >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-30 05:45:43 -07:00
Anand Krishnamoorthi
536c6ede5c
Fix release-plz hash ( #256 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-30 05:12:24 -07:00
Anand Krishnamoorthi
ff0adf054e
every: non collections should evaluate to false ( #253 )
...
See https://github.com/open-policy-agent/opa/pull/6763
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-28 06:25:13 -07:00
Anand Krishnamoorthi
2b82f2842f
Fix merge issue ( #252 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-25 14:01:12 -07:00
Anand Krishnamoorthi
d09c445add
Update bindings to include newer APIs ( #250 )
...
- c, cpp
- csharp
- ffi
- go
- Java
- Python
- WASM
`arc` feature is turned on for all bindings
Use pretty string instead of colored string.
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-25 10:24:06 -07:00
thedavemarshall
33fe9d5039
update ruby bindings version to 0.1.5, bump deps ( #251 )
...
* update ruby bindings version to 0.1.5, bump deps
* update ruby bindings for coverage and print methods
2024-05-24 07:57:39 -07:00
Anand Krishnamoorthi
3d08f6eef9
Use correct docsrs feature annotation ( #248 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-23 08:31:09 -07:00
Anand Krishnamoorthi
3ac9b1121e
Lockdown kata test prints as well as prints of various values ( #249 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-23 08:30:41 -07:00
Anand Krishnamoorthi
9894f00829
Fix bindings and add CI tests ( #247 )
...
Also update version numbers of binding Rust projects to match Regorus
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-22 08:15:42 -07:00
thedavemarshall
495e91c75a
Add test-ruby CI for github actions ( #244 )
...
https://github.com/oxidize-rb/actions/blob/main/setup-ruby-and-rust/readme.md
2024-05-20 15:53:36 -07:00
Burak
25ac1b6c95
Update README.md for Java bindings to mention we don't publish to ( #246 )
...
Maven Central currently
2024-05-20 08:15:39 -07:00
dependabot[bot]
209ece9dee
Update itertools requirement from 0.12.1 to 0.13.0 ( #245 )
...
Updates the requirements on [itertools](https://github.com/rust-itertools/itertools ) to permit the latest version.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.12.1...v0.13.0 )
---
updated-dependencies:
- dependency-name: itertools
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-19 20:33:23 -07:00
thedavemarshall
0952d42432
Update ruby bindings for add_policy and add_policy_from_file to return package name ( #240 )
2024-05-18 08:18:36 -07:00
Anand Krishnamoorthi
56bd8841d0
Provide a way to obtain package names of loaded policies ( #239 )
...
Engine::
- add_policy and add_policy_from_file return the package name.
- get_packages returns the names of loaded packages.
closes #229
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-18 08:02:54 -07:00
Anand Krishnamoorthi
67f65c0561
c_no_std binding to show use in C freestanding environments. (#238 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-17 18:31:11 -07:00
dependabot[bot]
5422bde391
Bump rexml in /bindings/ruby in the bundler group across 1 directory ( #236 )
...
Bumps the bundler group with 1 update in the /bindings/ruby directory: [rexml](https://github.com/ruby/rexml ).
Updates `rexml` from 3.2.6 to 3.2.8
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.2.6...v3.2.8 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: indirect
dependency-group: bundler
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-17 07:25:21 -07:00
dependabot[bot]
68a0f8fcce
Update prettydiff requirement from 0.6.4 to 0.7.0 ( #234 )
...
---
updated-dependencies:
- dependency-name: prettydiff
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-13 07:09:58 -07:00
dependabot[bot]
97b70a1c1b
Update jsonschema requirement from 0.17.1 to 0.18.0 ( #235 )
...
Updates the requirements on [jsonschema](https://github.com/Stranger6667/jsonschema-rs ) to permit the latest version.
- [Release notes](https://github.com/Stranger6667/jsonschema-rs/releases )
- [Changelog](https://github.com/Stranger6667/jsonschema-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stranger6667/jsonschema-rs/compare/rust-v0.17.1...rust-v0.18.0 )
---
updated-dependencies:
- dependency-name: jsonschema
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-13 06:54:07 -07:00
Anand Krishnamoorthi
e86b590f91
no_std support ( #232 )
...
- Disable default features in dependencies
- Use anyhow::Error::msg to map errors. Note: anyhow will itself be removed later.
- lazy_static/spin_no_std used in no_std environments
- ensure_no_std binary is built to target thumbv7m-none-eabi to ensure that
there are no std dependencies. thumbv7m-none-eabi target has no std support.
- The opa-no-std feature enables only those Regorus features that work with no_std.
- Enable tests with no_std
- Update sizes of regorus binary in README.md
- Ensure that regorus example can be built with only std
- Ensure that regorus example can be built with no_std
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-13 06:42:35 -07:00
Anand Krishnamoorthi
01fc234a33
add std feature ( #231 )
...
- `std` feature is enabled by default
- By default enable #![no_std] compilation
- Import std create if `std` feature is enabled or if testing
- Use core, alloc types
- Make it clear where std types are being used
- In no std, use BTreeMap in place of HashMap.
HashMap is not available in no std due to lack of a
secure random number generator
Note: The project does not yet compile without std feature being specified.
But it's really close to being able to do so.
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-05-09 11:28:42 -07:00