You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "sy-yan (via GitHub)" <gi...@apache.org> on 2023/10/12 02:28:21 UTC
[I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
sy-yan opened a new issue, #10319:
URL: https://github.com/apache/apisix/issues/10319
### Description
I want to allow user who has Designated keycloak role to access apisix-dashboard.
And I have read a blog
https://apisix.apache.org/blog/2023/01/02/accessing_apisix-dashboard_from_everywhere_with_keycloak_authentication/
as guide.
But it seems that the "openid-connect" just allow all keycloak users without restricting roles.
So I wonder if apisix has a way to resolve.
keycloak 15 might allow rolePolicy, but my keycloak server is in version 6.0.
### Environment
- APISIX version (run `apisix version`):3.2.0
- APISIX Dashboard version, if relevant:3.0.0-alpine
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "sy-yan (via GitHub)" <gi...@apache.org>.
sy-yan commented on issue #10319:
URL: https://github.com/apache/apisix/issues/10319#issuecomment-1828962667
> This plugin offers more capabilities with authorization: https://apisix.apache.org/docs/apisix/plugins/authz-keycloak/
I had seen this plugin too. But I don't know how to configure.
When user access my route , I want that only the user who has "admin" role could access.
Could you provide an example for me ? Thanks a lot.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #10319:
URL: https://github.com/apache/apisix/issues/10319#issuecomment-1858758109
> I want to allow user who has Designated keycloak role to access apisix-dashboard.
> keycloak 15 might allow rolePolicy, but my keycloak server is in version 6.0.
> When user access my route, I want that only the user who has "admin" role could access.
I'm using keycloak v18.x.x so it's hard to tell. Not an expert on this, just trying to help. Are you positive policy isn't supported? Could you show us your keycloak v6.0 interface?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #10319:
URL: https://github.com/apache/apisix/issues/10319#issuecomment-1968630499
Due to lack of the reporter's response this issue has been labeled with "no response". It will be close in 3 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #10319:
URL: https://github.com/apache/apisix/issues/10319#issuecomment-1851468548
@sy-yan have you solved your problem?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #10319:
URL: https://github.com/apache/apisix/issues/10319#issuecomment-1974751605
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #10319:
URL: https://github.com/apache/apisix/issues/10319#issuecomment-1853235436
@sy-yan see this user's setup: https://github.com/apache/apisix/issues/9609#issuecomment-1836527016
In the third document, you can find

--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #10319:
URL: https://github.com/apache/apisix/issues/10319#issuecomment-1870809745
@sy-yan Hi - following up to see if this issue is still active? From my understanding, you would enable Authorization for the client and configure role and policy (for RBAC) to a resource.
I tested with keycloak v18 and used `authz-keycloak` plugin to protect an arbitrary upstream (only clients with role `admin` can access) and it was working as intended. Most of the configurations would be done on the keycloak side though.
Unfortunately cannot advise on keycloak 6.0
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #10319:
URL: https://github.com/apache/apisix/issues/10319#issuecomment-1805203631
This plugin offers more capabilities with authorization: https://apisix.apache.org/docs/apisix/plugins/authz-keycloak/
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #10319: help request: cannot restrict roles to access apisix routes with keycloak.
URL: https://github.com/apache/apisix/issues/10319
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] help request: cannot restrict roles to access apisix routes with keycloak. [apisix]
Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #10319:
URL: https://github.com/apache/apisix/issues/10319#issuecomment-1872399278
> it seems that the "openid-connect" just allow all keycloak users without restricting roles.
As for `openid-connect`, I played around but also wasn't able to make RBAC works. This might be of interest for you: https://github.com/zmartzone/lua-resty-openidc/issues/222
Alternatively, you could implement scope based access with `required_scope`: https://github.com/apache/apisix/pull/10493
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org