Skip to content

Commit

Permalink
[v15] add Access Graph usage events for AWS, Secret scanner and gitlab (
Browse files Browse the repository at this point in the history
#46529)

* add Access Graph usage events for Secret scanner and gitlab (#46430)

This PR adds the Access Graph usage events to track the activity on access graph Gitlab and Secrets Scanner integrations.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* add Access Graph usage events for AWS (#46468)

This PR adds the Access Graph usage events to track the activity on access graph AWS integration.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
  • Loading branch information
tigrato authored Sep 17, 2024
1 parent 0c14171 commit 5842ba7
Show file tree
Hide file tree
Showing 8 changed files with 3,215 additions and 1,309 deletions.
1,240 changes: 933 additions & 307 deletions api/gen/proto/go/usageevents/v1/usageevents.pb.go

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions api/proto/teleport/usageevents/v1/usageevents.proto
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,33 @@ message TAGExecuteQueryEvent {
bool is_success = 3;
}

// AccessGraphAWSScanEvent is emitted when the Access Graph
// AWS scan is enabled.
message AccessGraphAWSScanEvent {
// total_ec2_instances is the total amount of EC2 instances found in the AWS scan.
uint64 total_ec2_instances = 1;
// total_users is the total amount of users found in the AWS scan.
uint64 total_users = 2;
// total_groups is the total amount of groups found in the AWS scan.
uint64 total_groups = 3;
// total_roles is the total amount of roles found in the AWS scan.
uint64 total_roles = 4;
// total_policies is the total amount of policies found in the AWS scan.
uint64 total_policies = 5;
// total_eks_clusters is the total amount of EKS clusters found in the AWS scan.
uint64 total_eks_clusters = 6;
// total_rds_instances is the total amount of RDS instances found in the AWS scan.
uint64 total_rds_instances = 7;
// total_s3_buckets is the total amount of S3 buckets found in the AWS scan.
uint64 total_s3_buckets = 8;
// total_saml_providers is the total amount of SAML providers found in the AWS scan.
uint64 total_saml_providers = 9;
// total_oidc_providers is the total amount of OIDC providers found in the AWS scan.
uint64 total_oidc_providers = 10;
// total_accounts is the total amount of accounts synchronized in the AWS scan.
uint64 total_accounts = 11;
}

// SecurityReportGetResultEvent is emitted when the user requests a security report.
message SecurityReportGetResultEvent {
// name is the name of the security report.
Expand Down Expand Up @@ -747,6 +774,7 @@ message UsageEventOneOf {
UIDiscoverCreateDiscoveryConfigEvent ui_discover_create_discovery_config = 55;
UIDiscoverKubeEKSEnrollEvent ui_discover_kube_eks_enroll_event = 56;
UIDiscoverCreateAppServerEvent ui_discover_create_app_server_event = 57;
AccessGraphAWSScanEvent access_graph_aws_scan_event = 58;
}
reserved 2; //UIOnboardGetStartedClickEvent
reserved "ui_onboard_get_started_click";
Expand Down
Loading

0 comments on commit 5842ba7

Please sign in to comment.