Commit Graph

104 Commits

Author SHA1 Message Date
tyagiparth
3fbf2b542e Split versions.json into 2 files, one in the plugins dir, one in the database dir. Closes #576 2021-07-13 13:08:16 +01:00
Binaek Sarkar
7830670368 Fix for issue where query freezes if there's no data on stdin. Closes #570 2021-07-12 08:52:04 +01:00
kaidaguerre
a0279fc676 Merge pull request #568 from turbot/issue-523
Updates to steampipe service. Closes #523.
2021-07-08 15:28:30 +01:00
Binaek Sarkar
f4c6d479ba Update service start code to remove need to spawn a separate process when starting for 'check'/'query`. Closes #581 2021-07-08 15:26:45 +01:00
Binaek Sarkar
c0b5d28d9f Fixes description of --tag flag in check cmd. Closes #589 2021-07-08 14:43:50 +05:30
Binaek Sarkar
3a0db749cc Fix issue where using --timing with check was not showing duration. Fixes #571 2021-07-05 12:21:43 +01:00
Binaek Sarkar
7c85c5c2db Update service start to add --foreground flag. Closes #535 2021-07-01 09:34:04 +01:00
Binaek Sarkar
e1031902ee Update service start to 'claim' a service started by query or check session, instead of failing. Closes #580 2021-07-01 09:32:12 +01:00
Binaek Sarkar
3098b95e53 Add --all flag to service status to list status for all running services. Closes #532 2021-07-01 09:24:48 +01:00
Binaek Sarkar
115c8e5feb Remove locking from service code to allow multiple 'query' and 'check' sessions in parallel without requiring a service start. Closes #579 2021-07-01 09:24:48 +01:00
Binaek Sarkar
abd5f5ec7c Update plugin cmds to start the service in PreRun and stop service in PostRun. Close #578 2021-07-01 09:21:45 +01:00
Binaek Sarkar
dac31223d3 Fixing issue with multiple bad --export flags. Closes #558 (#559) 2021-06-17 13:23:09 +01:00
kai
1f8abc239a Update check export error messsage formatting. 2021-06-17 12:54:54 +01:00
tyagiparth
418a34c6cb Validate that plugin versions required by mod are installed. Closes #557 2021-06-17 12:42:41 +01:00
kaidaguerre
8560428e77 Revert bash autocompletion. #481 2021-06-17 10:40:55 +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
Binaek Sarkar
89fe95a507 Fix: generated file names in check exports should not have colons. Closes #542 2021-06-16 17:41:29 +01:00
Binaek Sarkar
92c656334c Support for inferring export format when only the target file is given. Closes #543 2021-06-16 17:41:05 +01:00
kaidaguerre
e5b99605cf Add --dry-run flag to check command to show which controls would be run. Closes #468 2021-06-15 18:14:42 +01:00
Binaek Sarkar
8db836bdb6 Add support for reading from STDIN for query. Closes #499 2021-06-15 17:18:40 +01:00
Binaek Sarkar
645ed5ff25 Change message in service status when service is running from a query/check session. Closes #531 2021-06-15 17:18:03 +01:00
Binaek Sarkar
a9496979ef Add support for export flag to check command. Closes #511 2021-06-15 17:04:59 +01:00
tyagiparth
e2e7322519 steampipe check exit code should be the number of alerts. Closes #498 2021-06-15 12:55:47 +01:00
Binaek Sarkar
2cf7e40497 Add support for CSV output of check command. Closes #479 2021-06-15 11:14:15 +01:00
Binaek Sarkar
93f7d8192c Fix to display timing profile data when appropriate env var is set. Closes #513 2021-06-11 16:18:52 +01:00
Binaek Sarkar
0f4c510b16 Add support for autocomplete in bash. Closes #481 2021-06-11 16:17:50 +01:00
Binaek Sarkar
7356c2fd9f Fixes issue where interactive prompt hangs on cancellation. Closes #507 2021-05-25 20:01:07 +01:00
kai
74a74cd369 Fix error message which is displayed when no controls are found in workspace. 2021-05-20 16:45:32 +01:00
kai
7d761550f9 Add 'image' property to opengraph. Update message for multiple invocations of check cmd. Update check command long description. 2021-05-20 16:14:02 +01:00
kai
bd65bc5b75 Support controls with multiple parents. Add support for 'json' output format 2021-05-20 16:14:02 +01:00
kai
3546cee500 Add SearchPath and SearchPathPrefix properties to control. Fix max cols @ 200 2021-05-20 16:14:02 +01:00
kai
a5616511ee Applying permissions for temp table management on existing database installations. Closes #422
Implement 'output' arg, supporting modes text, brief, none. Add 'plain' theme.
2021-05-20 16:13:10 +01:00
kai
897700d301 Add support for light and dark color scheme, and new 'theme' arg
Increase max display width to 200
2021-05-20 16:12:20 +01:00
kai
1fd1cfb4f2 Add support for cancellation of control run. Closes #475 2021-05-20 16:12:20 +01:00
kai
4dbc6bad6b Initial iteration of control result display code 2021-05-20 16:11:50 +01:00
kai
7e3ae0a386 Add parsing support for variable references, functions and locals. Closes #405
Update check to te-add implicit conversion of named query name to named query, so setting the SQL field to a query name would work.

