For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

OCI VCN has no inbound security list misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_OCI_16

Category - Subcategory

Public Exposure - Ingress Controls

Provider

ORACLE

Severity

LOW

Framework

Terraform, Terraform Plan

Impact

This rule identifies the OCI Virtual Cloud Networks (VCN) that lack ingress rules configured in their security lists. It is recommended that Virtual Cloud Networks (VCN) security lists are configured with ingress rules which provide stateful and stateless firewall capability to control network access to your instances.

How to Fix

Resource: oci_core_security_list

  • Arguments: vcn_id + ingress_security_rules [source,go]


resource "oci_core_security_list" "pass" { compartment_id = oci_identity_compartment.tf-compartment.id vcn_id = oci_core_vcn.test_vcn.id

  • ingress_security_rules {

  • protocol = "all"

  • source="192.168.1.0/24"

  • } }


Last updated

Was this helpful?