feat(store): add concept of policy statement groups#71
Merged
freakyfelt merged 7 commits intomainfrom Mar 7, 2023
Merged
Conversation
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
* refactor: make ParsedPolicyStatement its own thing * refactor: use arrayify in parser * feat: add addGroup and deleteGroup * fix(store): use correct filter for exact reindexing * chore(store): add tests for add/deleteGroup * refactor: add -> set since we are replacing statements by sid * chore: add more test coverage
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
* refactor: make ParsedPolicyStatement its own thing * refactor: use arrayify in parser * feat: add addGroup and deleteGroup * fix(store): use correct filter for exact reindexing * chore(store): add tests for add/deleteGroup * refactor: add -> set since we are replacing statements by sid * chore: add more test coverage
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
github-actions bot
pushed a commit
that referenced
this pull request
Mar 8, 2023
# [2.0.0](v1.0.0...v2.0.0) (2023-03-08) * feat!: rewrite to simpler interface ([167d5f3](167d5f3)) ### Features * **policy-resolver:** use an LRU cache instead of a map ([9fac528](9fac528)) * **store:** add concept of policy statement groups ([#71](#71)) ([67dc8c2](67dc8c2)) * use an event emitter to invalidate caches ([15363f7](15363f7)) ### BREAKING CHANGES * the 2.x interface drops environments and resource types
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
* refactor: make ParsedPolicyStatement its own thing * refactor: use arrayify in parser * feat: add addGroup and deleteGroup * fix(store): use correct filter for exact reindexing * chore(store): add tests for add/deleteGroup * refactor: add -> set since we are replacing statements by sid * chore: add more test coverage
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
freakyfelt
pushed a commit
that referenced
this pull request
Mar 8, 2023
# [2.0.0](v1.0.0...v2.0.0) (2023-03-08) * feat!: rewrite to simpler interface ([167d5f3](167d5f3)) ### Features * **policy-resolver:** use an LRU cache instead of a map ([9fac528](9fac528)) * **store:** add concept of policy statement groups ([#71](#71)) ([67dc8c2](67dc8c2)) * use an event emitter to invalidate caches ([15363f7](15363f7)) ### BREAKING CHANGES * the 2.x interface drops environments and resource types
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
* refactor: make ParsedPolicyStatement its own thing * refactor: use arrayify in parser * feat: add addGroup and deleteGroup * fix(store): use correct filter for exact reindexing * chore(store): add tests for add/deleteGroup * refactor: add -> set since we are replacing statements by sid * chore: add more test coverage
freakyfelt
added a commit
that referenced
this pull request
Mar 8, 2023
freakyfelt
pushed a commit
that referenced
this pull request
Mar 8, 2023
# [2.0.0](v1.0.0...v2.0.0) (2023-03-08) * feat!: rewrite to simpler interface ([167d5f3](167d5f3)) ### Features * **policy-resolver:** use an LRU cache instead of a map ([9fac528](9fac528)) * **store:** add concept of policy statement groups ([#71](#71)) ([67dc8c2](67dc8c2)) * use an event emitter to invalidate caches ([15363f7](15363f7)) ### BREAKING CHANGES * the 2.x interface drops environments and resource types
github-actions bot
pushed a commit
that referenced
this pull request
Mar 8, 2023
# [2.0.0](v1.0.0...v2.0.0) (2023-03-08) ### Bug Fixes * **resolver:** return false if a deny statement is missing context ([7efaa56](7efaa56)) * feat!: rewrite to simpler interface ([f3a11b3](f3a11b3)) ### Features * **policy-resolver:** use an LRU cache instead of a map ([2c573b1](2c573b1)) * **store:** add concept of policy statement groups ([#71](#71)) ([c93708f](c93708f)) * use an event emitter to invalidate caches ([6ab9059](6ab9059)) ### BREAKING CHANGES * the 2.x interface drops environments and resource types
github-actions bot
pushed a commit
that referenced
this pull request
Mar 8, 2023
# [2.0.0](v1.0.0...v2.0.0) (2023-03-08) ### Bug Fixes * **resolver:** return false if a deny statement is missing context ([7efaa56](7efaa56)) * feat!: rewrite to simpler interface ([f3a11b3](f3a11b3)) ### Features * **policy-resolver:** use an LRU cache instead of a map ([2c573b1](2c573b1)) * **store:** add concept of policy statement groups ([#71](#71)) ([c93708f](c93708f)) * use an event emitter to invalidate caches ([6ab9059](6ab9059)) ### BREAKING CHANGES * the 2.x interface drops environments and resource types
freakyfelt
pushed a commit
that referenced
this pull request
Mar 8, 2023
# [2.0.0](v1.0.0...v2.0.0) (2023-03-08) ### Bug Fixes * **resolver:** return false if a deny statement is missing context ([7efaa56](7efaa56)) * feat!: rewrite to simpler interface ([f3a11b3](f3a11b3)) ### Features * **policy-resolver:** use an LRU cache instead of a map ([2c573b1](2c573b1)) * **store:** add concept of policy statement groups ([#71](#71)) ([c93708f](c93708f)) * trigger ci ([6c141ff](6c141ff)) * use an event emitter to invalidate caches ([6ab9059](6ab9059)) ### BREAKING CHANGES * the 2.x interface drops environments and resource types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to group statements by a group ID (gid), allowing consuming systems to ingest a policy document and keep track of their relationship. It also renames PolicyStore#add -> PolicyStore#set since it is technically replacing whatever is present. Finally this PR adds more test coverage