Anand Krishnamoorthi
2858b63cd4
feat: Regorus nuget package ( #383 )
...
Organize C# binding example into separate Regorus nuget package and
a test app.
The nuget package targets netstandard 2.0 and 2.1.
The test app is tested for netframework 8.0.
Implement IDisposable for Engine cleanup.
Also remove net40 example. Can be added back later if needed.
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2025-03-25 11:31:13 -07:00
Anand Krishnamoorthi
4d2b205ef4
fix!: Update ruby json dependency ( #381 )
...
Previous version has Out-of-bounds Read in Ruby JSON Parser
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2025-03-14 13:31:12 -07:00
Anand Krishnamoorthi
4f7b9a4292
fix!: Remove ring dependency ( #380 )
...
Remove dependency on jsonwebtoken which brings in the ring crate.
Ring crate triggers governance violations.
Support for JWT will be implemented in future using a more governance
compliant crate.
BREAKING CHANGE
Prior to this PR, support for jwt builtins was minimially implemented.
Only io.jwt.decode and io.jwt.decode_verify was implemented.
With this PR, those builtins will no longer be available. They are
planned to be implemented in the future. In the meantime, they can be
brought back in via Engine::add_extension.
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2025-03-14 10:49:57 -07:00
Anand Krishnamoorthi
4a2df93ae2
fix!: Remove sha1 dependency ( #379 )
...
Removed cryptographically insecure sha1. This existed only for OPA
compatibility.
Also exclude bindings from main workspace
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2025-03-13 12:34:11 -07:00
Anand Krishnamoorthi
c963e477a3
feat: Update to OPA v1.2.0 ( #373 )
...
Regorus now defaults to rego v1. `import rego.v1` is no longer needed.
Additionally, `future` keywords are automatically imported.
See
https://www.openpolicyagent.org/docs/latest/v0-upgrade/#changes-to-rego-in-opa-v10
to understand the differences between rego v1 and v0.
BREAKING CHANGE:
v0 style policies will error out by default. To enable v0 behavior, call engine.set_rego_v0(true) before
loading policies.
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2025-03-10 11:56:01 -07:00
dependabot[bot]
cbd772623a
build(deps): update pyo3 requirement from 0.23.5 to 0.24.0 ( #375 )
...
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.23.5...v0.24.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>
2025-03-09 20:25:44 -07:00
thedavemarshall
a07beca983
Update ruby binding deps, ruby gem version 0.2.3 ( #374 )
...
* Update ruby binding deps, ruby gem version 0.2.3
* and gem version to 0.2.3
* specify bunlder and rubygems version for CI
2025-03-07 16:24:29 -08:00
Anand Krishnamoorthi
a3edb6c88c
build(deps): update pyo3 requirement from 0.22.0 to 0.23.5 ( #372 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2025-03-04 15:44:24 -08:00
Anand Krishnamoorthi
a1777fb7d3
build(deps): update rand requirement from 0.8.5 to 0.9.0 ( #370 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2025-03-04 07:06:43 -08:00
dependabot[bot]
11aaa555aa
build(deps): update cbindgen requirement from 0.27.0 to 0.28.0 ( #361 )
...
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/v0.27.0...0.28.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>
2025-03-03 16:23:44 -08:00
Anand Krishnamoorthi
6174af1781
Update dependencies ( #369 )
...
Specify `js` feature for `uuid` when building wasm by
specifying it as a non-optional dependency in wasm binding's Cargo.toml.
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2025-03-03 15:53:47 -08:00
Anand Krishnamoorthi
1bfe38f9af
fix: Lock wasm-bindgen version to 0.2.94 ( #342 )
...
v0.2.95 causes a crash with wasm tests in CI
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-11-06 12:04:59 -08:00
dependabot[bot]
5bf7cd7cc8
build(deps): bump rexml ( #337 )
...
Bumps the bundler group with 1 update in the /bindings/ruby directory: [rexml](https://github.com/ruby/rexml ).
Updates `rexml` from 3.3.6 to 3.3.9
- [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.6...v3.3.9 )
---
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-11-04 08:53:08 -08:00
Anand Krishnamoorthi
df73b20192
build(deps): update jsonschema requirement from 0.22.3 to 0.23.0 ( #331 )
2024-10-15 10:29:41 -07:00
Anand Krishnamoorthi
adb9da0c0c
fix: Null terminate C# strings in Rust boundary ( #318 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-09-18 13:58:51 -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
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
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
20eece58ed
Update binding versions ( #287 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-07-28 12:32:39 +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
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
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
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
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
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
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
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
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
Anand Krishnamoorthi
de56cce7cb
Fix anyhow dependency issues ( #208 )
...
- Do not require backtrace feature
- Starting version 1.0.77, anyhow gathers backtrace is std feature (enabled by default)
is specified even if backtrace feature is not enabled.
Therefore specify default features as false.
- Specify version 1.0.45 since that is the minimul version required to successfully
compile regorus
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-04-20 09:57:52 -07:00
thedavemarshall
6a167143cb
update ruby bindings ( #200 )
2024-04-10 07:28:25 +05:30
dependabot[bot]
0ebcb568cc
Update pyo3 requirement from 0.20.2 to 0.21.0 ( #190 )
...
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.20.2...v0.21.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-04-02 08:14:50 +05:30
thedavemarshall
e86801bdd9
Ruby bindings for existing FFI methods, plus eval_rule() ( #188 )
...
* Ruby binding
* use relative regorus crate in ruby instead of a published version, also cargo fmt
* remove unnecessary Cargo.toml, include the top level Cargo.lock in ruby gem
* ruby bindings continued- add eval_rule, fix _json methods, update README.md
also added rubocop-minitest and rubocop-rake, and added more test coverage
* update README.md to include Ruby bindings
Closes #191
2024-04-02 08:14:29 +05:30
Anand Krishnamoorthi
0e053832db
chore: release ( #157 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-22 21:18:49 -08:00
Burak
22047287b4
Java publishing ( #151 )
...
* bindings/java: Add prefix to native methods
* bindings/java: Add javadocs and missing methods to Engine
* Setup publishing uber-JAR via GitHub workflow
* bindings/java: Update README
* bindings/java: Improve native library loading from JAR
* bindings/java: Fix usage of `working-directory`
* bindings/java: Pass required `distribution` parameter to `actions/setup-java@v4`
* bindings/java: Use Corretto distribution
This is because Microsoft doesn't provide JDK8,
see https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-8 .
* bindings/java: Install GCC toolchain for `aarch64-unknown-linux-gnu`
* bindings/java: Upload artifacts with different names from each step
* bindings/java: Upload built JARs to GitHub
2024-02-22 15:00:07 -08:00
Burak
bdb2aba596
Java bindings ( #147 )
2024-02-18 08:21:58 -08:00
Anand Krishnamoorthi
bb1b25ff2f
chore: release ( #137 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-08 07:09:22 -08:00
Anand Krishnamoorthi
dda525b989
C++ binding ( #129 )
...
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-02-05 00:22:27 -08:00
Anand Krishnamoorthi
22260ac46f
Bindings for C, C#, Golang ( #124 )
...
* FFI bindings
Generate C FFI as well as C# FFI
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
* Regorus C binding
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
* C# binding
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
* Golang binding
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
---------
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-02-04 19:50:44 -08:00
Anand Krishnamoorthi
1ab27b253b
chore: release ( #121 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-01 16:16:33 -08:00
Anand Krishnamoorthi
761d11ef48
Document bindings ( #119 )
...
* Instructions for WASM/JS binding
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
* Document Python, WASM/JS bindings
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
---------
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com >
2024-02-01 13:47:27 -08:00