inspec / inspec-aws

InSpec AWS Resource Pack https://www.inspec.io/
Other
136 stars 105 forks source link

Edits in backend.rb to include some common error handling #851

Closed jb897 closed 2 years ago

jb897 commented 2 years ago

Description

Initial edits to include some error handling, requires discussion with the SAP MCDevOps team about future development

Issues Resolved

When checking for control exceptions, our team has noticed a high number of controls which are failing due to various errors. The purpose of this PR is to add in error handling for the errors included, namely Aws::Errors::NoSuchEndpointError and Errors::InvalidClientTokenId. Additionally, this PR should be held off on being merged, as discussion is required between the Chef team and the SAP MCDevSecOps team as to how best proceed with the handling of errors.

Check List

Please fill box or appropriate ([x]) or mark N/A.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication