Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform(general): Backfill more eval keys #6970

Merged
merged 4 commits into from
Feb 3, 2025
Merged

Conversation

tsmithv11
Copy link
Collaborator

@tsmithv11 tsmithv11 commented Jan 25, 2025

User description

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

Adding more eval keys


Generated description

Below is a concise technical summary of the changes proposed in this PR:

Adds the get_evaluated_keys() method to multiple resource checks in the CloudFormation and ARM modules. This method returns a list of keys that were evaluated during the check, improving the transparency and debuggability of the checks. The changes also include updating the scan_resource_conf methods to set the self.evaluated_keys attribute, which is then used by the new get_evaluated_keys() method.

TopicDetails
Evaluated Keys Adds get_evaluated_keys() method and updates scan_resource_conf to set self.evaluated_keys in various resource checks
Modified files (74)
  • checkov/cloudformation/checks/resource/aws/GlueSecurityConfiguration.py
  • checkov/cloudformation/checks/resource/aws/RedShiftSSL.py
  • checkov/arm/checks/resource/SecurityCenterContactPhone.py
  • checkov/cloudformation/checks/resource/aws/ELBv2AccessLogs.py
  • checkov/arm/checks/resource/SecurityCenterContactEmailAlertAdmins.py
  • checkov/cloudformation/checks/resource/aws/CloudfrontDistributionEncryption.py
  • checkov/arm/checks/resource/SecurityCenterContactEmailAlert.py
  • checkov/arm/checks/resource/AppServiceInstanceMinimum.py
  • checkov/arm/checks/resource/AKSRbacEnabled.py
  • checkov/arm/checks/resource/SynapseWorkspaceCMKEncryption.py
  • checkov/arm/checks/resource/PostgreSQLServerLogConnectionsEnabled.py
  • checkov/arm/checks/resource/SQLServerThreatDetectionTypes.py
  • checkov/cloudformation/checks/resource/aws/ElasticacheReplicationGroupEncryptionAtTransitAuthToken.py
  • checkov/arm/checks/resource/VMDisablePasswordAuthentication.py
  • checkov/cloudformation/checks/resource/aws/AbsSecurityGroupUnrestrictedIngress.py
  • checkov/arm/checks/resource/FunctionAppsAccessibleOverHttps.py
  • checkov/arm/checks/resource/PostgreSQLServerConnectionThrottlingEnabled.py
  • checkov/cloudformation/checks/resource/aws/ECSClusterContainerInsights.py
  • checkov/arm/checks/resource/AzureSearchSLAIndex.py
  • checkov/arm/checks/resource/AKSApiServerAuthorizedIpRanges.py
  • checkov/arm/checks/resource/AppServiceAuthentication.py
  • checkov/arm/checks/resource/PostgreSQLServerLogCheckpointsEnabled.py
  • checkov/arm/checks/resource/StorageBlobServiceContainerPrivateAccess.py
  • checkov/arm/checks/resource/KeyvaultRecoveryEnabled.py
  • checkov/arm/checks/resource/NetworkWatcherFlowLogPeriod.py
  • checkov/arm/checks/resource/AKSNetworkPolicy.py
  • checkov/cloudformation/checks/resource/aws/EC2PublicIP.py
  • checkov/arm/checks/resource/AppServiceIdentity.py
  • checkov/arm/checks/resource/AppServiceClientCertificate.py
  • checkov/arm/checks/resource/SecretExpirationDate.py
  • checkov/arm/checks/resource/StorageAccountsTransportEncryption.py
  • checkov/arm/checks/resource/StorageAccountLoggingQueueServiceEnabled.py
  • checkov/arm/checks/resource/AKSLoggingEnabled.py
  • checkov/cloudformation/checks/resource/aws/IAMAdminPolicyDocument.py
  • checkov/arm/checks/resource/SQLServerNoPublicAccess.py
  • checkov/arm/checks/resource/StorageAccountAzureServicesAccessEnabled.py
  • checkov/cloudformation/checks/resource/aws/SecurityGroupRuleDescription.py
  • checkov/cloudformation/checks/resource/aws/ElasticsearchDomainLogging.py
  • checkov/arm/checks/resource/CosmosDBDisableAccessKeyWrite.py
  • checkov/arm/checks/resource/StorageAccountDefaultNetworkAccessDeny.py
  • checkov/cloudformation/checks/resource/aws/ECSTaskDefinitionEFSVolumeEncryption.py
  • checkov/arm/checks/resource/StorageAccountMinimumTlsVersion.py
  • checkov/arm/checks/resource/MonitorLogProfileCategories.py
  • checkov/arm/checks/resource/ACRContainerScanEnabled.py
  • checkov/arm/checks/resource/ACREnableZoneRedundancy.py
  • checkov/cloudformation/checks/resource/aws/LaunchConfigurationEBSEncryption.py
  • checkov/cloudformation/checks/resource/aws/MSKClusterLogging.py
  • checkov/arm/checks/resource/AzureSynapseWorkspacesHaveNoIPFirewallRulesAttached.py
  • checkov/arm/checks/resource/SecurityCenterStandardPricing.py
  • checkov/arm/checks/resource/AppServiceHttps20Enabled.py
  • checkov/cloudformation/checks/resource/aws/CodeBuildProjectEncryption.py
  • checkov/arm/checks/resource/AppGWDefinesSecureProtocols.py
  • checkov/cloudformation/checks/resource/aws/GlueDataCatalogEncryption.py
  • checkov/arm/checks/resource/APIManagementMinTLS12.py
  • checkov/arm/checks/resource/AKSDashboardDisabled.py
  • checkov/arm/checks/resource/FunctionAppsEnableAuthentication.py
  • checkov/cloudformation/checks/resource/aws/IAMStarActionPolicyDocument.py
  • checkov/arm/checks/resource/MonitorLogProfileRetentionDays.py
  • checkov/arm/checks/resource/StorageAccountName.py
  • checkov/arm/checks/resource/DatabricksWorkspaceDBFSRootEncryptedWithCustomerManagedKey.py
  • checkov/arm/checks/resource/DatabricksWorkspaceIsNotPublic.py
  • checkov/cloudformation/checks/resource/aws/IAMRoleAllowAssumeFromAccount.py
  • checkov/arm/checks/resource/ACRAnonymousPullDisabled.py
  • checkov/arm/checks/resource/SynapseWorkspaceAdministratorLoginPasswordHidden.py
  • checkov/arm/checks/resource/CustomRoleDefinitionSubscriptionOwner.py
  • checkov/cloudformation/checks/resource/aws/ALBDropHttpHeaders.py
  • checkov/cloudformation/checks/resource/aws/APIGatewayAuthorization.py
  • checkov/arm/checks/resource/SQLServerAuditingEnabled.py
  • checkov/arm/checks/resource/AppServiceUsedAzureFiles.py
  • checkov/arm/checks/resource/AKSMaxPodsMinimum.py
  • checkov/arm/checks/resource/AzureManagedDiscEncryption.py
  • checkov/cloudformation/checks/resource/aws/ALBListenerTLS12.py
  • checkov/cloudformation/checks/resource/aws/ALBListenerHTTPS.py
  • checkov/arm/checks/resource/AppServiceHTTPSOnly.py
Latest Contributors(2)
UserCommitDate
tjwaldfeat-general-initial-s...January 23, 2025
channy-katzfeat-arm-ACREnableZone...July 29, 2024
This pull request is reviewed by Baz. Join @tsmithv11 and the rest of your team on (Baz).

@tsmithv11 tsmithv11 merged commit 7229f61 into main Feb 3, 2025
47 checks passed
@tsmithv11 tsmithv11 deleted the more-eval-keys-jan25 branch February 3, 2025 08:42
Saarett pushed a commit that referenced this pull request Feb 3, 2025
* Backfill more eval keys

* fix flake8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants