<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>continuous inspection tool &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/continuous-inspection-tool/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Tue, 13 Oct 2026 15:39:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>Set Up Continuous Compliance on AWS with Config Managed Rules</title>
		<link>https://www.bestdevops.com/set-up-continuous-compliance-on-aws-with-config-managed-rules/</link>
					<comments>https://www.bestdevops.com/set-up-continuous-compliance-on-aws-with-config-managed-rules/#respond</comments>
		
		<dc:creator><![CDATA[anil]]></dc:creator>
		<pubDate>Thu, 26 Sep 2019 07:07:59 +0000</pubDate>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[CloudFormation]]></category>
		<category><![CDATA[continuous inspection tool]]></category>
		<guid isPermaLink="false">http://www.bestdevops.com/?p=8075</guid>

					<description><![CDATA[Manual compliance practices can't keep pace with cloud environments. Learn how AWS Config managed rules help you establish automated, continuous compliance on AWS.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Manual compliance practices can&#8217;t keep pace with the speed and scale of cloud environments. AWS Config provides a managed service approach to continuous compliance, using predefined rules that monitor your AWS resources and alert you to violations automatically. This article explains what AWS Config is, how its rules engine works, and how to get started with managed rules.</p>



<h2 class="wp-block-heading">Why Manual Compliance Fails in the Cloud</h2>



<p class="wp-block-paragraph">Traditional compliance workflows rely on documentation, periodic audits, and manual checks. In on-premises environments, infrastructure changes slowly enough that these processes can keep up. Cloud environments are fundamentally different: new resources can be provisioned in seconds, configurations can drift silently, and teams can scale infrastructure across multiple regions without centralized oversight.</p>



<p class="wp-block-paragraph">The core disadvantages of manual cloud compliance include:</p>



<ul class="wp-block-list">
<li><strong>Scale:</strong> Hundreds or thousands of resources across accounts and regions make manual auditing impractical.</li>
<li><strong>Speed:</strong> By the time a manual audit catches a misconfigured resource, it may already have been exploited or removed.</li>
<li><strong>Documentation gaps:</strong> Manual processes are prone to inconsistent record-keeping, which creates problems during formal audits.</li>
<li><strong>Human error:</strong> Checklists and spreadsheets introduce opportunities for oversight and inconsistency.</li>
</ul>



<p class="wp-block-paragraph">Organizations migrating to AWS need to rethink compliance as an automated, continuous process rather than a periodic manual activity.</p>



<h2 class="wp-block-heading">Replacing Manual Processes with Managed Compliance Services</h2>



<p class="wp-block-paragraph">AWS offers several approaches to automating compliance. Options include AWS Partner Network solutions such as HPE Continuous Compliance and the use of Chef InSpec integrated with AWS Systems Manager. However, the most direct and native starting point is AWS Config with its managed rules, which requires no third-party tooling and integrates tightly with the rest of the AWS ecosystem.</p>



<p class="wp-block-paragraph">The principle behind managed compliance services is straightforward: define the desired configuration state of your infrastructure, then continuously compare actual resource configurations against that desired state. Any deviation is flagged, logged, and optionally remediated automatically. This gives auditors a continuous, queryable compliance record rather than a point-in-time snapshot.</p>



<h2 class="wp-block-heading">AWS Config: Core Concepts</h2>



<p class="wp-block-paragraph">AWS Config is a managed service that provides a detailed, continuously updated inventory of the resources in your AWS account — including EC2 instances, S3 buckets, security groups, IAM roles, VPCs, and more. It records how those resources are configured, tracks relationships between them, and maintains a historical timeline of configuration changes.</p>



<p class="wp-block-paragraph">Key capabilities of AWS Config include:</p>



<ul class="wp-block-list">
<li><strong>Configuration recording:</strong> AWS Config captures the state of supported resources whenever a change occurs, creating a detailed audit trail.</li>
<li><strong>Resource relationships:</strong> It maps how resources relate to each other — for example, which EC2 instances are associated with a given security group.</li>
<li><strong>Change notifications:</strong> Config can notify administrators via Amazon Simple Notification Service (SNS) when a resource is created, modified, or deleted.</li>
<li><strong>Compliance evaluation:</strong> Config evaluates resources against defined rules on a continuous or periodic basis and reports compliance status.</li>
</ul>



<p class="wp-block-paragraph">In practical terms, AWS Config acts as the monitoring, logging, and reporting backbone for your AWS compliance posture.</p>



<h3 class="wp-block-heading">How AWS Config Rules Work</h3>



<p class="wp-block-paragraph">A <strong>Config rule</strong> defines a desired configuration setting for an AWS resource or for your entire account. AWS Config continuously evaluates each in-scope resource against every applicable rule. If a resource violates a rule — either at the moment of a configuration change or during a periodic evaluation — Config marks that resource as <strong>non-compliant</strong> and triggers an SNS notification to alert the responsible team.</p>



<p class="wp-block-paragraph">Rules can be scoped to a specific resource type (for example, all EC2 instances) or applied account-wide. Evaluation can be triggered by configuration changes, on a defined schedule, or both.</p>



<h2 class="wp-block-heading">AWS Config Managed Rules</h2>



<p class="wp-block-paragraph">AWS provides a library of <strong>managed rules</strong> — predefined compliance checks authored and maintained by AWS. These rules cover common security and operational best practices and can be enabled with minimal configuration. Administrators can also customize the parameters of managed rules to fit organizational requirements, though this is distinct from creating fully custom rules using AWS Lambda.</p>



<p class="wp-block-paragraph">Managed rules are organized across several categories:</p>



<ul class="wp-block-list">
<li><strong>Compute:</strong> EC2 instance types, AMI compliance, EBS encryption</li>
<li><strong>Storage:</strong> S3 bucket public access, versioning, server-side encryption</li>
<li><strong>Security, Identity, and Compliance:</strong> IAM password policies, root account MFA, CloudTrail enablement</li>
<li><strong>Network and Content Delivery:</strong> VPC flow logs, security group rules, unrestricted SSH access</li>
<li><strong>Management and Governance:</strong> Required tags, Config recorder status</li>
</ul>



<p class="wp-block-paragraph">As of the original publication date of this article (September 2019), AWS Config offered more than 100 predefined managed rules. The current number is larger; check the <a href="https://docs.aws.amazon.com/config/latest/developerguide/managed-rules-by-aws-config.html">AWS documentation</a> for the current list.</p>



<h3 class="wp-block-heading">Example: Enforcing EC2 Instance Types</h3>



<p class="wp-block-paragraph">A practical example is the <code>desired-instance-type</code> managed rule. This rule checks whether EC2 instances in scope match a list of permitted instance types. If a developer launches an instance using an instance type not on the approved list — perhaps a large, expensive instance type that violates cost governance — Config marks the instance as non-compliant and sends an alert. The operations or security team can then investigate and take corrective action.</p>



<p class="wp-block-paragraph">Similar rules exist for Amazon RDS, Redshift, S3, and IAM, providing broad coverage out of the box.</p>



<h2 class="wp-block-heading">Getting Started: Enabling AWS Config Managed Rules</h2>



<p class="wp-block-paragraph">Follow these high-level steps to enable managed rules in the AWS Management Console:</p>



<ol class="wp-block-list">
<li><strong>Enable AWS Config</strong> in your account and region via the AWS Management Console, CLI, or CloudFormation. Configure an S3 bucket to receive configuration snapshots and an SNS topic for notifications.</li>
<li><strong>Select a managed rule.</strong> In the Config console, navigate to <em>Rules</em> and choose <em>Add rule</em>. Browse or search the managed rule library to find the rule you want to apply.</li>
<li><strong>Configure the rule scope.</strong> Specify which resource types the rule applies to and set any configurable parameters (for example, the list of permitted instance types for <code>desired-instance-type</code>).</li>
<li><strong>Set the trigger type.</strong> Choose whether the rule evaluates resources on configuration changes, on a periodic schedule, or both.</li>
<li><strong>Review compliance results.</strong> After the initial evaluation runs, the Config console displays each resource&#8217;s compliance status. Non-compliant resources are listed with the specific rule they violated.</li>
<li><strong>Configure remediation (optional).</strong> AWS Config supports automatic remediation actions via AWS Systems Manager Automation documents, allowing you to automatically correct certain violations.</li>
</ol>



<h2 class="wp-block-heading">Beyond Managed Rules: Custom Rules and Automation</h2>



<p class="wp-block-paragraph">Managed rules cover a wide range of common compliance requirements, but every organization has unique policies that no predefined rule can anticipate. AWS Config also supports <strong>custom rules</strong> backed by AWS Lambda functions, giving you full programmatic control over compliance logic. You can also use AWS CloudFormation to deploy Config rules as infrastructure-as-code, ensuring your compliance posture is version-controlled and reproducible across accounts and regions.</p>



<p class="wp-block-paragraph">Integrating AWS Config with AWS Security Hub, AWS CloudTrail, and Amazon EventBridge further strengthens your compliance posture by correlating configuration compliance data with security findings and enabling event-driven remediation workflows.</p>



<h2 class="wp-block-heading">Summary</h2>



<p class="wp-block-paragraph">AWS Config managed rules provide a practical, low-friction entry point into continuous compliance on AWS. By replacing manual audits with automated, rules-based evaluation, teams can maintain a verifiable compliance record at the speed and scale the cloud demands. Start by enabling AWS Config in your account, selecting managed rules relevant to your compliance framework, and reviewing the initial compliance report — then expand coverage with custom rules and automated remediation as your program matures.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/set-up-continuous-compliance-on-aws-with-config-managed-rules/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Use the SonarQube Maven Plugin for Continuous Inspection</title>
		<link>https://www.bestdevops.com/how-to-use-the-sonarqube-maven-plugin-for-continuous-inspection/</link>
					<comments>https://www.bestdevops.com/how-to-use-the-sonarqube-maven-plugin-for-continuous-inspection/#respond</comments>
		
		<dc:creator><![CDATA[anil]]></dc:creator>
		<pubDate>Sat, 25 Aug 2018 05:30:34 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[DevOps Tools]]></category>
		<category><![CDATA[continuous inspection tool]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[SonarQube]]></category>
		<category><![CDATA[SonarQube Maven Plugin]]></category>
		<guid isPermaLink="false">http://www.bestdevops.com/?p=4283</guid>

					<description><![CDATA[Learn how to integrate the SonarQube Maven Plugin into your Java build pipeline, run a code quality analysis, and interpret the results — complete with commands and screenshots.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">This tutorial walks through how to use the SonarQube Maven Plugin to perform continuous code quality inspection on a Maven-based Java project. It builds on the foundational step of having SonarQube installed and running locally. If you have not yet installed SonarQube, complete that setup before proceeding.</p>



<p><em>Original tutorial credit: <a href="https://www.theserverside.com" rel="noopener">TheServerSide.com</a>. Screenshots and example project by Cameron McKenzie.</em></p>



<h2 class="wp-block-heading">Prerequisites</h2>



<ul class="wp-block-list">
  <li>SonarQube server installed and running (default: <code>http://localhost:9000</code>)</li>
  <li>Apache Maven installed and available on your system <code>PATH</code></li>
  <li>A Maven-based Java project with a <code>pom.xml</code> file at its root</li>
  <li>Git installed (if cloning the example project)</li>
</ul>



<h2 class="wp-block-heading">The SonarQube Maven Plugin Command</h2>



<p class="wp-block-paragraph">When you first configure SonarQube, the setup wizard asks which build tool you use — Gradle or Maven. If you select Maven, SonarQube provides a ready-made command for triggering analysis during your build. For a default local SonarQube installation, the invocation command is:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">mvn sonar:sonar -Dsonar.host.url=http:<span class="hljs-comment">//localhost:9000</span></code></span></pre>


<p class="wp-block-paragraph">This command must be entered as a single line with no line breaks. Run it from the root directory of your Maven project — the directory that contains <code>pom.xml</code>.</p>



<h2 class="wp-block-heading">Setting Up a Sample Maven Project</h2>



<p class="wp-block-paragraph">If you do not have an existing Maven project to hand, you can clone the following open-source rock-paper-scissors Java project to follow along with this example:</p>


<pre class="wp-block-code"><span><code class="hljs language-php">git <span class="hljs-keyword">clone</span> https:<span class="hljs-comment">//github.com/cameronmcnz/rock-paper-scissors.git</span>
cd rock-paper-scissors
dir pom.*</code></span></pre>


<p class="wp-block-paragraph">These commands do the following:</p>



<ol class="wp-block-list">
  <li>Clone the remote GitHub repository to your local machine.</li>
  <li>Change the working directory into the project root.</li>
  <li>List files matching <code>pom.*</code> to confirm that a <code>pom.xml</code> file exists.</li>
</ol>



<p class="wp-block-paragraph">The output of the <code>dir pom.*</code> command should show a single <code>pom.xml</code> file — the Maven project descriptor that the SonarQube plugin requires to run.</p>



<h2 class="wp-block-heading">Invoking the SonarQube Maven Plugin</h2>



<p class="wp-block-paragraph">From the project root (where <code>pom.xml</code> resides), run the SonarQube Maven Plugin:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">mvn sonar:sonar -Dsonar.host.url=http:<span class="hljs-comment">//localhost:9000</span></code></span></pre>


<p class="wp-block-paragraph">Maven will resolve the <code>sonar</code> plugin, compile and analyse the source code, and submit the results to your local SonarQube server. The process typically takes a few minutes depending on project size.</p>



<figure class="wp-block-image">
  <img decoding="async" src="https://cdn.ttgtmedia.com/rms/editorial/082318_sonarqube_maven_fig1_mobile.png"
       srcset="https://cdn.ttgtmedia.com/rms/editorial/082318_sonarqube_maven_fig1_mobile.png 960w, https://cdn.ttgtmedia.com/rms/editorial/082318_sonarqube_maven_fig1_desktop.png 1280w"
       alt="SonarQube Maven Plugin build output in a Bash shell" />
  <figcaption>The SonarQube Maven Plugin generating code quality metrics from a shell. Image: TheServerSide.com</figcaption>
</figure>



<p class="wp-block-paragraph">When the scan completes successfully, Maven prints a <strong>BUILD SUCCESS</strong> message. You can then open the SonarQube dashboard in your browser at <code>http://localhost:9000</code> to review the results.</p>



<h2 class="wp-block-heading">Interpreting SonarQube Metrics</h2>



<p class="wp-block-paragraph">After the scan, the SonarQube dashboard displays a quality gate result and a breakdown of issues found. In the rock-paper-scissors example project, SonarQube awarded a passing grade overall, but flagged <strong>14 code smells</strong>.</p>



<figure class="wp-block-image">
  <img decoding="async" src="https://cdn.ttgtmedia.com/rms/editorial/082318_sonarqube_maven_fig2_half_column_mobile.png"
       srcset="https://cdn.ttgtmedia.com/rms/editorial/082318_sonarqube_maven_fig2_half_column_mobile.png 960w, https://cdn.ttgtmedia.com/rms/editorial/082318_sonarqube_maven_fig2_half_column_desktop.png 1280w"
       alt="SonarQube dashboard grading a Maven Java project" />
  <figcaption>SonarQube grades the Maven-based Java project. Image: TheServerSide.com</figcaption>
</figure>



<p class="wp-block-paragraph">Drilling down into the issues view reveals the severity breakdown of those 14 code smells:</p>



<ul class="wp-block-list">
  <li><strong>Blocker:</strong> 0</li>
  <li><strong>Critical:</strong> 3</li>
  <li><strong>Major:</strong> 5</li>
  <li><strong>Minor / Info:</strong> remaining issues</li>
</ul>



<figure class="wp-block-image">
  <img decoding="async" src="https://cdn.ttgtmedia.com/rms/editorial/082318_sonarqube_maven_fig3_half_column_mobile.png"
       srcset="https://cdn.ttgtmedia.com/rms/editorial/082318_sonarqube_maven_fig3_half_column_mobile.png 960w, https://cdn.ttgtmedia.com/rms/editorial/082318_sonarqube_maven_fig3_half_column_desktop.png 1280w"
       alt="SonarQube code smell severity breakdown" />
  <figcaption>Severity breakdown of the code smells identified by the SonarQube Maven Plugin. Image: TheServerSide.com</figcaption>
</figure>



<p class="wp-block-paragraph">SonarQube evaluates code against multiple quality axes — including reliability, security, maintainability, coverage, duplications, and complexity. Each issue is linked to a specific rule so developers can understand what the problem is and how to fix it.</p>



<h2 class="wp-block-heading">Key Takeaways</h2>



<ul class="wp-block-list">
  <li>The SonarQube Maven Plugin requires only a single <code>mvn sonar:sonar</code> command to trigger a full code quality scan.</li>
  <li>The command must be run from the directory containing <code>pom.xml</code>.</li>
  <li>Results are immediately available in the SonarQube web dashboard after a successful build.</li>
  <li>Issue severity levels — Blocker, Critical, Major, Minor, Info — help teams prioritise remediation effort.</li>
  <li>Integrating this command into your CI pipeline (Jenkins, GitLab CI, GitHub Actions, etc.) enables automatic quality checks on every commit or pull request.</li>
</ul>



<h2 class="wp-block-heading">Next Steps</h2>



<p class="wp-block-paragraph">Once you are comfortable running on-demand scans, consider the following improvements:</p>



<ol class="wp-block-list">
  <li><strong>Add authentication:</strong> Secure your SonarQube instance and pass a token using <code>-Dsonar.login=&lt;token&gt;</code>.</li>
  <li><strong>Configure Quality Gates:</strong> Define pass/fail thresholds in the SonarQube UI so that a CI build fails automatically when quality drops below your standards.</li>
  <li><strong>Embed in CI:</strong> Add the <code>mvn sonar:sonar</code> step to your pipeline definition file so every push is analysed without manual intervention.</li>
  <li><strong>Tune rules:</strong> Customise the active Quality Profile in SonarQube to match your team&#8217;s coding standards.</li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/how-to-use-the-sonarqube-maven-plugin-for-continuous-inspection/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
