-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: added --policy flag to pass policy path and implemented kyverno-json engine #60
Merged
Conversation
This file contains 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
Sanskarzz
changed the title
feat: add --policy flag to pass path to the policy
feat: add --policy flag to pass pass path to the policy
Apr 2, 2024
Sanskarzz
changed the title
feat: add --policy flag to pass pass path to the policy
feat: add --policy flag to pass pass to the policy
Apr 3, 2024
Sanskarzz
changed the title
feat: add --policy flag to pass pass to the policy
feat: add --policy flag to pass pass to the policy
Apr 3, 2024
Sanskarzz
changed the title
feat: add --policy flag to pass pass to the policy
feat: added --policy flag to pass policy path and implemented kyverno-json engine
Apr 6, 2024
Can you check the linter errors. |
The CI is green , Lint error is fixed |
anushkamittal2001
previously approved these changes
Apr 17, 2024
anushkamittal2001
previously approved these changes
Apr 22, 2024
anushkamittal2001
previously approved these changes
Apr 27, 2024
anushkamittal2001
previously approved these changes
Apr 27, 2024
Sanskarzz
force-pushed
the
policyflag
branch
2 times, most recently
from
April 27, 2024 16:52
4928dff
to
9a3a511
Compare
…-json engine Signed-off-by: Sanskarzz <sanskar.gur@gmail.com>
anushkamittal2001
approved these changes
Apr 29, 2024
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.
Added --policy flag to pass the path to the policy
./kyverno-envoy-plugin serve --policy /path/to/policy1.yaml --policy /path/to/policy2.yaml
Also used Load function of this "github.com/kyverno/kyverno-json/pkg/policy" package to load the v1alpha1.ValidatingPolicy type of policies
I also tested ext-authz server with istio , here are the logs of the ext-authz server it seems like policy is successfully loaded in Check function .
Here is policy.yaml i used to check the incoming request
Calling the sample application at /foo
Here are the logs of ext-auth server after calling sample application at /foo
Now calling sample application at /bar
The Request Failed , policy denied the request
Here are the logs of ext-auth after both above requests