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
Administrative accounts #447
Conversation
d21aefa
to
5c21adc
Compare
@@ -1,4 +1,4 @@ | |||
#!/usr/bin/env python2 | |||
#!/usr/bin/env python2 |
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.
Why these leading spaces?
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.
Fixed and rebased immediately, thanks. If you want to review, I'll appreciate.
e0bd8f2
to
8475009
Compare
|
I think this needs to be rebased because of #449. Reviewed 2 of 2 files at r1, 1 of 1 files at r2, 6 of 6 files at r3, 3 of 3 files at r4, 6 of 6 files at r5, 19 of 19 files at r6, 2 of 2 files at r7, 4 of 4 files at r8, 15 of 15 files at r9, 4 of 4 files at r10. cms/server/admin/handlers/admin.py, line 132 [r7] (raw file): cms/server/admin/handlers/main.py, line 61 [r6] (raw file): cmscontrib/AddAdmin.py, line 81 [r2] (raw file): By the way, if it will eventually be assumed that CMS is installed, then all these Comments from the review on Reviewable.io |
Reviewed 2 of 2 files at r1, 1 of 1 files at r2, 6 of 6 files at r3, 3 of 3 files at r4. cms/db/admin.py, line 38 [r1] (raw file): cms/server/admin/templates/admins.html, line 48 [r3] (raw file): requirements.txt, line 14 [r4] (raw file): Comments from the review on Reviewable.io |
Reviewed 5 of 6 files at r5. cms/io/web_service.py, line 73 [r5] (raw file): cms/server/admin/server.py, line 130 [r5] (raw file): Comments from the review on Reviewable.io |
Reviewed 1 of 6 files at r5. cms/server/admin/server.py, line 111 [r5] (raw file): cms/server/admin/server.py, line 181 [r5] (raw file): Comments from the review on Reviewable.io |
Reviewed 11 of 19 files at r6. cms/server/admin/handlers/base.py, line 143 [r6] (raw file): cms/server/admin/handlers/base.py, line 220 [r6] (raw file): cms/server/admin/handlers/base.py, line 220 [r6] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 11 unresolved discussions, some commit checks failed. cms/server/admin/handlers/base.py, line 220 [r6] (raw file): Comments from the review on Reviewable.io |
Reviewed 3 of 19 files at r6. cms/server/admin/handlers/submission.py, line 91 [r6] (raw file): Comments from the review on Reviewable.io |
8475009
to
f21cf66
Compare
f21cf66
to
c37540b
Compare
Done. Reviewable merged both pushes to the same revision, but luckily the diff is nice enough (r10 -> r11). As expected, the rebase introduced changes almost only in the tests. Feel free to check this last revision. Review status: 12 of 52 files reviewed at latest revision, 13 unresolved discussions. Comments from the review on Reviewable.io |
Would it be possibile to have an option (i.e., in Reviewed 5 of 19 files at r6, 2 of 2 files at r7, 4 of 4 files at r8. cms/server/admin/templates/base.html, line 69 [r6] (raw file): Comments from the review on Reviewable.io |
Reviewed 15 of 15 files at r9, 4 of 4 files at r10. Comments from the review on Reviewable.io |
Reviewed 21 of 42 files at r11. Comments from the review on Reviewable.io |
Reviewed 21 of 42 files at r11. Comments from the review on Reviewable.io |
I agree (maybe as a command line switch for aws, rather than as a configuration option, I'd like to hear your preference too). But in a different PR :) Review status: all files reviewed at latest revision, 4 unresolved discussions. cms/server/admin/templates/base.html, line 69 [r6] (raw file): Comments from the review on Reviewable.io |
c37540b
to
5997bb5
Compare
This one I just pushed is probably the last update, just a couple of cosmetic changes. Review status: 49 of 52 files reviewed at latest revision, 4 unresolved discussions. Comments from the review on Reviewable.io |
Ok. I think everything's good, you can push. I personally would prefer a configuration option, because usually either you want AWS admins or you don't. It is not something you may want to change often between two runs of the same installation. Another thing that has to be fixed is the user documentation, particularly with respect to the part where we say that AWS has to be protected because it has no login. Reviewed 3 of 3 files at r12. Comments from the review on Reviewable.io |
Also documentation can go in another PR. Please open issues to remind us of missing docs and login disabling option. Review status: all files reviewed at latest revision, 3 unresolved discussions. Comments from the review on Reviewable.io |
5997bb5
to
cc77edd
Compare
Merged |
This was longer than expected... but I believe that the code is better organized now.
The end structure is comprised of:
The capability _jobs that Giovanni suggested is missing, but it is simple enough to add it now (just add the field, change the reevaluation template to enable the buttons in that case, and add the rpc methods to the whitelist).
As for the commits, they are as self-contained as possible. Feel free to review them one at a time, but I think you'd like to see the complete result as well.
One thing that is missing is the possibility of revoking a cookie-based authentication (that in CWS happens when you change the password), because I wanted to avoid DB access in the authentication middleware. The admins can be disabled, or deleted and recreated, so I think that's not a big problem.