Update reflection tables to fix JSONB arrays

Workspace loads and watches files recursively if a mod.sp file exists in the workspace folder

Update reflection tables - 'labels' and 'links' are now JSONB columns

rename control property Query to SQL and do NOT try to resolve this as a named query

Add documentation property to control_group
2021-05-20 16:11:13 +01:00
kai
e35e667efe Rename reflection tables to singular. Add reflection tables to autocomplete. Closes #421. Closes #433
Add missing properties to control, query, mod and controlGroup. Update mod parsing. Update reflection data types to remove length limitations. Remove mod_depends and plugin_depends parsing
2021-05-20 16:11:13 +01:00
kai
fcb6cbc96b Add support for control execution scopes and --where argument. Closes #408 2021-05-20 16:11:13 +01:00
kai
b02f9644cb control query should support named queries. Closes #420
Fix query resource name in metadata

update metadata tables from file watch events

remove db reference to workspace.
store named query in history untouched

rename ReflectionData to metadata. Handle arrays.

Reflection data working apart from pointers to arrays

For query command, pull client to higher level to allow creation ot reflection temp tables
Add executeSqlAsRoot
StartDb stops service if there is an error
Add temp table creation for reflection tables

remove invalid listen address

remove invalid listen address
2021-05-20 16:11:13 +01:00
kai
77eff21c23 Add check command. Add support for control groups. Closes #413 2021-05-20 16:11:13 +01:00
Binaek Sarkar
468244aa40 Fix spinner displaying multiple newlines if spinner text is wider than the terminal. Closes #450 2021-05-12 13:47:27 +01:00
Binaek Sarkar
3aaae8ac2c Ensure scheduled tasks are not executed in query batch mode. Closes #301 (#415) 2021-04-22 12:55:37 +01:00
kai
e4be1e428a Update error reporting when passing multiple queries/filepaths on command line - do not print out the query SQL for failed queries. #388 2021-04-15 17:08:17 +01:00
kaidaguerre
9195461270 Do not print blank line between multiple query results for CSV mode with no header. Close #395 2021-04-15 16:37:27 +01:00
kaidaguerre
97de889217 steampipe query should only use paging in interactive mode. File watching should default to true. Closes #390. Closes #394 (#396) 2021-04-15 16:36:50 +01:00
kaidaguerre
75104c6125 Update default options. And Command arg descriptions. Remove error for empty query file, and just log instead. Close #382 2021-04-15 14:40:58 +01:00
kaidaguerre
a333173ac0 When long queries are passed on command line, handle invalid filename error when steampipe determines whether each arg is a filepath . #388 2021-04-15 12:54:06 +01:00
kai
79b8e4be5e Update error reporting when passing multiple queries/filepaths on command line - report file errors/empty files as warning. #388 2021-04-15 12:19:49 +01:00
Binaek Sarkar
a25b1806dd Save namedQuery name in history, instead of the SQL. Move watch argument to query command. Closes #383 2021-04-15 10:34:04 +01:00
kaidaguerre
c98a500188 Update query command to accept multiple unnamed args, each of which may be a filepath, query SQL or a named query. Closes #388 2021-04-14 22:00:00 +01:00