Skip to content

Adjustment audit logging #270

@klihub

Description

@klihub

We want to allow logging NRI OCI Spec container adjustments for improved observability. This is also one of the unmet requirements for tagging a first stable v1.0 NRI version. There are some related questions to discuss.

The questions I have in mind are mostly about how much details to log, should it be configurable, and should it be on/off configurable. Based on my discussions with @mikebrow a while ago, he was also pondering these (but correct me Mike if I misinterpreted you).

There are two rather obvious alternatives places to implement container adjustment logging. One is an where adjustment is collected, the other where the adjustment is applied to the OCI Spec. Both have some pros and cons.

The linked PR #268 rolls a possible implementation of the latter approach. IOW, it logs adjustments as they are applied to the OCI Spec. The PR in its current form only enables on/off configurability, leaving the decision and details of which to the runtime integration code. When logging adjustments, the PR logs plugins responsible for the adjustments and the adjustment details. Additionally (and thanks to the comment by @acurtiz) the PR also updates returned errors to include the plugin name if the error originated in a plugin.

/cc @samuelkarp @chrishenzie @mikebrow Please chime in.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions