-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support Attribute-Based Access Control (ABAC) in Permit Check #24
Conversation
Quest PR submitted!@ARYPROGRAMMER, you are attempting to solve the issue and loot this Quest. Will you be successful? Questions? Check out the docs. |
It looks like a good start overall. When you're ready with it, let me know so I can review it in detail. The only thing I'm a little worried about is nested attributes, maybe worth to add also possibility to add json as file. |
hey @gemanor you can start reviewing and merging, all addition ideas of mine seem to break the system further on |
Hey @ARYPROGRAMMER can you please upload a video of it working? I'm trying to run it but it has some ink-text errors |
Here's a sample video for your kind reference: https://vimeo.com/1025929148?share=copy#t=0 |
Hey @ARYPROGRAMMER , can you please merge with Main and ensure all the lint checks is passing? |
Resolved Conflicts, LGTM for merging |
Hey, the code indeed looks good. |
Hey, just having a doubt - so after the other PR for vitest gets merged, this can be merged right? Also do I need to create that another PR for vitest or you guys are doing it. |
Assuming the tests are 100% compatible with vitest, you can indeed merge it right after (and another CR). If not, you'll have to do the little adoption to support the vitest runner. |
Here's what I get : I have to raise a PR to support vitest runner and make sure the existing tests and tests in this PR are 100% compatible with it. If that is the case then in either way we should first merge this once and then raise the other PR to support vitest runner, I think that will be more effective. |
The following PR is adding support in vitest. You have nothing to do now but wait for this one to get merged (in the next 48 hours, probably). #36 Only after then, you'll have to verify that your tests is passing in vitest runner. Is that make sense? |
Thanks a lot, got the reference finally. Eager to contribute more to the project. |
@gemanor updates on this one? |
Hey, please install the same After that, make sure the command |
Please also merge from main, and run the tests there. |
@gemanor i think its done now |
@gemanor lgtm for merging, let me know further |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice Work! Thanks!
@ARYPROGRAMMER currently after updating i had run the tests my tests are currently failing. |
Yeah might be due to environment setup error, not a bug or issue |
https://github.com/permitio/permit-cli/actions/runs/12102149170/job/33742888763 I have tried to run in the CI as well, could you help me in setting up the environment, like what is missing ? |
Looks like your cached modules have affected some files or maybe you have made some change that interferes. Trying running locally first and setting up policy env key as per documentation |
In test the env keys are mocked right? |
🧚 @ARYPROGRAMMER congratulations for completing Quest #14 💰 A reward of $150 has been credited to you. To claim your $150 reward follow the instructions here. Questions? Check out the docs. |
@ARYPROGRAMMER the tests are failing now. Also in local with a fresh environment. Can you check that please? |
is this behaviour happening due to some new PR merging? I dont think it was happening earlier, I'll anyways test once and let you know meanwhile if you could provide some insights on how this happened or when it was discovered then i can debug further |
@gemanor i had modified it them in the next pr |
@Abiji-2020, yeah, saw that now. Let's communicate it there then |
checked that , I don't think i should raise a PR for this since it is actually not a failure. @Abiji-2020 must have increased the timeout and it should work then |
This PR introduces support for Attribute-Based Access Control (ABAC) to the
permit-cli
, addressing Issue #14.Key Changes:
key:value
format, enabling ABAC for the first time.Additional Features:
string
,number
, andboolean
, making it flexible for diverse use cases.Future Enhancements:
Screenshots:
Here's an example of the new functionality in action:
Testing:
This PR not only resolves the core issue but also makes the
permit-cli
more versatile for a wider range of access control scenarios.By emphasizing backward compatibility, expanded test coverage, and robust error handling, this PR should make a strong case for acceptance.