Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in Okta audit events. #25934

Merged
merged 6 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
114 changes: 114 additions & 0 deletions api/proto/teleport/legacy/types/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,31 @@ message SAMLIdPServiceProviderMetadata {
string ServiceProviderShortcut = 2 [(gogoproto.jsontag) = "service_provider_shortcut,omitempty"];
}

// OktaResourcesUpdatedMetadata contains common metadata for Okta resources updated events.
message OktaResourcesUpdatedMetadata {
// Added is the number of resources added.
int32 Added = 1 [(gogoproto.jsontag) = "added"];
// Updated is the number of resources updated.
int32 Updated = 2 [(gogoproto.jsontag) = "updated"];
// Deleted is the number of resources deleted.
int32 Deleted = 3 [(gogoproto.jsontag) = "deleted"];
}

// OktaAssignmentMetadata contains common metadata for Okta assignment events.
message OktaAssignmentMetadata {
// Source is the source of the Okta assignment.
string Source = 1 [(gogoproto.jsontag) = "source,omitempty"];

// User is the user the Okta assignment is for.
string User = 2 [(gogoproto.jsontag) = "user,omitempty"];

// StartingStatus is the starting status of the assignment.
string StartingStatus = 3 [(gogoproto.jsontag) = "starting_status,omitempty"];

// EndingStatus is the ending status of the assignment.
string EndingStatus = 4 [(gogoproto.jsontag) = "ending_status,omitempty"];
}

// SessionStart is a session start event
message SessionStart {
// Metadata is a common event metadata
Expand Down Expand Up @@ -3317,6 +3342,9 @@ message OneOf {
events.SAMLIdPServiceProviderDeleteAll SAMLIdPServiceProviderDeleteAll = 119;
events.OpenSearchRequest OpenSearchRequest = 120;
events.DeviceEvent2 DeviceEvent2 = 121;
events.OktaResourcesUpdate OktaResourcesUpdate = 122;
events.OktaSyncFailure OktaSyncFailure = 123;
events.OktaAssignmentResult OktaAssignmentResult = 124;
}
}

Expand Down Expand Up @@ -4716,3 +4744,89 @@ message SAMLIdPServiceProviderDeleteAll {
(gogoproto.jsontag) = ""
];
}

// OktaResourcesUpdate is emitted when Okta related resources have been updated.
message OktaResourcesUpdate {
// Metadata is common event metadata
Metadata Metadata = 1 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// Server is a common server metadata.
ServerMetadata Server = 2 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// Updated is common metadata related to Okta resources being updated.
OktaResourcesUpdatedMetadata Updated = 3 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];
}

// OktaSyncFailure is emitted when an Okta synchronization attempt has failed.
message OktaSyncFailure {
// Metadata is common event metadata
Metadata Metadata = 1 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// Server is a common server metadata.
ServerMetadata Server = 2 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// Status contains error information for the synchronization failure.
Status Status = 3 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];
}

// OktaAssignmentResult is emitted when an Okta assignment processing or cleanup was attempted.
message OktaAssignmentResult {
// Metadata is common event metadata
Metadata Metadata = 1 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// Server is a common server metadata.
ServerMetadata Server = 2 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// ResourceMetadata is common resource event metadata
ResourceMetadata Resource = 3 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

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

// OktaAssignmentMetadata is common Okta assignment metadata.
OktaAssignmentMetadata OktaAssignment = 5 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];
}