Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policy directive - accept only a single policy #146

Merged
merged 2 commits into from
Jul 1, 2020

Conversation

tomeresk
Copy link
Contributor

@tomeresk tomeresk commented Jul 1, 2020

  • Change Policy directive to accept only a single policy instead of an array of policies.
  • Refactored PolicyExecutor API to only expose static methods.
    Internals still work the same for brevity, but consumers of the class will no longer have to instantiate a class to call only a single method.

I recommend reviewing each commit individually.

@tomeresk tomeresk requested a review from a team July 1, 2020 17:25
@AleF83 AleF83 merged commit 733e7aa into authorization Jul 1, 2020
@tomeresk tomeresk deleted the policy_directive_accept_only_single_policy branch July 2, 2020 07:10
AleF83 added a commit that referenced this pull request Jul 2, 2020
* Authorization - fully implemented registry part (#133)

This includes:
Create/update policy resource
Attachments support for policy resource (with support for writing the attachment to both s3 and fs repositories)
Opa policy type implementation, including compiling rego code to wasm and adding that to the policy as an attachment

* Authorization gateway - basic features (#138)

implemented full flow with basic features
Implement local policy attachment caching for all resource repositories

* Add policy definitions and attachments to request context, change pol… (#141)

* Add policy definitions and attachments to request context, change policy executor to use them from context instead of directly from repo

* PR comments

* allow jwt in param injection (policy authorization can use it through args) (#144)

* Support for policy query (#143)

* Policy directive - accept only a single policy (#146)

* change policy directive to accept only a single policy

* Refactored PolicyExecutor API to only expose static methods

Co-authored-by: Tomer Eskenazi <tomeresk@gmail.com>
AleF83 pushed a commit that referenced this pull request Jul 2, 2020
* change policy directive to accept only a single policy

* Refactored PolicyExecutor API to only expose static methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants