Skip to content

Commit

Permalink
Add Protobuf types for SPIFFE Federation resource and audit events (#…
Browse files Browse the repository at this point in the history
…45041)

* Add gRPC types and events for SPIFFEFederation type

* Fix copy-pasta mistake

* Add to dynamic.go

* Add to eventsmap
  • Loading branch information
strideynet authored Aug 5, 2024
1 parent 782c18a commit 9be1cc9
Show file tree
Hide file tree
Showing 13 changed files with 3,465 additions and 996 deletions.
634 changes: 634 additions & 0 deletions api/gen/proto/go/teleport/machineid/v1/federation.pb.go

Large diffs are not rendered by default.

513 changes: 513 additions & 0 deletions api/gen/proto/go/teleport/machineid/v1/federation_service.pb.go

Large diffs are not rendered by default.

269 changes: 269 additions & 0 deletions api/gen/proto/go/teleport/machineid/v1/federation_service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions api/proto/teleport/legacy/types/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4454,6 +4454,8 @@ message OneOf {
events.IntegrationCreate IntegrationCreate = 165;
events.IntegrationUpdate IntegrationUpdate = 166;
events.IntegrationDelete IntegrationDelete = 167;
events.SPIFFEFederationCreate SPIFFEFederationCreate = 168;
events.SPIFFEFederationDelete SPIFFEFederationDelete = 169;
}
}

Expand Down Expand Up @@ -6664,3 +6666,65 @@ message AccessGraphSettingsUpdate {
(gogoproto.jsontag) = ""
];
}

// SPIFFEFederationCreate is emitted when a SPIFFE federation is created.
message SPIFFEFederationCreate {
// Metadata is a common event metadata
Metadata Metadata = 1 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// ResourceMetadata is a common resource event metadata
ResourceMetadata Resource = 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) = ""
];
}

// SPIFFEFederationDelete is emitted when a SPIFFE federation is deleted.
message SPIFFEFederationDelete {
// Metadata is a common event metadata
Metadata Metadata = 1 [
(gogoproto.nullable) = false,
(gogoproto.embed) = true,
(gogoproto.jsontag) = ""
];

// ResourceMetadata is a common resource event metadata
ResourceMetadata Resource = 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 9be1cc9

Please sign in to comment.