Hi, We've implemented an MCP server using inbound ...
# ask-a-descoper
o
Hi, We've implemented an MCP server using inbound apps with Dynamic client registration (DCR). After implementing RBAC, I updated the DCR scopes to reference a newly created custom role. However, the changes don't appear to be taking effect—the system is still referencing the previous "Tenant Admin" role even after saving the updated configuration. Steps taken: 1. Created a new custom RBAC role 2. Updated DCR scopes to use the new role 3. Saved the configuration changes Issue: The DCR continues to require the old "Tenant Admin" role instead of the newly configured role. Could you help investigate why the scope changes aren't being applied? Please let me know if you need additional details about our configuration. Thank you!
m
looping in @Eliya Sadan @Bar Saar here
e
Also happen when you register a new app using DCR?
o
yes
b
Hey @Omer Dital, there are some caches involved but this should be cleared quickly, and regardless new DCR applications should always take the updated scopes under DCR settings. i have dmed you for more info
Hey @Omer Dital i noticed a new application was only created today at 7AM with the old scopes. it seems you use cloud code which is known to cache those applications. There was no new register since then, so i suggest you revoke the cache in your cloud code and try again to register a new app
o
Hi, I just realized that when I define the scope list in the DCR settings I need to choose a role, and not a permission. I think it's wrong because in most cases role is going to have multiple permissions under it. So for example if i have: admin - read + write reader - read And i want the scope to have readonly, I'll have to add to the scope also the admin role because a user will not have both admin and reader roles but only admin. Does it make sense?
b
I am not sure exactly what use case are you trying to achieve but the role encapsulate the permissions and usually as you mentioned permissions are granted gradually while roles allow more scalable and maintainable similar to groupings. What did you have in mind ?
o
What if I want the Inbound app to have only read access? So I need to give it the "Reader" role I created like in this screenshot. But admins have only the "Admin" role, not the "Reader". What I'd expect is that I'll be able to select permissions here instead of roles. Also in the future I might allow users to create "Custom Roles". So it is required to give scope specific permissions instead of roles
In that use case, will admin be able to consent this scope?
b
the permission scopes will provide the roles to the tokens issued when the scope is granted, so both roles and accumulated permissions exist in the token claims. Since you anyway usually use the user permissions to check against app permissions, the role granted under permission scopes is kind of a group of permissions that you can also use to differentiate between actual user roles and the permissions scopes
o
But I want the token to have only read permissions for the mcp. and now I cannot authorize it in my Admin user.
b
oh i understand now, and i see your point. this is a current limitation when using pyramid like roles, as we as you mentioned use the roles as a group rather then reducing to permissions because roles can be dynamic. I suggest you send a feature request for us to look into this farther, and for now either all admins should have reader role as well or remove roles mapping and enforce in your mcp server which both options are not optimal atm
meanwhile I'll check if we can have a workaround around this
o
How do I make a feature request? also this is a high priority for us because it blocks us from a rollout of a critical feature requested by our clients. I'd appreciate a solution that does not require us to create a migration for all the roles
b
i see, i have checked with others on my team and it does not seem we have any workaround for this currently. feel free to include this all in your feature request that you can open here and we will take it all into consideration as soon as possible
o
Ok, thank you 🙏 I opened a FR. Please feel free to reach out if there are any details missing
👍 1
Hi, is there anything new on this topic?
b
Hey @Omer Dital 👋 not yet, this requires some extra care in order to avoid breaking existing implementations while also maintain compatibility with the new upcoming agentic identity hub. I will update the FR and you later this week on progress and ETA
Hey @Omer Dital quick update, we have identify the problem and we are planning to allow permissions instead of roles. we have started working on it, so ill update you on exact ETA but i assume it will take about a week
🙌 1