Skip to content

Commit

Permalink
[sec_scan][10] add AccessGraphSettingsUpdate audit event (#44011)
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 30, 2024
1 parent 559020c commit 0c0ea0d
Show file tree
Hide file tree
Showing 6 changed files with 1,370 additions and 1,178 deletions.
35 changes: 32 additions & 3 deletions api/proto/teleport/legacy/types/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4441,9 +4441,7 @@ message OneOf {
events.DiscoveryConfigUpdate DiscoveryConfigUpdate = 161;
events.DiscoveryConfigDelete DiscoveryConfigDelete = 162;
events.DiscoveryConfigDeleteAll DiscoveryConfigDeleteAll = 163;
events.IntegrationCreate IntegrationCreate = 165;
events.IntegrationUpdate IntegrationUpdate = 166;
events.IntegrationDelete IntegrationDelete = 167;
events.AccessGraphSettingsUpdate AccessGraphSettingsUpdate = 164;
}
}

Expand Down Expand Up @@ -6618,3 +6616,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 0c0ea0d

Please sign in to comment.