cloudfoundry / cloudfoundry/cloud_controller_ng

Usage Events are not viewable by SpaceDevelopers, etc

Open
#4,864 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
207
Forks
373
Avg merge
2d 12h
Merged PRs (30d)
56

Description

Issue

According to the Roles matrix SpaceDevelopers, Supporters, and Auditors should be able to view UsageEvents.

The v3/app_usage_events endpoint is also accessible to all users, but only returns events if the user has global permissions:

https://github.com/cloudfoundry/cloud_controller_ng/blob/01782fb8454733a16f6daf775d7dbc014959db1b/app/controllers/v3/app_usage_events_controller.rb#L10-L13

It's unclear to me if this is a mistake in documentation or an incomplete implementation. Anyone know the history here?

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 app/controllers/v3/app_usage_events_controller.rb around lines 10-13 and compare its permission behavior with the linked Cloud Foundry roles matrix. Investigate whether the discrepancy is documented behavior or an implementation defect; done means the endpoint behavior and roles documentation agree, with the relevant project coverage updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api, authorization, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.