Add audit logging implementation based on Alloy and go-audit #1247
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change adds a proof-of-concept implementation of the beta platform audit feature based on Alloy and go-audit, which should eventually replaced the implementation based on auditbeat. In particular, this feature adds an additional
flyingcircus.audit.useAlloy
flag, which defaults to false, which when set will enable go-audit to read audit events from the kernel and enable additional Alloy configuration to read log data from go-audit and forward this to Loki.Currently the GELF protocol is used as a lingua franca between go-audit and Alloy with a UDP port on localhost. We don't consider this suitable for production use, as a network port on localhost is not secure against interference from other processes on the same machine. This change also includes a number of patches against go-audit, to make the generated log messages easier to handle in Alloy.
PL-129625
@flyingcircusio/release-managers
Release process
./changelog.sh
=> none, proof-of-concept for a beta platform feature.PR release workflow (internal)
Design notes
on
oroff
. Example: rate limiting.flyingcircus.audit.useAlloy
flag in order to enable the functionality added in this PR. By default it is not enabled.Security implications