Commit Graph

73 Commits

Author SHA1 Message Date
Binaek Sarkar
dad700b26c Add context awareness in services and commands. Closes #1206. Closes #1214. Closes #1215 2021-12-09 14:02:19 +00:00
Binaek Sarkar
f2580be172 Fixes issue where a check cancel was not waiting for query cancellation to finish, resulting in the service not stopping. Closes #1171 2021-11-24 16:21:10 +00:00
kaidaguerre
3bb4bf97d3 Create prepared statements one by one to allow accurate error reporting and reduce memory burden. Fix workspace file watching. Fix async error display. Close ##1148. Close #1152. Close #1085 2021-11-21 10:53:33 +00:00
Binaek Sarkar
55bad37d65 Fix issue where check progress reports negative values when errors occur. Closes #1131 2021-11-19 15:58:55 +00:00
Binaek Sarkar
a09ed88304 Optimize parallel control execution. Provider more responsive feedback for control runs. Update postgres log config to optimise performance. Closes #1101 2021-11-16 21:57:38 +00:00
kaidaguerre
aa6137e189 When cli displays error messages from plugins, they should be prefixed with plugin name. Do not show plugin error messages in JSON/CSV output. Closes #1110. Closes #1071 2021-11-16 10:30:43 +00:00
kaidaguerre
501042c763 Re-add control execution retry in case of plugin crash. Close #1088 2021-11-08 16:52:19 +00:00
Binaek Sarkar
9dda6d6f47 Fixes issue where the steampipe service is not shutdown when a check is cancelled. Closes #1081 2021-11-08 16:13:51 +00:00
kaidaguerre
6bcccf306d session should always be closed by the caller instead of in dbClient.ExecuteInSession. Closes #1068
- Return actual error when WaitForConnection fails during client creation
- Do not register a parallel execution in progress display until the session has been acquired
2021-11-05 13:40:29 +00:00
kaidaguerre
7e7e0dd130 Add support for parallel control execution. Only spawn a single plugin per steampipe connection - defer plugin spawning to a PluginManager service. CLoses#1073, Closes #1001 2021-11-04 11:29:28 +00:00
Puskar Basu
fd082f6cad Update acceptance tests - add generic queries and controls to test control rendering. Closes #1059 2021-11-02 14:56:52 +00:00
Binaek Sarkar
024f2423f0 Constrain check table-output rendering to a minimum width. Closes #1062 2021-11-01 17:00:30 +00:00
Puskar Basu
9622e13ba9 steampipe check --dry-run should not display control summary. Closes #1053 2021-10-28 09:53:48 +01:00
Mike Burgess
2e8e2f1896 Control state icons should be center-aligned in HTML export #1034. 2021-10-22 20:02:37 +01:00
Binaek Sarkar
1b70b628de Updates to html check output format. Closes #1034 2021-10-22 18:19:36 +01:00
kaidaguerre
e073054248 Control results should be ordered by status. Closes #465 2021-10-22 16:56:44 +01:00
kaidaguerre
8551ec9868 Rename 'markdown' format to 'md'. #1011 2021-10-22 12:28:39 +01:00
Binaek Sarkar
300102d3fc Update check to add markdown output format. Closes #1011 2021-10-22 11:15:09 +01:00
kaidaguerre
a3ad46e83c Update control summary - only show severity block if there are high/critical items. #710 2021-10-21 15:03:57 +01:00
Binaek Sarkar
808052602d Update check command to support markdown output . Closes #1011 2021-10-20 17:05:09 +01:00
Puskar Basu
ece0381926 Add HTML check formatter. Closes #480 2021-10-20 10:28:08 +01:00
Binaek Sarkar
48c1041c9c Add check summary in table output. Closes #710. 2021-10-04 16:43:16 +01:00
kaidaguerre
ab52e7efaa Add steampipe_variable reflection table. Closes #859 2021-09-15 13:55:04 +01:00
kaidaguerre
596768718f Rename reflectionTables to IntrospectionTables. Closes #895 2021-09-13 12:07:54 +01:00
kaidaguerre
c25a9b76a1 Add connection config file watching for service in foreground mode. Closes #815 2021-09-10 17:52:30 +01:00
kaidaguerre
93e714124e In batch query mode, only create prepared statements which are required. Closes #866 2021-09-08 12:41:28 +01:00
kai
c3b1087e6e Support controls with inline SQL 2021-09-02 21:34:48 +01:00
kai
3cc5222fb8 improve error reporting for failure to parse params 2021-09-02 21:34:48 +01:00
kai
5166f6cd05 rename control.params as control.args 2021-09-02 21:34:48 +01:00
kai
cbffa40642 ignore error parsing a prepared statement - just treat query as raw sql 2021-09-02 21:34:48 +01:00
kai
95ad504cd7 fix interactive param parsing 2021-09-02 21:34:43 +01:00
kai
def33c354b convert all non-primitive params to JSON 2021-09-02 21:34:43 +01:00
kai
8f3a24f87e handle query and SQL for control 2021-09-02 21:34:43 +01:00
kai
6f605ffccd refactor parsing 2021-09-02 21:34:43 +01:00
kai
c43109813b initial named param support 2021-09-02 21:34:43 +01:00
kai
1fe09ccf07 InitiaL implementation - no named params or defaults 2021-09-02 21:34:43 +01:00
Puskar Basu
93db0dd23a Retry control run if the plugin crashes. Closes #757 2021-08-18 16:53:18 +01:00
Binaek Sarkar
122197d2c2 Fix for missing control_description, control_title in csv output of check command. Closes #739 2021-08-18 11:05:38 +01:00
Puskar Basu
987a947cb6 Revert changes made for multiline control errors, as these are not incorporated in go-kit. Closes #706 2021-07-30 13:37:52 +01:00
kaidaguerre
b7aa42ceb3 Refactor service code to make it simpler to support external database connections. Closes #696 2021-07-26 17:07:28 +01:00
kaidaguerre
66cb4b0263 Refactoring and updates to allow future support for reports. #683 2021-07-23 12:15:09 +01:00
kaidaguerre
f9673d5713 Ensure multiline control errors are rendered in full #672 2021-07-22 13:56:58 +01:00
kaidaguerre
5c4f6e792c Validate benchmarks do not have duplicate children. Closes #667. Closes #668 2021-07-22 13:00:17 +01:00
kaidaguerre
412eebb8bc Cancellation improvements. #652 2021-07-21 16:31:29 +01:00
kaidaguerre
f5796f0db3 In interactive mode, perform connection refresh and workflow loading asynchronously. Closes #627 2021-07-15 16:36:37 +01:00
Binaek Sarkar
a88c2ad83d Fix issue where dimension values were not rendered in generated CSV for check. Closes #587 2021-07-05 12:57:53 +01:00
Binaek Sarkar
3a0db749cc Fix issue where using --timing with check was not showing duration. Fixes #571 2021-07-05 12:21:43 +01:00
kaidaguerre
49fd91ea68 Do not show spinner when updating metadata tables after a file watcher event. Closes #563 2021-06-17 16:39:39 +01:00
Binaek Sarkar
174e2d95b5 Support for --header flag in check. Closes #550 (#555) 2021-06-17 12:22:54 +01:00
Binaek Sarkar
0dad39053d Add support to check command filter controls with --tag and --where argument. Closes #539 2021-06-16 18:00:54 +01:00