Vertex AI runtime is public misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC2_GCP_36
Category - Subcategory
Public Exposure - APIs
Provider
GCP
Severity
MEDIUM
Framework
Terraform, Terraform Plan
Impact
This rule is checking to see if the Vertex AI runtime is set to private within a Google Cloud Platform (GCP) environment. The reasoning for this is to enhance security by reducing the exposure of the AI runtime to potential external threats. When set to private, the Vertex AI runtime isn't accessible from the public internet, which minimizes the risk of unauthorized access or attacks. Public runtimes are more susceptible to vulnerabilities, making this a key rule to implement when maintaining robust security practices.
How to Fix
Resource: google_notebooks_runtime
Arguments: virtual_machine.virtual_machine_config.internal_ip_only
To fix this issue, you'll need to set your Vertex AI runtime to private mode. This can be achieved by setting the internal_ip_only property to true in your Vertex AI resource block, as shown below: [source,go]
resource "google_notebooks_runtime" "runtime_good" { ... virtual_machine { virtual_machine_config { internal_ip_only = true ... } } }
Last updated
Was this helpful?
