Releases: el-mike/restrict
Releases · el-mike/restrict
v2.0.0
2.0.0
- Allows Subject to have multiple roles
- Errors API changes:
AccessDeniedError
now hasReasons
property, containing one or morePermissionErrors
describing what exactly went wrong
for every Role of the Subject and Action in the RequestPermissionError
now hasConditionErrors
property, containing zero or moreConditionNotSatisfiedErrors
describingCondition
failures for given Permissions
- properties of
AccessDeniedError
andPermissionError
are now public - Allows to perform complete validation when
AccessRequest.CompleteValidation
is set to true- Defaults to false (fail-early strategy)
- When using
CompleteValidation
, all Policy errors will be collected and returned at once, instead of failing on
first encountered Policy error
Release notes from commits
- feat: handling multiple roles by @el-mike in #49
- feat: adding validation strategy option, handling errors in complete validation mode by @el-mike in #50
- chore: adding integration test for complete validation strategy" by @el-mike in #51
- chore: error messages updates, readme update by @el-mike in #53
- chore: readme update by @el-mike in #52
- feat: updating errors api by @el-mike in #54
- chore: documentation updates by @el-mike in #55
Full Changelog: v1.0.2...v2.0.0
v1.0.2
v1.0.1
Release v1.0.0
Going stable!
Full Changelog: v0.2.2...v1.0.0
v0.2.2
Full Changelog: v0.2.1...v0.2.2
v0.2.1
Pre-release v0.2.0
What's Changed
- feat: condition type and name by @el-mike in #20
- feat: api for allowing preliminary authorization by @el-mike in #21
- feat: authorize error return strategy by @el-mike in #22
- chore: inmemoryadapter testing by @el-mike in #23
- chore: fileadapter testing by @el-mike in #24
- chore: mocks changes, basic access manager testing by @el-mike in #25
- chore: accessmanager testing by @el-mike in #26
- chore: conditions testing, fixes by @el-mike in #27
- chore: permissions testing, api simplifying by @el-mike in #28
- chore: policy manager testing, private mocks, policy manager fixes by @el-mike in #29
- feat: private error constructors by @el-mike in #30
- chore: value descriptor testing by @el-mike in #31
- chore: is equal condition testing by @el-mike in #32
- chore: comments revisions, file perm setter for file adapter by @el-mike in #33
- feat: simplify permission presets handling by @el-mike in #34
- feat: role id from map key by @el-mike in #35
- fix: lint fix by @el-mike in #36
- feat: not equal condition, improvements by @el-mike in #37
- feat: empty condition by @el-mike in #38
- chore: renaming condition files by @el-mike in #39
- chore: general testing, file adapter fixes, error handling improvements by @el-mike in #40
- chore: custom condition testing, public condition error by @el-mike in #41
Full Changelog: v0.1.1...v0.2.0
Pre-release v0.1.0
What's Changed
- Feature/permissions setup by @el-mike in #1
- chore: type improvements and cleanups by @el-mike in #2
- feat: json and yaml files persistance handling by @el-mike in #3
- feat: policy manager entity by @el-mike in #4
- feat: runtime policy management by @el-mike in #5
- feat: access manager return strategy by @el-mike in #6
- feat: reusable permission presets by @el-mike in #7
- feat: is_owner condition by @el-mike in #8
- feat: enitities handling by @el-mike in #9
- feat: conditions declaration update by @el-mike in #10
- feat: is_equal condition simplification, value descriptors by @el-mike in #11
- feat: marshal/unmarshal value source into/from string by @el-mike in #12
- fix: conditions slice unmarshaling fix by @el-mike in #13
- feat: simplified getvalue func by @el-mike in #14
- feat: error handling for conditions by @el-mike in #15
- feat: replace is_owner condition with is_equal condition by @el-mike in #16
- feat: access denied reason wrapping by @el-mike in #17
- task: cleanups, initial unstable release by @el-mike in #18
New Contributors
Full Changelog: https://github.com/el-Mike/restrict/commits/v0.1.0