Skip to content

Commit

Permalink
[Audit Logging] Logger and factory APIs in C-Core and C++. (grpc#32750)
Browse files Browse the repository at this point in the history
Audit logging APIs for both built-in loggers and third-party logger
implementations.

C++ uses using decls referring to C-Core APIs.

---------

Co-authored-by: rockspore <rockspore@users.noreply.github.com>
  • Loading branch information
2 people authored and XuanWang-Amos committed May 1, 2023
1 parent 57812ce commit 8a76365
Show file tree
Hide file tree
Showing 22 changed files with 586 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ GPR_PUBLIC_HDRS = [
]

GRPC_PUBLIC_HDRS = [
"include/grpc/grpc_audit_logging.h",
"include/grpc/byte_buffer.h",
"include/grpc/byte_buffer_reader.h",
"include/grpc/compression.h",
Expand Down Expand Up @@ -388,6 +389,7 @@ GRPCXX_PUBLIC_HDRS = [
"include/grpcpp/impl/status.h",
"include/grpcpp/impl/sync.h",
"include/grpcpp/resource_quota.h",
"include/grpcpp/security/audit_logging.h",
"include/grpcpp/security/auth_context.h",
"include/grpcpp/security/auth_metadata_processor.h",
"include/grpcpp/security/credentials.h",
Expand Down Expand Up @@ -790,6 +792,10 @@ grpc_cc_library(
grpc_cc_library(
name = "grpc_public_hdrs",
hdrs = GRPC_PUBLIC_HDRS,
external_deps = [
"absl/status:statusor",
"absl/strings",
],
tags = [
"avoid_dep",
"nofixdeps",
Expand Down Expand Up @@ -1734,6 +1740,7 @@ grpc_cc_library(
"//src/core:handshaker_factory",
"//src/core:handshaker_registry",
"//src/core:iomgr_fwd",
"//src/core:json",
"//src/core:memory_quota",
"//src/core:poll",
"//src/core:ref_counted",
Expand Down Expand Up @@ -1886,6 +1893,7 @@ grpc_cc_library(
"//src/core:error",
"//src/core:gpr_atm",
"//src/core:gpr_manual_constructor",
"//src/core:grpc_audit_logging",
"//src/core:grpc_backend_metric_provider",
"//src/core:grpc_service_config",
"//src/core:grpc_transport_inproc",
Expand Down
51 changes: 51 additions & 0 deletions CMakeLists.txt

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

2 changes: 2 additions & 0 deletions Makefile

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

30 changes: 30 additions & 0 deletions build_autogenerated.yaml

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

0 comments on commit 8a76365

Please sign in to comment.