Remove insert id and request header TODOs from schema

This commit is contained in:
Christian Schaible 2024-08-27 08:57:47 +02:00
parent 543e8e9ea2
commit 3d833fe301
2 changed files with 0 additions and 15 deletions

View file

@ -212,16 +212,11 @@ type AuditLogEntry struct {
// Sequence-Number: Increasing number, representing the message offset per Worker-Id
// If the Worker-Id changes, the sequence-number has to be reset to 0.
//
// NOTE: The ID will be masked by the SDK, applying the XOR Operation to not leak internal
//
// information to the customer
//
// Examples:
//
// "1721899117/eu01/319a7fb9-edd2-46c6-953a-a724bb377c61/8792726390909855142"
//
// Required: true
// TODO XOR
InsertId string `protobuf:"bytes,3,opt,name=insert_id,json=insertId,proto3" json:"insert_id,omitempty"`
// A set of user-defined (key, value) data that provides additional
// information about the log entry.
@ -1181,8 +1176,6 @@ type AttributeContext_Request struct {
//
// Internal IP-Addresses have to be removed (e.g. in x-forwarded-xxx headers).
//
// # TODO specify whitelist
//
// 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.

View file

@ -52,14 +52,10 @@ message AuditLogEntry {
// Sequence-Number: Increasing number, representing the message offset per Worker-Id
// If the Worker-Id changes, the sequence-number has to be reset to 0.
//
// NOTE: The ID will be masked by the SDK, applying the XOR Operation to not leak internal
// information to the customer
//
// Examples:
// "1721899117/eu01/319a7fb9-edd2-46c6-953a-a724bb377c61/8792726390909855142"
//
// Required: true
// TODO XOR
string insert_id = 3[
(buf.validate.field).required = true,
(buf.validate.field).string.pattern = "^[0-9]+/[a-z0-9]+/[a-z0-9-]+/[0-9]+$"
@ -242,8 +238,6 @@ message AuditLog {
// Required: false
optional google.protobuf.Struct request = 7;
// The status of the overall operation.
//
// Required: true
@ -458,8 +452,6 @@ message AttributeContext {
//
// Internal IP-Addresses have to be removed (e.g. in x-forwarded-xxx headers).
//
// TODO specify whitelist
//
// Required: true
map<string, string> headers = 3 [
(buf.validate.field).required = true