From 0bc7653228f2493cad1ca8de89b2fcaaca40599b Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Fri, 14 Apr 2023 15:13:27 +0000 Subject: [PATCH] api: add stdout audit logger for RBAC audit logging. (#26453) * Add stdout audit logger for RBAC audit logging. Signed-off-by: Luwei Ge Mirrored from https://github.com/envoyproxy/envoy @ ce2ee7608faa34421a65be9986c29d0cc5d5e608 --- BUILD | 1 + .../rbac/audit_loggers/stream/v3/BUILD | 9 +++++++++ .../rbac/audit_loggers/stream/v3/stream.proto | 20 +++++++++++++++++++ versioning/BUILD | 1 + 4 files changed, 31 insertions(+) create mode 100644 envoy/extensions/rbac/audit_loggers/stream/v3/BUILD create mode 100644 envoy/extensions/rbac/audit_loggers/stream/v3/stream.proto diff --git a/BUILD b/BUILD index c9d53165..02dbeaef 100644 --- a/BUILD +++ b/BUILD @@ -273,6 +273,7 @@ proto_library( "//envoy/extensions/quic/proof_source/v3:pkg", "//envoy/extensions/quic/server_preferred_address/v3:pkg", "//envoy/extensions/rate_limit_descriptors/expr/v3:pkg", + "//envoy/extensions/rbac/audit_loggers/stream/v3:pkg", "//envoy/extensions/rbac/matchers/upstream_ip_port/v3:pkg", "//envoy/extensions/regex_engines/v3:pkg", "//envoy/extensions/request_id/uuid/v3:pkg", diff --git a/envoy/extensions/rbac/audit_loggers/stream/v3/BUILD b/envoy/extensions/rbac/audit_loggers/stream/v3/BUILD new file mode 100644 index 00000000..ee92fb65 --- /dev/null +++ b/envoy/extensions/rbac/audit_loggers/stream/v3/BUILD @@ -0,0 +1,9 @@ +# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. + +load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") + +licenses(["notice"]) # Apache 2 + +api_proto_package( + deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"], +) diff --git a/envoy/extensions/rbac/audit_loggers/stream/v3/stream.proto b/envoy/extensions/rbac/audit_loggers/stream/v3/stream.proto new file mode 100644 index 00000000..c224eaaa --- /dev/null +++ b/envoy/extensions/rbac/audit_loggers/stream/v3/stream.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package envoy.extensions.rbac.audit_loggers.stream.v3; + +import "udpa/annotations/status.proto"; + +option java_package = "io.envoyproxy.envoy.extensions.rbac.audit_loggers.stream.v3"; +option java_outer_classname = "StreamProto"; +option java_multiple_files = true; +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/rbac/audit_loggers/stream/v3;streamv3"; +option (udpa.annotations.file_status).package_version_status = ACTIVE; + +// [#protodoc-title: Standard Streams RBAC Audit Loggers] +// [#not-implemented-hide:] + +// Custom configuration for the RBAC audit logger that writes log entries +// directly to the operating system's standard output. +// The logger outputs in JSON format and is currently not configurable. +message StdoutAuditLog { +} diff --git a/versioning/BUILD b/versioning/BUILD index 61de4829..d3e4117c 100644 --- a/versioning/BUILD +++ b/versioning/BUILD @@ -212,6 +212,7 @@ proto_library( "//envoy/extensions/quic/proof_source/v3:pkg", "//envoy/extensions/quic/server_preferred_address/v3:pkg", "//envoy/extensions/rate_limit_descriptors/expr/v3:pkg", + "//envoy/extensions/rbac/audit_loggers/stream/v3:pkg", "//envoy/extensions/rbac/matchers/upstream_ip_port/v3:pkg", "//envoy/extensions/regex_engines/v3:pkg", "//envoy/extensions/request_id/uuid/v3:pkg",