cedar_policy 0.6.0-aarch64-linux-gnu → 0.7.0-aarch64-linux-gnu
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +33 -0
- data/README.md +3 -3
- data/lib/cedar_policy/3.0/cedar_policy.so +0 -0
- data/lib/cedar_policy/3.1/cedar_policy.so +0 -0
- data/lib/cedar_policy/3.2/cedar_policy.so +0 -0
- data/lib/cedar_policy/3.3/cedar_policy.so +0 -0
- data/lib/cedar_policy/3.4/cedar_policy.so +0 -0
- data/lib/cedar_policy/version.rb +1 -1
- data/lib/cedar_policy.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f0c6563284f6912177284aa25f16bcc34f17a8b6801a2f18ff638ceaff2865d
|
|
4
|
+
data.tar.gz: f1ca2c31f318aa87c730638c7bc6fd88163e11869ae19db9402cd2a3b3c15f40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5581059dcd7df6c86bf154063ae3f01d684cea7e3592d8266161cbdb4e7e87a7c42116e44d5a5b31d9499b830816bb0c6f90b059197627008de59d3056eff72
|
|
7
|
+
data.tar.gz: af8fa0298cae30820a0ee6198755766825ce14ce3a72760cc5dd6916afaff94a68965e943d228b9ab060017e6a705f8ced6d63467c0966fc9c11eaad6be59fa8
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{".":"0.
|
|
1
|
+
{".":"0.7.0"}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.0](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.2...v0.7.0) (2026-02-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add policy_ids method to PolicySet ([3812daf](https://github.com/elct9620/cedar-policy-rb/commit/3812dafce10a6574c07316ec73e2e45c15fdcd9f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** enable stable-api-compiled-fallback for Ruby 4.0 support ([c3603ec](https://github.com/elct9620/cedar-policy-rb/commit/c3603ec67e0aa25cba9f57a08c2906a1bb43ccce))
|
|
14
|
+
|
|
15
|
+
## [0.6.2](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.1...v0.6.2) (2025-08-26)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* improve Ruby version compatibility and cross-compilation ([e08a3a0](https://github.com/elct9620/cedar-policy-rb/commit/e08a3a0c2266a1feb74a83ee38705205653f3625))
|
|
21
|
+
* revert rb_sys to 0.9.116 and restore mingw support ([6646b08](https://github.com/elct9620/cedar-policy-rb/commit/6646b08aea8954b0071b29936d03b48854eb203a))
|
|
22
|
+
* select correct minimal ruby version for different platform ([9d9fc09](https://github.com/elct9620/cedar-policy-rb/commit/9d9fc09a4c8dec6269cd05b22774c5e03aeb2dce))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Reverts
|
|
26
|
+
|
|
27
|
+
* restore rb_sys to 0.9.117 after investigation ([f1e77dd](https://github.com/elct9620/cedar-policy-rb/commit/f1e77ddca61b7c48575c6548620a76cc5954524e))
|
|
28
|
+
|
|
29
|
+
## [0.6.1](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.0...v0.6.1) (2025-08-26)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Miscellaneous Chores
|
|
33
|
+
|
|
34
|
+
* release-as 0.6.1 ([882b4d9](https://github.com/elct9620/cedar-policy-rb/commit/882b4d9566a09f733195fc8216032a2fd0f3c7b9))
|
|
35
|
+
|
|
3
36
|
## [0.6.0](https://github.com/elct9620/cedar-policy-rb/compare/v0.5.3...v0.6.0) (2025-06-12)
|
|
4
37
|
|
|
5
38
|
|
data/README.md
CHANGED
|
@@ -40,7 +40,7 @@ policy_set = CedarPolicy::PolicySet.new(policy)
|
|
|
40
40
|
Prepare the Entity's ID via `EntityUid` or an object with `#to_hash` method which returns a hash with `:type` and `:id` keys.
|
|
41
41
|
|
|
42
42
|
```ruby
|
|
43
|
-
principal = CedarPolicy::EntityUid.new("
|
|
43
|
+
principal = CedarPolicy::EntityUid.new("AdminUser", "1") # or { type: "AdminUser", id: "1" }
|
|
44
44
|
action = CedarPolicy::EntityUid.new("Action", "view")
|
|
45
45
|
resource = CedarPolicy::EntityUid.new("Image", "1")
|
|
46
46
|
```
|
|
@@ -85,10 +85,10 @@ Create an `Authorizer` object and authorize the request with the policy set and
|
|
|
85
85
|
authorizer = CedarPolicy::Authorizer.new
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
If boolean result is enough, use `#
|
|
88
|
+
If boolean result is enough, use `#authorized?` method.
|
|
89
89
|
|
|
90
90
|
```ruby
|
|
91
|
-
authorizer.
|
|
91
|
+
authorizer.authorized?(request, policy_set, entities) # => true
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
If you want to get the decision object, use `#authorize` method.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/cedar_policy/version.rb
CHANGED
data/lib/cedar_policy.rb
CHANGED
|
@@ -4,12 +4,18 @@ require "json"
|
|
|
4
4
|
require "set"
|
|
5
5
|
|
|
6
6
|
require_relative "cedar_policy/version"
|
|
7
|
-
require_relative "cedar_policy/cedar_policy"
|
|
8
7
|
require_relative "cedar_policy/entity_uid"
|
|
9
8
|
require_relative "cedar_policy/entity"
|
|
10
9
|
require_relative "cedar_policy/entities"
|
|
11
10
|
require_relative "cedar_policy/context"
|
|
12
11
|
|
|
12
|
+
begin
|
|
13
|
+
RUBY_VERSION =~ /(\d+\.\d+)/
|
|
14
|
+
require "cedar_policy/#{Regexp.last_match(1)}/cedar_policy"
|
|
15
|
+
rescue LoadError
|
|
16
|
+
require "cedar_policy/cedar_policy"
|
|
17
|
+
end
|
|
18
|
+
|
|
13
19
|
# :nodoc:
|
|
14
20
|
module CedarPolicy
|
|
15
21
|
class Error < StandardError; end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cedar_policy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: aarch64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- Aotokitsuruya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby bindings for Cedar policy evaluation engine.
|
|
14
14
|
email:
|