Skip to content

Audit log middleware #204

Closed
Closed

Description

@JAORMX

We should optionally add the ability to enable audit log Middleware. This should play well along the OIDC and the authz middleware to enrich the log.

In the past, I've implemented a set of audit events and middleware that we may optionally leverage: https://github.com/metal-toolbox/auditevent/blob/main/auditevent.go

The information audit logs must contain is as follows:

  • Type of event: So we can classify the audit event. We can also classify by action taken.
  • Event timestamp: When did it happen?
  • Event source: Where did it come from?
  • Action outcome: did the action succeed, fail or error out? It would be ideal if we could also explain why.
  • Subject: What subject(s) was involved in the action? This would normally be the user taking the action on ToolHive.
  • Event target: where is the action being taken? This could be the REST resource.

For more information, NIST's 800-53 AU controls have very good guidance on audit logs.

Activity

  1. added
    enhancement
    p2
    on Apr 17, 2025
  2. added 2 commits that reference this issue on Jun 2, 2025
    be7f7e3
    7837b9b
  3. self-assigned this
    on Jun 2, 2025
  4. added 2 commits that reference this issue on Jun 2, 2025
    2491f9a
    b4186ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions