Skip to content

Commit

Permalink
[Audit Logging] xDS e2e test for audit logging. (grpc#33252)
Browse files Browse the repository at this point in the history
Added tests involve:
1. Checking the # of logger invocations with multiple RBACs in the
chain.
2. Verifying content in audit context with action and audit condition
permutations.
3. Confirm custom logger and built-in logger configurations are working.
4. Confirm the feature is protected by the environment variable.

---------

Co-authored-by: rockspore <rockspore@users.noreply.github.com>
  • Loading branch information
2 people authored and mario-vimal committed Jun 15, 2023
1 parent eba6fd8 commit 223aa41
Show file tree
Hide file tree
Showing 5 changed files with 381 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions build_autogenerated.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions test/cpp/end2end/xds/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ grpc_cc_test(
"//:grpc++",
"//:grpc_resolver_fake",
"//src/core:channel_args",
"//src/core:grpc_audit_logging",
"//src/proto/grpc/testing:echo_messages_proto",
"//src/proto/grpc/testing:echo_proto",
"//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
Expand All @@ -124,7 +125,10 @@ grpc_cc_test(
"//src/proto/grpc/testing/xds/v3:route_proto",
"//src/proto/grpc/testing/xds/v3:router_proto",
"//src/proto/grpc/testing/xds/v3:tls_proto",
"//src/proto/grpc/testing/xds/v3:typed_struct_proto",
"//test/core/util:audit_logging_utils",
"//test/core/util:grpc_test_util",
"//test/core/util:scoped_env_var",
"//test/cpp/util:test_config",
"//test/cpp/util:test_util",
"//test/cpp/util:tls_test_utils",
Expand Down

0 comments on commit 223aa41

Please sign in to comment.