cloudfoundry / cloudfoundry/cloud_controller_ng

`v3/Roles` regression in functionality migration from V2

Open
#1,924 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug open for contribution unscheduled
Dominant language
Ruby
Stars
207
Forks
373
Avg merge
2d 12h
Merged PRs (30d)
56

Description

Thanks for submitting an issue to cloud_controller_ng. We are always trying to improve! To help us, please fill out the following template.

Issue

V3 migration: Lost functionality to remove your own Org roles without the Org Manager role.

Context

DELETE /v2/organizations/:guid/:type/:uaaGuid allows you to delete yourself. EG: removing your own Org User role without having Org Manager roles.
Using DELETE /v3/roles/:guid this is no longer the case.

Steps to Reproduce

Using V3:

  • Have the Org User role or Org Auditor without the Org Manager role.
  • Try to delete the Org User or Org Auditor role.

Expected result

Allows you to delete the Role normally

Current result

Returns with error: "You are not authorized to perform the requested action"

CF curl error screenshot

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the V3 DELETE /v3/roles/:guid entry point and its authorization checks, then compare the behavior with DELETE /v2/organizations/:guid/:type/:uaaGuid. Reproduce the Org User and Org Auditor self-removal cases without the Org Manager role; done means those requests succeed without the authorization error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api, authorization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.