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

Support the Automate /compliance/profiles/metasearch endpoint to send reduced reports #418

Merged
merged 2 commits into from
Apr 20, 2020

Conversation

alexpop
Copy link
Contributor

@alexpop alexpop commented Apr 16, 2020

Description

Automate has recently introduced a new API to check which profiles ids are missing in the database. This API enables the audit cookbook to avoid sending to Automate full reports that can contain up to 90% profile meta information that Automate already has.

Issues Resolved

The Automate(grpc) report limit of 4MB will be harder to reach with this change.

@alexpop alexpop requested a review from a team April 16, 2020 15:42
@alexpop alexpop force-pushed the ap/support-metasearch branch from 660f48f to 21ecf5f Compare April 16, 2020 18:32
@@ -88,3 +88,7 @@
# <chef_cache_path>/cookbooks/audit/inspec-<YYYYMMDDHHMMSS>.json
default['audit']['json_file']['location'] =
File.expand_path(Time.now.utc.strftime('../../inspec-%Y%m%d%H%M%S.json'), __FILE__)

# Controls that have a run_time below this limit will be stripped of the `start_time` and
# `start_time` fields to reduce the size of the reports being sent to Automate

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: did you mean start time and end time?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean the report wouldnt have an end time? is that ok with automate ingestion?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are for the control results. Let me rephrase the comment to be more clear about this:

# Control results that have a `run_time` below this limit will be stripped of the 
# `start_time` and `run_time` fields to reduce the size of the reports being sent to Automate

Signed-off-by: Alex Pop <apop@chef.io>
@alexpop alexpop force-pushed the ap/support-metasearch branch from b4f4802 to 591f924 Compare April 20, 2020 19:47
Signed-off-by: Alex Pop <apop@chef.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants