Skip to content

Commit

Permalink
OS-8046. Add the GCP service to the "Public S3 buckets" recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
ek-hystax authored Dec 5, 2024
1 parent c65660c commit 3a33687
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FormattedMessage } from "react-intl";
import RecommendationListItemResourceLabel from "components/RecommendationListItemResourceLabel";
import TextWithDataTestId from "components/TextWithDataTestId";
import { AWS_S3, NEBIUS_SERVICE } from "hooks/useRecommendationServices";
import { AWS_S3, GCP_CLOUD_STORAGE, NEBIUS_SERVICE } from "hooks/useRecommendationServices";
import { detectedAt, poolOwner, resource, resourceLocation } from "utils/columns";
import { AWS_CNR, NEBIUS } from "utils/constants";
import { AWS_CNR, GCP_CNR, NEBIUS } from "utils/constants";
import BaseRecommendation, { CATEGORY_SECURITY } from "./BaseRecommendation";

const columns = [
Expand Down Expand Up @@ -58,9 +58,9 @@ class PublicS3Buckets extends BaseRecommendation {

emptyMessageId = "noPublicS3Buckets";

services = [AWS_S3, NEBIUS_SERVICE];
services = [AWS_S3, NEBIUS_SERVICE, GCP_CLOUD_STORAGE];

appliedDataSources = [AWS_CNR, NEBIUS];
appliedDataSources = [AWS_CNR, NEBIUS, GCP_CNR];

categories = [CATEGORY_SECURITY];

Expand Down
5 changes: 5 additions & 0 deletions ngui/ui/src/hooks/useRecommendationServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const AZURE_NETWORK = "azureNetwork";

export const GCP_COMPUTE_ENGINE = "gcpComputeEngine";
export const GCP_IAM = "gcpAim";
export const GCP_CLOUD_STORAGE = "gcpCloudStorage";

export const NEBIUS_SERVICE = "nebius";

Expand Down Expand Up @@ -93,6 +94,10 @@ const GCP_SERVICES = Object.freeze({
[GCP_IAM]: {
type: GCP_CNR,
name: "services.iam"
},
[GCP_CLOUD_STORAGE]: {
type: GCP_CNR,
name: "services.cloudStorage"
}
});

Expand Down
5 changes: 3 additions & 2 deletions ngui/ui/src/translations/en-US/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,6 @@
"edit{}": "Edit {value}",
"eitherMinOrMaxMustBeDefined": "Either minimimum or maximum must be defined",
"email": "Email",
"emailVerificationDescription": "To verify your email, please enter the verification code sent to:",
"emailVerifiedSuccessfully": "Email has been verified successfully!",
"emailNotifications": "Email notifications",
"emailTemplates.accountManagement.invite.description": "Notification of an invitation to join OptScale",
"emailTemplates.accountManagement.invite.title": "Invitation notification",
Expand Down Expand Up @@ -666,6 +664,8 @@
"emailTemplates.systemNotifications.environment_changes.title": "Environment changed",
"emailTemplates.systemNotifications.report_imports_passed_for_org.description": "Confirmation that initial expense processing for your organization is complete",
"emailTemplates.systemNotifications.report_imports_passed_for_org.title": "Expenses initial processing completed",
"emailVerificationDescription": "To verify your email, please enter the verification code sent to:",
"emailVerifiedSuccessfully": "Email has been verified successfully!",
"employee": "Employee",
"enabled": "Enabled",
"endDate": "End date",
Expand Down Expand Up @@ -1983,6 +1983,7 @@
"serverError": "Server error",
"service": "Service",
"serviceAccountId": "Service account ID",
"services.cloudStorage": "Cloud Storage",
"services.compute": "Compute",
"services.computeEngine": "Compute Engine",
"services.ebs": "EBS",
Expand Down

0 comments on commit 3a33687

Please sign in to comment.