Skip to content

Commit

Permalink
Improve access list events printing UX
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiczko committed Oct 18, 2024
1 parent e4c51a9 commit eee513b
Show file tree
Hide file tree
Showing 3 changed files with 1,754 additions and 1,310 deletions.
35 changes: 34 additions & 1 deletion api/proto/teleport/legacy/types/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,22 @@ message OktaAssignmentMetadata {
string EndingStatus = 4 [(gogoproto.jsontag) = "ending_status,omitempty"];
}

// AccessListMetadata contains common metadata for access list resource events.
message AccessListMetadata {
// AccessListTitle is a plain text short description of the access list.
string AccessListTitle = 2 [(gogoproto.jsontag) = "access_list_title,omitempty"];
}

// AccessListMemberMetadata contains common metadata for access list member resource events.
message AccessListMemberMetadata {
// AccessListName is the name of the access list the members are being added to or removed from.
string AccessListName = 1 [(gogoproto.jsontag) = "access_list_name,omitempty"];

// Members are all members affected by the access list membership change.
repeated AccessListMember Members = 2 [(gogoproto.jsontag) = "members,omitempty"];

// AccessListTitle is a plain text short description of the access list the members are being added to or removed from.
string AccessListTitle = 3 [(gogoproto.jsontag) = "access_list_title,omitempty"];
}

// AccessListMember is metadata surrounding an individual access list member.
Expand Down Expand Up @@ -299,7 +308,7 @@ message AccessListReviewMetadata {
// ReviewID is the ID of the review.
string ReviewID = 2 [(gogoproto.jsontag) = "review_id,omitempty"];

// MembershipRequirementsChanged is populated if the memrship requirements have changed..
// MembershipRequirementsChanged is populated if the membership requirements have changed.
AccessListReviewMembershipRequirementsChanged MembershipRequirementsChanged = 3 [(gogoproto.jsontag) = "membership_requirements_changed,omitempty"];

// ReviewFrequencyChanged is populated if the review frequency has changed.
Expand All @@ -310,6 +319,9 @@ message AccessListReviewMetadata {

// RemovedMembers are the members that were removed as part of the review.
repeated string RemovedMembers = 6 [(gogoproto.jsontag) = "removed_members,omitempty"];

// AccessListTitle is the title of the reviewed access list.
string AccessListTitle = 7 [(gogoproto.jsontag) = "access_list_title,omitempty"];
}

// LockMetadata contains common metadata for lock resource events.
Expand Down Expand Up @@ -6165,6 +6177,13 @@ message AccessListCreate {
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// AccessList is common access list metadata.
AccessListMetadata AccessList = 4 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];
}

// AccessListUpdate is emitted when an access list is updated.
Expand All @@ -6189,6 +6208,13 @@ message AccessListUpdate {
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// AccessList is common access list metadata.
AccessListMetadata AccessList = 4 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];
}

// AccessListDelete is emitted when an access list is deleted.
Expand All @@ -6213,6 +6239,13 @@ message AccessListDelete {
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// AccessList is common access list metadata.
AccessListMetadata AccessList = 4 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];
}

// AccessListMemberCreate is emitted when an access list member is created.
Expand Down
Loading

0 comments on commit eee513b

Please sign in to comment.