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

Implement additional audit events #3490

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

johha
Copy link
Contributor

@johha johha commented Oct 24, 2023

Some API endpoints which return credentials do not write audit events. This change adds the following audit events:

  • audit.service_instance.show & audit.user_provided_service_instance.show
    Endpoints:

    • GET /v2/service_instances/:guid
    • GET /v3/service_instances/:guid/credentials
  • audit.service_binding.show
    Endpoints:

    • GET /v3/service_credential_bindings/:guid/details
    • GET /v2/service_bindings/:guid
  • audit.service_key.show
    Endpoints:

    • GET /v3/service_credential_bindings/:guid/details
    • GET /v2/service_keys/:guid

Docs will be updated in separate PR once this is merged

  • 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

@johha johha force-pushed the audit_events branch 2 times, most recently from 8299713 to 1e45a00 Compare October 24, 2023 14:15
@johha johha marked this pull request as ready for review October 24, 2023 14:23
Some API endpoints which return credentials do not write audit events.
This change adds the following audit events:
- `audit.service_instance.show` & `audit.user_provided_service_instance.show`
   Endpoints:
   - GET /v2/service_instances/:guid
   - GET /v3/service_instances/:guid/credentials

- `audit.service_binding.show`
  Endpoints:
  - GET /v3/service_credential_bindings/:guid/details
  - GET /v2/service_bindings/:guid

- `audit.service_key.show`
  Endpoints:
  - GET /v3/service_credential_bindings/:guid/details
  - GET /v2/service_keys/:guid

Co-authored-by: Wei Quan <[email protected]>
Copy link
Member

@moleske moleske left a comment

Choose a reason for hiding this comment

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

@MerricdeLauney and I took a look and this looks good to us!

@johha johha merged commit 2f2f978 into cloudfoundry:main Oct 30, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants