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

AWS ElastiCache Redis cluster automatic version upgrade disabled misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AWS_322

Category - Subcategory

Compute - Unsanctioned Resource Or Type

Provider

AWS

Severity

LOW

Framework

Terraform, Terraform Plan

Mapped CSPM/KSPM Rule

0bf65873-3a3a-4141-af26-dd06dde22bb6

Impact

This rule is checking to ensure that auto minor version upgrades are enabled for ElastiCache for Redis cache clusters on AWS. Enabling auto minor version upgrades is important for maintaining the latest security patches and updates, thus preventing potential vulnerabilities. If auto minor version upgrades are not enabled, the cache clusters could be exposed to security risks, performance issues, and might lack new features. Therefore, not turning on auto minor version upgrades is considered a bad practice in terms of security and operational efficiency.

How to Fix

Resource: aws_elasticache_cluster

  • Arguments: auto_minor_version_upgrade

To fix this issue, we need to ensure that the elasticache being provisioned have the attribute auto_minor_version_upgrade set to true. This can be achieved by modifying the Terraform code as follows: [source,go]

resource "aws_elasticache_cluster" "example" { cluster_id = "cluster-example" engine = "redis" node_type = "cache.m4.large" num_cache_nodes = 2 parameter_group_name = "default.redis3.2" auto_minor_version_upgrade = true ... }

Last updated

Was this helpful?