Puskar Basu
45d81dd895
Fix asff-json template line spacing and make templates more readable. Closes #1323
2022-01-20 18:27:01 +00:00
Gábor Lipták
31ff1f037e
Cleanup deadcode ( #1299 )
...
Signed-off-by: Gábor Lipták <gliptak@gmail.com >
2022-01-20 14:28:05 +00:00
Puskar Basu
be67b786f4
Update check templates to remove functions. Closes #1320
2022-01-19 16:36:11 +00:00
Binaek Sarkar
60920fce3e
Add support for a generic template formatter for check output. Closes #1289
2022-01-17 13:24:01 +00:00
Binaek Sarkar
8dcc171ec6
Fixe issue where check table output is not getting displayed at all. Closes #1300
2022-01-10 15:27:23 +00:00
kaidaguerre
efbebd99ee
Decouple spinner display code from database and execution layer. Closes #1290
2022-01-06 11:54:18 +00:00
kaidaguerre
e0ff19a280
Update package naming to be consistent and follow Go standards. Closes #1282
...
General code spring cleaning:
* move file paths from `consts` package to `filepaths`
* move InitData and ExportData to query and control packages
2022-01-04 12:28:36 +00:00
Binaek Sarkar
d46e7d02fc
Fix issue where benchmark execution duration is incorrect in check. Closes #1249
2022-01-03 13:02:14 +00:00
kaidaguerre
33f55e584f
Add support for mod management commands. Closes #442 . Closes #443
2021-12-21 14:10:00 +00:00
Binaek Sarkar
0732f8ee4f
Fix issue where service is not shutdown when check is cancelled. Closes #1250
2021-12-21 12:50:20 +00:00
kaidaguerre
9882563547
Only create prepared statements if the query has parameters. Closes #1231
2021-12-14 12:34:29 +00:00
Binaek Sarkar
39d6ae986c
Fix issue where 'check' was not prematurely cancelling database connections when using a remote connection. Closes #1227
2021-12-14 10:02:38 +00:00
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