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

Namespaces, architecture and style improvements #65

Open
wants to merge 64 commits into
base: develop
Choose a base branch
from

Conversation

Kern046
Copy link

@Kern046 Kern046 commented Mar 27, 2015

This step of the refactoring work is ended. You have now autoload based on namespaces with Composer, a better architecture for the code, and some improvements in terms of performance :

Using the SensioLabs tool Blackfire, we have the following report between the original, based on the execution of the same basic script :

https://blackfire.io/profiles/compare/0b5e7bcd-081a-4da4-b0d3-fddbe6d98c9f/graph

As you can see on Scrutinizer, there's a lot of work to do, but we are going to the right direction !

https://scrutinizer-ci.com/g/Kern046/rbac/

The way to provide a database connection to the library has been changed, and also the way to access the managers.

The library now provides the managers using Singleton on the main RBAC class, which have getters to get role, user and permissions managers.

@abiusx
Copy link
Contributor

abiusx commented Apr 25, 2015

This is a big merge that requires review. Will review and merge asap.

@Kern046
Copy link
Author

Kern046 commented Apr 25, 2015

Yep, next time I will make shorter MR, it will be easier to merge :) !

@runphp
Copy link

runphp commented Jan 29, 2016

@Kern046 Good job!

@Kern046
Copy link
Author

Kern046 commented Jan 29, 2016

@runphp Ty :) ! Sadly it was never merged X)

@mayconfsbrito
Copy link

It's a good job. I'm waiting for it.

@Kern046
Copy link
Author

Kern046 commented Mar 3, 2016

@mayconfsbrito I'm afraid this branch won't be merged after all this time. Sadly because that was a lot of work.

@abiusx
Copy link
Contributor

abiusx commented Mar 3, 2016

I would merge it but I don't have access. Jesse should do it, and I have no idea where he is!

@abiusx
Copy link
Contributor

abiusx commented Mar 3, 2016

Is it possible to copy the repository and then merge this on the copy somewhere else?

@Kern046
Copy link
Author

Kern046 commented Mar 3, 2016

Yes, but you will lose the SEO associated to this repository, and all the stars, watching users etc...

@abiusx
Copy link
Contributor

abiusx commented Mar 3, 2016

I agree. But then OWASP is not taking responsibility of anything, and similar things happened to a lot of projects.

@mayconfsbrito
Copy link

So if OWASP can't take the responsibility by this project, naturally it will be deprecated along the time because will not receive updates. We can create another repository with the merged branch and a new version.

I'm using and enjoing it, but notably this project needs to be modernized with new good software pratices.

@abiusx
Copy link
Contributor

abiusx commented Mar 4, 2016

I am the author of the project. I have done most of the code about 10 years back, and Jesse Burns has modernized the API.
OWASP is just the host, but due to their crazy policies I have abandoned my services there.

On Mar 4, 2016, at 6:32 AM, Maycon Brito [email protected] wrote:

So if OWASP can't take the responsibility by this project, naturally it will be deprecated along the time because will not receive updates. We can create another repository with the merged branch and a new version.

I'm using and enjoing it, but notably this project needs to be modernized with new good software pratices.


Reply to this email directly or view it on GitHub #65 (comment).

@mayconfsbrito
Copy link

@abiusx Congratulations! It's a good project and works fine.

@abiusx
Copy link
Contributor

abiusx commented Mar 4, 2016

Thank you!
I would love to receive your feedback on using this.
Many people are using this but we have no idea in what scope or context or scale.
Would appreciate your usecase scenarios so that we can improve the project.

On Mar 4, 2016, at 12:15 PM, Maycon Brito [email protected] wrote:

@abiusx https://github.com/abiusx Congratulations! It's a good project and works fine.


Reply to this email directly or view it on GitHub #65 (comment).

@Kern046
Copy link
Author

Kern046 commented Apr 6, 2016

@abiusx I have just a question for all this : How could you merge this MR one year ago if you just don't have the rights to ? #68

@abiusx
Copy link
Contributor

abiusx commented Apr 6, 2016

Cuz I had it back then?

@tchalvak
Copy link

Is there a different primary fork for this project that you would recommend now?

@abiusx
Copy link
Contributor

abiusx commented Oct 13, 2016

Unfortunately both people whom worked on this project (I am one of them) are no longer working on it. I am familiar with the code, and would be happy to assist you in adding any features you like.

On Oct 13, 2016, at 5:49 PM, Roy R. [email protected] wrote:

Is there a different primary fork for this project that you would recommend now?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #65 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ABVjWyjvvm-CxrQZfiau4ph6T_p1DnZ5ks5qzqdZgaJpZM4D1-Zr.

@tchalvak
Copy link

tchalvak commented Oct 13, 2016

@abiusx That's fine, I always expect people to have lives. I would just love to know which repo to use as the "canonical" one while including it in a production project. Whichever repo is likely to have more support, or be more up to date already, that's the one that I'd like to base my code on using.

@Kern046
Copy link
Author

Kern046 commented Oct 14, 2016

Hello there !

I didn't want my fork to replace the main repository, respecting the previous work. But it's true that in it's state, the whole project is blocked.

On the other hand, I thought that the RBAC concept did lack of the context notion. That's why, I based my work on a NIST specification to implement a new Authorization library, called PHP-ABAC.

With that one, you can allow access with rules depending on the user attributes, but also the resource's attributes and the environment. You can implement the RBAC concept inside ABAC, with roles as user attribute.

Do no hesitate to look if this library suits your needs, and give feedbacks in any case if you would :) !

https://github.com/Kilix/php-abac

@abiusx
Copy link
Contributor

abiusx commented Oct 14, 2016

Thank you for letting us know Kern.
I think the OWASP repo will get more traction and support compared to a fork on my personal Github account. I have several active open source projects, and this one is not my high priority.
However, let me know if there's anything I can do to help.

On Oct 14, 2016, at 3:54 AM, Kern [email protected] wrote:

Hello there !

I didn't want my fork to replace the main repository, respecting the previous work. But it's true that in it's state, the whole project is blocked.

On the other hand, I thought that the RBAC concept did lack of the context notion. That's why, I based my work on a NIST specification to implement a new Authorization library, called PHP-ABAC.

With that one, you can allow access with rules depending on the user attributes, but also the resource's attributes and the environment. You can implement the RBAC concept inside ABAC, with roles as user attribute.

Do no hesitate to look if this library suits your needs, and give feedbacks in any case if you would :) !

https://github.com/Kilix/php-abac https://github.com/Kilix/php-abac

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #65 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ABVjW36CwyyIvYxyWHWdSmrKhGEg0FKGks5qzzU-gaJpZM4D1-Zr.

@tchalvak
Copy link

Who could we contact to get pull requests mergable on this project? By which I mean getting a few more people capable of merging in PRs, including you, maybe @Kern046 if he's interested. I am a php dev and would be interested in helping manage PRs on this project as well (and already have some changes to PR). So who is most likely to be able to open up access and move reviews & merging forward?

@tchalvak
Copy link

Cross-reference: #79

@abiusx
Copy link
Contributor

abiusx commented Nov 10, 2016

I can try but am not sure if I have access. I can fork it on my Github and merge PR's there, and ask OWASP to link it to my repo (since I am the author?).
Whatever helps you best, I no longer work with OWASP.
-A

On Nov 10, 2016, at 11:22 AM, Roy R. [email protected] wrote:

Cross-reference: #79 #79

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #65 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ABVjW1KQWH-zkK4gPpf4PjVpbgrGsKf5ks5q80SogaJpZM4D1-Zr.

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.

6 participants