Commit Graph

129 Commits

Author SHA1 Message Date
kai
b82407a121 Fix freeze in interactive mode 2021-09-02 21:34:48 +01:00
kai
c3b1087e6e Support controls with inline SQL 2021-09-02 21:34:48 +01:00
kai
8f3a24f87e handle query and SQL for control 2021-09-02 21:34:43 +01:00
kai
fcba5bc6aa sanitise sql before creating prepared statement 2021-09-02 21:34:43 +01:00
kai
6f605ffccd refactor parsing 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
Binaek Sarkar
783050b3e6 Add completion command providing completion support for bash, zshell and fish. Closes #481 2021-09-02 17:11:53 +01:00
Binaek Sarkar
85a626453b Remove --watch flag from check. Closes #838 2021-09-02 11:18:08 +01:00
kaidaguerre
c166b5d749 Fix '--var' arg to accept complex type values. Closes #776 2021-08-18 16:18:49 +01:00
Binaek Sarkar
04781f7c88 Fix for 0 exit code even if service start fails. Closes #762 2021-08-17 20:17:56 +01:00
kaidaguerre
9b941ecdcf Add support for variables. Closes #754 2021-08-06 11:10:53 +01:00
kai
56ebe7f851 test 2021-08-05 15:54:47 +01:00
kaidaguerre
f9e5a8d10c Fix errors during async interactive startup leaving the prompt in a bad state. Refactor the ResultsStreamer to avoid needing to call Done() before restarting the prompt. Closes #716. Closes #728 2021-08-02 17:05:43 +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
Binaek Sarkar
a73ffee3f9 Fixes nil pointer exception in steampipe plugin. Closes #678 2021-07-23 12:06:24 +01:00
kaidaguerre
412eebb8bc Cancellation improvements. #652 2021-07-21 16:31:29 +01:00
kaidaguerre
36ec6a428d Remove duplicate call to RefreshConnections from check command. Closes #641 2021-07-16 17:54:05 +01:00
kaidaguerre
465e767886 During control run, multiple ctrl c presses causes send on closed channel error. Closes #630 2021-07-16 17:13:45 +01:00
kai
0968672e3c Update FDW to 0.1.0-rc.2 - add panic recovery in goroutine reading GRPC stream. 2021-07-15 17:13:03 +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
83f7f8f06f Fixes issue where STEAMPIPE_INSTALL_DIR is not being used. Closes #613 2021-07-14 13:51:59 +01:00
Binaek Sarkar
919b779b9b Run initdb if database is installed but data directory is empty. Closes #575 2021-07-14 12:23:15 +01:00
Abhinash Khuntia
e7f781c176 Update steampipe service to support SSL. Closes #602 2021-07-14 10:21:05 +01:00
kaidaguerre
c98a0f4adc Add support for aggregate connections. Closes #610 (#611) 2021-07-13 18:08:30 +01:00
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