Skip to content

Commit

Permalink
Convert events metadata type to google.protobuf.Struct (#19130)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhjp authored Feb 10, 2023
1 parent 435d21a commit 34b3d04
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 53 deletions.
110 changes: 58 additions & 52 deletions sdk/logical/event.pb.go

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

3 changes: 2 additions & 1 deletion sdk/logical/event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ option go_package = "github.com/hashicorp/vault/sdk/logical";

package logical;

import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";

// EventPluginInfo contains data related to the plugin that generated an event.
Expand Down Expand Up @@ -33,7 +34,7 @@ message EventData {
// as a hash of other fields with sufficient uniqueness.
string id = 1;
// Arbitrary non-secret data. Optional.
bytes metadata = 2;
google.protobuf.Struct metadata = 2;
// Any IDs that the event relates to, i.e., UUIDs, paths.
repeated string entity_ids = 3;
// Human-readable note.
Expand Down

0 comments on commit 34b3d04

Please sign in to comment.