Skip to content

Conversation

@kendall-choy-lw
Copy link
Contributor

@kendall-choy-lw kendall-choy-lw commented Dec 12, 2023

Summary

The lacework vulnerability host list-cves command is timing out for some customers with a large amount of data. The command defaults to a 24 hour window. We can replicate this by calling the API with the same 24h window and it times out. Enable the start time, end time, and range flags to enable querying smaller amounts of data.

How did you test this change?

Passed unit tests
Passed integration tests
Build CLI locally and manually tested the flags

Issue

https://lacework.atlassian.net/browse/LINK-2415
https://lacework.atlassian.net/browse/RAIN-91480

@kendall-choy-lw kendall-choy-lw marked this pull request as ready for review December 13, 2023 18:29
@kendall-choy-lw kendall-choy-lw requested a review from a team as a code owner December 13, 2023 18:29
@afiune afiune changed the title feat(RAIN-91480): Add time filter to CLI lacework vulnerability host list-cve feat(cli): Add time filter to vulnerability host list-cve command Dec 13, 2023
Copy link
Contributor

@afiune afiune left a comment

Choose a reason for hiding this comment

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

Could we please add a test like this one https://github.com/lacework/go-sdk/blob/main/integration/host_vulnerability_test.go#L57 with the new flags and a short time range? 2 hours or so

Copy link
Contributor

@afiune afiune left a comment

Choose a reason for hiding this comment

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

@kendall-choy-lw kendall-choy-lw merged commit 19a61c8 into main Dec 13, 2023
@kendall-choy-lw kendall-choy-lw deleted the RAIN-91480 branch December 13, 2023 22:29
@lacework-releng lacework-releng mentioned this pull request Dec 13, 2023
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