Ensure that your Oracle Cloud Infrastructure (OCI) Functions applications are attached to Network Security Groups (NSGs) to implement granular ingress and egress network access controls at the application level. NSGs provide more fine-grained security than subnet-level security lists by allowing you to define specific rules for individual applications rather than all resources in a subnet. This is particularly important when multiple applications with different access requirements share the same subnet, as it enables you to apply different security rules to functions in different applications without compromising network security. You can attach a Functions application to up to five NSGs, and these NSGs can be in the same or different compartments (but must be in the same VCN as the application subnets).
Attaching Oracle Cloud Infrastructure (OCI) Functions applications to Network Security Groups (NSGs) provides granular network-level security that separates application security requirements from VCN subnet architecture. Unlike subnet-level security lists that apply to all resources in a subnet, NSGs enable you to define specific ingress and egress rules for individual Functions applications, allowing different applications in the same subnet to have different security postures. This is particularly valuable when one application needs access to databases and object storage while another requires access to external REST APIs, as each can be attached to NSGs with appropriate rules without affecting other applications. NSGs support both CIDR-based rules and NSG-to-NSG rules, enabling you to create security boundaries between application tiers and control traffic flow at the packet level. By implementing NSG-based access controls, you enhance defense-in-depth security, maintain network segmentation, and gain the flexibility to modify application security rules without restructuring your VCN or subnet architecture.
Audit
To determine if your OCI Functions applications are attached to Network Security Groups (NSGs), perform the following operations:
Remediation / Resolution
To attach your existing Oracle Cloud Infrastructure (OCI) Functions applications to Network Security Groups (NSGs), perform the following operations:
References
- Oracle Cloud Infrastructure Documentation
- Adding Applications to Network Security Groups (NSGs)
- Network Security Groups
- Controlling Access
- Updating an Application
- Oracle Cloud Infrastructure CLI Documentation
- compartment list
- application list
- application get
- application update
- nsg list
- nsg create