Skip to content

Commit

Permalink
add lock target to lock deletion audit events
Browse files Browse the repository at this point in the history
  • Loading branch information
capnspacehook committed May 1, 2024
1 parent 97a4489 commit a168523
Show file tree
Hide file tree
Showing 3 changed files with 1,467 additions and 1,157 deletions.
23 changes: 23 additions & 0 deletions api/proto/teleport/legacy/types/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,15 @@ message AccessListReviewMetadata {
repeated string RemovedMembers = 6 [(gogoproto.jsontag) = "removed_members,omitempty"];
}

// LockMetadata contains common metadata for lock resource events.
message LockMetadata {
// Target describes the set of interactions that the lock applies to
types.LockTarget Target = 4 [
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "target"
];
}

// SessionStart is a session start event
message SessionStart {
// Metadata is a common event metadata
Expand Down Expand Up @@ -3562,10 +3571,18 @@ message LockCreate {
];

// Target describes the set of interactions that the lock applies to
// Deprecated: use Lock instead.
types.LockTarget Target = 4 [
deprecated = true,
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "target"
];

// Lock is a common lock event metadata
LockMetadata Lock = 5 [
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "lock"
];
}

// LockDelete is emitted when a lock is deleted
Expand All @@ -3590,6 +3607,12 @@ message LockDelete {
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// Lock is a common lock event metadata
LockMetadata Lock = 4 [
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "lock"
];
}

// RecoveryCodeGenerate is emitted when a user's new recovery codes are generated and updated.
Expand Down
Loading

0 comments on commit a168523

Please sign in to comment.