Skip to content

Commit

Permalink
[sec_scan][10] add AccessGraphSettingsUpdate audit event
Browse files Browse the repository at this point in the history
This PR adds the boilerplate code and proto definition for `AccessGraphSettingsUpdate` audit event.

This PR is part of gravitational/access-graph#637.

Signed-off-by: Tiago Silva <[email protected]>
  • Loading branch information
tigrato committed Jul 11, 2024
1 parent 2cb249d commit a706853
Show file tree
Hide file tree
Showing 6 changed files with 1,416 additions and 970 deletions.
32 changes: 32 additions & 0 deletions api/proto/teleport/legacy/types/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4286,6 +4286,7 @@ message OneOf {
events.DiscoveryConfigUpdate DiscoveryConfigUpdate = 161;
events.DiscoveryConfigDelete DiscoveryConfigDelete = 162;
events.DiscoveryConfigDeleteAll DiscoveryConfigDeleteAll = 163;
events.AccessGraphSettingsUpdate AccessGraphSettingsUpdate = 164;
}
}

Expand Down Expand Up @@ -6460,3 +6461,34 @@ message SpannerRPC {
(gogoproto.casttype) = "Struct"
];
}

// AccessGraphSettingsUpdate is emitted when the Access Graph Settings config is updated.
message AccessGraphSettingsUpdate {
// Metadata is a common event metadata
Metadata Metadata = 1 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// Status indicates whether the update was successful.
Status Status = 2 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// User is a common user event metadata
UserMetadata User = 3 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// ConnectionMetadata holds information about the connection
ConnectionMetadata Connection = 4 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];
}
Loading

0 comments on commit a706853

Please sign in to comment.