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

AWS IC: Add groups filter #51484

Merged
merged 7 commits into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions api/proto/teleport/legacy/types/types.proto
Original file line number Diff line number Diff line change
@@ -6858,6 +6858,10 @@ message PluginAWSICSettings {
// manage. An empty list implies that all accounts managed by the Identity Center
// instance will be imported and managed.
repeated AWSICResourceFilter aws_accounts_filters = 9;

// GroupSyncLabelsFilter is used to specify filters that determine which AWS groups
// should be included during synchronization.
repeated AWSICResourceFilter group_sync_filters = 10 [(gogoproto.jsontag) = "group_sync_filters,omitempty"];
}

// AWSICResourceFilter is an entry in the AWS IC plugin settings' allow-list of
@@ -6866,14 +6870,14 @@ message PluginAWSICSettings {
message AWSICResourceFilter {
option (gogoproto.equal) = true;

// Filter describes the AWS Resource filter to apply
oneof filter {
// Include describes the AWS Resource filter to apply
oneof include {
// Id indicates that the resource should be filtered by ID
string id = 1;
string id = 1 [(gogoproto.jsontag) = "id,omitempty"];

// NameRegex indicates that the resource should be included its name matches
// the supplied regex.
string name_regex = 2;
string name_regex = 2 [(gogoproto.jsontag) = "name_regex,omitempty"];
}
}

997 changes: 532 additions & 465 deletions api/types/types.pb.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -88,3 +88,7 @@ breaking:
RESERVED_ENUM_NO_DELETE:
- api/proto/teleport/legacy/types/types.proto
- proto/teleport/legacy/types/types.proto
# TODO(tcsc): remove once AWSICResourceFilter.filter -> include rename complete
FIELD_SAME_ONEOF:
- api/proto/teleport/legacy/types/types.proto
- proto/teleport/legacy/types/types.proto