You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled across this, as the cf cli is currently testing if a client exist when using set-org-role or set-space-role. But to be able to test for existence, the authenticated user needs to have the clients.read scope, which isn't normally available. cloudfoundry/cli@5b0cf09
I think the check should be move to the cc api and not handled in the cf cli. This would improve the usability of clients with the cf cli.
The text was updated successfully, but these errors were encountered:
It is possible to create a space/org role for an arbitrary user guid. The following does succeed, event if the guid does not exist:
For a user, the cc api is validating if it exists, and will fail:
From briefly looking at the code https://github.com/cloudfoundry/cloud_controller_ng/blob/main/app/controllers/v3/roles_controller.rb#L123 , not lookup is done if a guid is passed as part of the message.
I stumbled across this, as the cf cli is currently testing if a client exist when using
set-org-role
orset-space-role
. But to be able to test for existence, the authenticated user needs to have theclients.read
scope, which isn't normally available.cloudfoundry/cli@5b0cf09
I think the check should be move to the cc api and not handled in the cf cli. This would improve the usability of
clients
with the cf cli.The text was updated successfully, but these errors were encountered: