You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/09/23 08:44:06 UTC
[GitHub] [cloudstack-primate] DaanHoogland opened a new issue #740: [BUG] user with special role can not log on
DaanHoogland opened a new issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740
**Describe the bug**
After creating a new role with all permissions except for updateZone, and creating an account with that role, the user can not log on.
**To Reproduce**
Steps to reproduce the behavior:
1. Log in as Admin
2. Create a role of type admin
3. Create an account with this role
4. log in with the user from the new role
5. See error
**Expected behavior**
Log in succeeds
**Screenshots**
<img width="1123" alt="Screenshot 2020-09-23 at 10 21 06" src="https://user-images.githubusercontent.com/2486961/93988568-2ae1a800-fd89-11ea-90a0-20d1da10759d.png">
<img width="1172" alt="image" src="https://user-images.githubusercontent.com/2486961/93988716-582e5600-fd89-11ea-8d4a-111490975717.png">
<img width="1000" alt="Screenshot 2020-09-23 at 10 29 12" src="https://user-images.githubusercontent.com/2486961/93988590-3208b600-fd89-11ea-9b8c-1b818ac271c2.png">
**Desktop (please complete the following information):**
- OS: MacOS 10.15.6
- Browser firefox 80.0
- Version 1.0.0-GA preview
**Additional context**
Add any other context about the problem here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] DaanHoogland closed issue #740: [BUG] user with special role is denied log on without sensible message
Posted by GitBox <gi...@apache.org>.
DaanHoogland closed issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] DaanHoogland edited a comment on issue #740: [BUG] user with special role is denied log on without sensible message
Posted by GitBox <gi...@apache.org>.
DaanHoogland edited a comment on issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740#issuecomment-697239673
btw, it seems this is not primate specific. log on fails on the old UI as well. It seems to be a genuine bug though. even when mentioned API are added as allow (and * is added as allow), login fails.
edit: the (and * is added as allow) behaviour seems erratic. I will update if/when i am able to narrow it down.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] rhtyd commented on issue #740: [BUG] user with special role is denied log on without sensible message
Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740#issuecomment-697321577
There are a bunch of APIs we call on login that "we" expect to work but don't have an error handler - https://github.com/apache/cloudstack-primate/blob/master/src/store/modules/user.js#L148
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] DaanHoogland commented on issue #740: [BUG] user with special role can not log on
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740#issuecomment-697239673
btw, it seems this is not primate specific. lopg on fails on the old UI as well. It seems to be a genuine bug though. even when mentioned API are added as allow and * is added as allow, login fails.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] rhtyd commented on issue #740: [BUG] user with special role is denied log on without sensible message
Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740#issuecomment-697338755
@DaanHoogland usually we require that the following APIs are enabled for Primate to atleast show something (what you're hitting, you'll hit on old UI as well): listApis, listUsers, listZones, listCapabilities (I'm not sure about listLdapConfigurations or cloudianIsEnabled).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] davidjumani commented on issue #740: [BUG] user with special role is denied log on without sensible message
Posted by GitBox <gi...@apache.org>.
davidjumani commented on issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740#issuecomment-697323090
@rhtyd There's also the issue of the user being logged out if there's a call being made to a blacklisted API rather than being told that the API doesn't exist or denied. Will be working on all of them when I raise a PR agianst this
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] davidjumani edited a comment on issue #740: [BUG] user with special role is denied log on without sensible message
Posted by GitBox <gi...@apache.org>.
davidjumani edited a comment on issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740#issuecomment-697323090
@rhtyd There's also the issue of the user being logged out if there's a call being made to a blacklisted API rather than being told that the API doesn't exist or denied. Will be working on all of them when I raise a PR against this
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] rhtyd commented on issue #740: [BUG] user with special role is denied log on without sensible message
Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740#issuecomment-697321204
@davidjumani @utchoang maybe if it fails we should log a sensible message that unable to discover features as listApis (or any other essential APIs we expect) is not allowed?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] DaanHoogland closed issue #740: [BUG] user with special role is denied log on without sensible message
Posted by GitBox <gi...@apache.org>.
DaanHoogland closed issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] DaanHoogland commented on issue #740: [BUG] user with special role can not log on
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740#issuecomment-697236306
@davidjumani why would he not have access to those APIs?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-primate] davidjumani commented on issue #740: [BUG] user with special role can not log on
Posted by GitBox <gi...@apache.org>.
davidjumani commented on issue #740:
URL: https://github.com/apache/cloudstack-primate/issues/740#issuecomment-697228288
@DaanHoogland That's because the user doesn't have access to `listApis` and `listCapabilities` APIs which are needed by primate
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org