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
Better support for the admin-reader role and various smaller fixes in role-based authorization #422
Conversation
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
… Also use API v3 to count a user's assets Signed-off-by: Nicolas Höning <nicolas@seita.nl>
…'t need to do anymore after this PR Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Pull Request Test Coverage Report for Build 2235467151
💛 - Coveralls |
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
…concepts in said API Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Can you guide me through this PR a bit? I find it hard to derive from reading the commit messages. For example, why did the removed test become redundant? |
Sorry that there are a few things in here. The big picture is to help admin-reader to actually read users (fixed in CRUD) and sensors (fixed in the sensor API). On the way I noticed how
The test is removed because that endpoint stops doing an auth check. It now gives you only your account if you're not an admin, and all otherwise (which was the default behavior before). |
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.
Thanks for clarifying. That helped a lot. I only have an issue with removing that test.
And to me it looks like we should also backport this PR to 0.9.x.
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
We should release v0.10 soonish, and the bugs in this don't seem overly impactful, so for me back-porting is not required. |
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.
Okay.
No description provided.