Skip to content

Releases: el-mike/restrict

v2.0.0

27 Oct 18:24
Compare
Choose a tag to compare

2.0.0

  • Allows Subject to have multiple roles
  • Errors API changes:
    • AccessDeniedError now has Reasons property, containing one or more PermissionErrors describing what exactly went wrong
      for every Role of the Subject and Action in the Request
    • PermissionError now has ConditionErrors property, containing zero or more ConditionNotSatisfiedErrors describing Condition failures for given Permissions
  • properties of AccessDeniedError and PermissionError 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

21 Aug 23:13
Compare
Choose a tag to compare
  • minimal Go version fix

v1.0.1

21 Aug 23:01
9f379ea
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1

Release v1.0.0

14 Dec 21:33
6d4c20b
Compare
Choose a tag to compare

Going stable!

Full Changelog: v0.2.2...v1.0.0

v0.2.2

14 Dec 18:59
Compare
Choose a tag to compare
v0.2.2 Pre-release
Pre-release

Full Changelog: v0.2.1...v0.2.2

v0.2.1

14 Dec 15:57
8d9d68c
Compare
Choose a tag to compare
v0.2.1 Pre-release
Pre-release

What's Changed

Full Changelog: v0.2.0...v0.2.1

Pre-release v0.2.0

12 Dec 20:55
3d7ea9b
Compare
Choose a tag to compare
Pre-release v0.2.0 Pre-release
Pre-release

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

29 Nov 13:37
e6e68f6
Compare
Choose a tag to compare
Pre-release v0.1.0 Pre-release
Pre-release

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