Use extended audit capabilities in plugins #477
Labels
feature
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
roadmap:safer
Roadmap item; safer category
Is your feature request related to a problem? Please describe.
I happened to stumble upon @DrDaveD's issue on his Vault config about auditing traffic from the OIDC plugin to its token issuer on the OpenBao side. In particular, while OpenBao has logging of request/response pairs, it lacks the ability for plugins to audit log their request/responses to external parties.
Describe the solution you'd like
In particular, the extended system view, only accessible to builtin plugins, already has such an
Auditor
method:So far, it does not look like it is being used in any of our plugins. One of the issues is that, because it is in
ExtendedSystemView
, it cannot be used from external plugins, only builtin plugins. We could perhaps rewrite this into the regular SystemView implementation by consuming theAuditor
interface:Then this could be proxied over the GRPC bridge.
Describe alternatives you've considered
n/a
Explain any additional use-cases
By adding this to the GRPC mechanism, we can ensure external plugins can also audit log requests, which will help us expose audit events where relevant.
Additional context
n/a
The text was updated successfully, but these errors were encountered: