Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Space Application Supporter access to specific Audit Events endpoints #2324

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

ctlong
Copy link
Member

@ctlong ctlong commented Jun 9, 2021

Also refactored v3 Events permissions checks to be in the permissions queryer because we believe that to be the desired pattern + it seems easier to follow. We also updated the documentation.

Closes #2216

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

* Refactored v3 Events permissions checks to be in the permissions
queryer because we believe that to be the desired pattern + easier to
follow.
* Updated documentation.

[#2216]

Co-authored-by: Carson Long <[email protected]>
Co-authored-by: Mona Mohebbi <[email protected]>
@ctlong ctlong changed the title Allow Space Application Supporter access to Events endpoints Allow Space Application Supporter access to specific Audit Events endpoints Jun 9, 2021
@ctlong ctlong added this to the space-application-supporter milestone Jun 9, 2021
@ctlong ctlong requested a review from monamohebbi June 9, 2021 19:08
@ctlong ctlong added the space-application-supporter https://github.com/cloudfoundry/cfar-proposals/issues/22 label Jun 9, 2021
Copy link
Contributor

@monamohebbi monamohebbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Deployed changes to environment candle-chopper. Created users louie and dev with roles space application supporter and space developer respectively. Both have password 'password'

Copy link
Contributor

@sweinstein22 sweinstein22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a quick check to make sure the output matched up between space devs and space application supporters for the two endpoints, GET /v3/audit_events/:guid and GET /v3/audit_events. Confirmed that we now have permissions tests for both endpoints, and the refactor looks good!

Checked for the docs changes, everything looks good! Thanks for catching the stray alphabetization ordering

@sweinstein22 sweinstein22 merged commit 2affda6 into main Jun 10, 2021
@sweinstein22 sweinstein22 deleted the space-application-supporter-events branch June 10, 2021 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
space-application-supporter https://github.com/cloudfoundry/cfar-proposals/issues/22
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow space application supporter to access specific audit event endpoints.
3 participants