From 313486e30bf2cb31e055cd3bc8a3323e98688f6c Mon Sep 17 00:00:00 2001 From: Christian Schaible Date: Mon, 9 Sep 2024 13:28:51 +0200 Subject: [PATCH] Update schema description to reflect gRPC as communication protocol --- gen/go/audit/v1/audit_event.pb.go | 8 ++++---- proto/audit/v1/audit_event.proto | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gen/go/audit/v1/audit_event.pb.go b/gen/go/audit/v1/audit_event.pb.go index 921b47f..8b5d87d 100644 --- a/gen/go/audit/v1/audit_event.pb.go +++ b/gen/go/audit/v1/audit_event.pb.go @@ -1164,11 +1164,11 @@ type AttributeContext_Request struct { // // Required: false Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` - // The HTTP request method, such as `GET`, `POST`. + // The (HTTP) request method, such as `GET`, `POST`. // // Required: true Method AttributeContext_HttpMethod `protobuf:"varint,2,opt,name=method,proto3,enum=audit.v1.AttributeContext_HttpMethod" json:"method,omitempty"` - // The HTTP request headers. If multiple headers share the same key, they + // The (HTTP) request headers / gRPC metadata. If multiple headers share the same key, they // must be merged according to the HTTP spec. All header keys must be // lowercased, because HTTP header keys are case-insensitive. // @@ -1176,7 +1176,7 @@ type AttributeContext_Request struct { // // Required: true Headers map[string]string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The HTTP URL path. + // The gRPC / HTTP URL path. // // Required: true Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` @@ -1184,7 +1184,7 @@ type AttributeContext_Request struct { // // Required: true Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` - // The HTTP URL scheme, such as `http` and `https`. + // The URL scheme, such as `http`, `https` or `gRPC`. // // Required: true Scheme string `protobuf:"bytes,6,opt,name=scheme,proto3" json:"scheme,omitempty"` diff --git a/proto/audit/v1/audit_event.proto b/proto/audit/v1/audit_event.proto index 3b970de..69a63ac 100644 --- a/proto/audit/v1/audit_event.proto +++ b/proto/audit/v1/audit_event.proto @@ -435,7 +435,7 @@ message AttributeContext { // Required: false optional string id = 1; - // The HTTP request method, such as `GET`, `POST`. + // The (HTTP) request method, such as `GET`, `POST`. // // Required: true HttpMethod method = 2 [ @@ -443,7 +443,7 @@ message AttributeContext { (buf.validate.field).enum.defined_only = true ]; - // The HTTP request headers. If multiple headers share the same key, they + // The (HTTP) request headers / gRPC metadata. If multiple headers share the same key, they // must be merged according to the HTTP spec. All header keys must be // lowercased, because HTTP header keys are case-insensitive. // @@ -454,7 +454,7 @@ message AttributeContext { (buf.validate.field).required = true ]; - // The HTTP URL path. + // The gRPC / HTTP URL path. // // Required: true string path = 4 [ @@ -471,7 +471,7 @@ message AttributeContext { (buf.validate.field).string.min_len = 1 ]; - // The HTTP URL scheme, such as `http` and `https`. + // The URL scheme, such as `http`, `https` or `gRPC`. // // Required: true string scheme = 6 [