All Products
Search
Document Center

Cloud Config:mongodb-public-access-check

Last Updated:Nov 10, 2025

Checks whether 0.0.0.0/0 is added to the IP address whitelist of an ApsaraDB for MongoDB instance.

Scenario

If 0.0.0.0/0 is added to the IP address whitelist of an ApsaraDB for MongoDB instance, the instance can be accessed from all CIDR blocks. This poses data security risks. We recommend that you add 0.0.0.0/0 to the IP address whitelist with caution.

Risk level

Default risk level: high.

You can change the risk level as required when you apply this rule.

Compliance evaluation logic

  • If 0.0.0.0/0 is not added to the IP address whitelist of the ApsaraDB for MongoDB instance, the configuration is considered compliant.
  • If 0.0.0.0/0 is added to the IP address whitelist of the ApsaraDB for MongoDB instance, the configuration is considered non-compliant. For more information about how to correct the non-compliant configuration, see Non-compliance remediation.

Rule details

ItemDescription
Rule namemongodb-public-access-check
Rule IDmongodb-public-access-check
TagMongoDB and VPC
Automatic remediationNot supported
Trigger typeConfiguration change
Supported resource typeApsaraDB for MongoDB instance
Input parameterNone

Non-compliance remediation

Delete 0.0.0.0/0 from the IP address whitelist of the ApsaraDB for MongoDB instance. For more information, see Modify a whitelist for an instance.