prowler icon indicating copy to clipboard operation
prowler copied to clipboard

feat(apigateway): add new check `apigateway_restapi_tracing_enabled`

Open danibarranqueroo opened this issue 1 year ago • 1 comments

Context

This control ensures that AWS X-Ray tracing is enabled for Amazon API Gateway REST API stages. Enabling X-Ray helps you analyze and debug your API by providing insights into the requests that pass through your API Gateway, including performance bottlenecks and errors.

Description

Added new check apigateway_restapi_tracing_enabled with its unit tests.

Checklist

  • Are there new checks included in this PR? Yes / No
    • If so, do we need to update permissions for the provider? Please review this carefully.
  • [ ] Review if the code is being covered by tests.
  • [ ] Review if code is being documented following this specification https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings
  • [ ] Review if backport is needed.

License

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

danibarranqueroo avatar Oct 18 '24 14:10 danibarranqueroo

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.60%. Comparing base (415c319) to head (ea26982). Report is 1155 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5470      +/-   ##
==========================================
+ Coverage   89.57%   89.60%   +0.02%     
==========================================
  Files        1068     1069       +1     
  Lines       33109    33133      +24     
==========================================
+ Hits        29658    29688      +30     
+ Misses       3451     3445       -6     
Components Coverage Δ
prowler 89.60% <100.00%> (+0.02%) :arrow_up:
api ∅ <ø> (∅)

codecov[bot] avatar Oct 18 '24 15:10 codecov[bot]