Commit Graph

125 Commits

Author SHA1 Message Date
Binaek Sarkar
a01776b78f Migrate from 'cloud.steampipe.io' to 'pipes.turbot.com'. Closes #3724 2023-08-08 12:24:38 +01:00
Puskar Basu
dc90bc0afe Update BuildFullResourceName to validate for non empty arguments. Closes #3601 2023-08-07 13:39:58 +01:00
Binaek Sarkar
8a6bb4f9bf Fixes issue where exporting check all yields a badly formatted filename. Closes #3591 2023-06-20 16:34:34 +01:00
kaidaguerre
40804a3201 Execute RefreshConnections asyncronously and optimise for high connection count. Add connection_state table.
- Execute RefreshConnections asyncronously
- Add connection_state table to indicate the loading state of connections
- Optimise RefreshConnections by cloning connection schemas
- Add locking to ensure only a single instance of RefreshConnections runs
- Start executing queries without waiting for connections to load, add smart error handling to wait for required connection
- Optimise autocomplete for high connection count
- Autocomplete and inspect data available before all conections are refreshed
- Update file watcher to respond to CHMOD, so thaat it pickes up deletion of file contents

 Closes #3394
 Closes #3267
2023-05-10 09:05:08 +01:00
Aaronstotle
17a00353ae Add check to the mod init function so users are aware if it's run in the home directory or if there are a large number of non-mod files in the path. Closes #2562 2023-04-06 09:10:41 +01:00
Binaek Sarkar
17306488fc Fixes issue where fdw was not updated for 'service restart' command. Closes #3172 2023-03-10 12:33:59 +00:00
Puskar Basu
e81b4a6888 Show the exported file location when --progress flag is enabled. Closes #2860 2023-01-27 16:27:39 +00:00
Puskar Basu
34ecf67496 Use consistent and defined exit codes. Closes #2935 2023-01-06 14:14:05 +00:00
kaidaguerre
0a391e9636 Update dashboard states to "initialized", "blocked", "running", "complete", "error", "canceled". Closes #2939 2023-01-04 14:08:56 +00:00
Binaek Sarkar
947162de22 Fixes issue where value from '--separator' was not being used in CSV rendering. Closes #544 2022-11-30 09:50:34 +00:00
Binaek Sarkar
62878d336b Adds a '--max-parallel' flag to 'steampipe dashboard' and set default to 10. Closes #2754 2022-11-25 09:58:28 +00:00
Binaek Sarkar
9697f6c455 Fixes issue where a '--where' or '--tag' flag were not creating the introspection tables. Closes #2760 2022-11-18 11:25:58 +00:00
Binaek Sarkar
b56447cbcc Consolidates setting of CLI flag shorthand. Closes #2403 2022-11-09 10:31:09 +00:00
kai
6f7e48607a Fix config resolution so install-dir and mod-location are correctly resolved when set in workspace profiles/env vars. Closes #2681
Improve resource not found errors
Put install dir back into workspace profiles
Update export arg help
2022-11-07 10:37:34 +00:00
kai
7e4ecf3724 Update argument descriptions for --output --export, --snapshot-location
Remove 'check' from dashboard arg descriptions
Do not show "Output format defaulted to 'none'" message if sharing a snapshot
remove query timeout from database options
Fix snapshot creation crash when required inputs are not provided
2022-11-07 10:37:34 +00:00
Binaek Sarkar
e5a14bce00 Adds 'list' sub command for 'query', 'check' and 'dashboard'. Closes #2653 2022-11-03 15:58:56 +00:00
kaidaguerre
3d084c5bc8 Add snapshot-title arg. Ensure snapshots and exports are named consistently. Closes #2666 2022-11-03 11:09:07 +00:00
kaidaguerre
c42fbdb8d5 Update formatting for login command. Update missing cloud token error. Closes #2654 2022-11-02 14:04:59 +00:00
kaidaguerre
938593ebfc Fix --where and --tags args for steampipe check. Closes #2613 (#2624) 2022-10-28 15:52:45 +01:00
kaidaguerre
0452bb0b81 Validate checkout output and export formats before execution. Closes #2619. Add support for using sps as snapshot output/export format. Closes #2623 2022-10-28 14:57:44 +01:00
kaidaguerre
940bec6b5f Connect to steampipe cloud using the steampipe cloud sdk. Closes #2610 2022-10-27 17:43:44 +01:00
kaidaguerre
7188101a80 Update --snapshot-tag arg to be string array, not string slice (i.e. values will be passed raw, not parsed as a CSV). Closes #2597 2022-10-26 18:00:58 +01:00
Puskar Basu
81a2cf65af Load workspace-profile from config directory. Closes #2595 2022-10-26 14:55:48 +01:00
kaidaguerre
42c2323eb2 Add query_timeout to workspace profile. Closes #2593
Improve timeout error message.
Remove refreshDbClient call after timeout.
Set default check query timeout to 240sec and query to 0 (no timeout)
2022-10-26 14:53:50 +01:00
François de Metz
b3838186e1 Add a configurable query timeout. Closes #666 2022-10-26 10:09:17 +01:00
kaidaguerre
1e3db26e8f Add support for workspace profiles - parse from config and select using --workspace arg. Closes #2510
Add support for implicit workspace. Closes #2514
If snapshot-location is a local file path, copy snapshot instead of uploading. Closes #2550
Do not show snapshot upload status if --progress=false. Closes #2517
Replace --workspace with --snapshot-location. Closes #2512
2022-10-19 13:02:24 +01:00
michizhou
f80f9c1b21 Deprecate workspace-chdir, replace with mod-location. Closes #2511 2022-10-19 11:08:34 +01:00
kai
6315deae3f Update snapshot-tags dashboard and query arg to support comma separated vals. Closes #2544 2022-10-18 13:53:09 +01:00
kaidaguerre
6d47496d99 Ensure check templates BEFORE registering check exporters. Closes #2536 2022-10-17 14:04:46 +01:00
kaidaguerre
947a113eb3 Reduce the max frequency of connection config changed events to every 4 second. Log refreshConnection output. Closes #2535 (#2537) 2022-10-17 13:25:42 +01:00
Puskar Basu
1c2d62ea56 Fix unit test, remove unused import 2022-10-13 12:32:59 +05:30
Puskar Basu
ebe73bb366 Fix issue where controls returned non-zero exit code even after successful runs. Closes #2447 2022-10-12 16:58:27 +01:00
kaidaguerre
397c951fe2 Refactor control export to use ExportManager. Closes #2515 2022-10-12 16:25:31 +01:00
kaidaguerre
1dc28f4681 Add --source-snapshot option to dashboard command. Closes #2503. (#2491) 2022-10-11 23:36:27 +01:00
kaidaguerre
ef845286c1 Add support for sharing snapshots. Add snapshot output and export format for query and check. Add ability to run named dashboards. #2473 2022-10-05 15:30:57 +01:00
kaidaguerre
404dd35e21 Update database code to use pgx interface so we can leverage the connection pool hook functions to pre-warm connections. Closes #2422 (#2438)
* Provide feedback for failed prepared statements
* Move error functions to error_helpers
* Make maintenance client retriable
2022-10-05 12:38:57 +01:00
kaidaguerre
cb42d5d3eb Update CLI to upload snapshots to the cloud using --share and --snapshot options. Update Dashboard command to support passing a dashboard name as an argument. Closes #2365. Closes #2367 2022-09-02 17:05:40 +01:00
cbruno10
3816cf7a8a Minor spacing fix in steampipe check help flags (#2220) 2022-07-06 16:20:11 +01:00
kaidaguerre
5193c70395 Restructure steampipe repo to use pkg folder. Closes #2204 2022-06-27 11:36:03 +01:00
kaidaguerre
dc6b636822 Add support for Open Telemetry. Closes #1193 2022-06-16 15:17:52 +01:00
kaidaguerre
938ad80d37 Update dashboard snapshot format, making control/benchmark output consistent with dashboards. Closes #2154 2022-06-15 16:01:51 +01:00
Puskar Basu
d214812e5f Update json control output template to use Go templating, rather than just serialising the results. Closes #2163 2022-06-10 17:34:47 +01:00
kai
3581d87953 Update command help for --input arg to "Enable interactive prompts". Closes #1920 2022-04-21 17:13:39 +01:00
kaidaguerre
5b05c03ee2 Update 'check' and 'dashboard' command to NOT fail if any connection fails to load. CLoses #1885 2022-04-19 12:11:05 +01:00
kaidaguerre
4f3238c4c2 Add dashboard support for controls and benchmarks. Closes #1760 2022-04-13 12:44:38 +01:00
kaidaguerre
c07fe30294 Add 'input' flag to disable interactive prompting for variables. Closes #1839 2022-04-12 16:08:05 +01:00
Puskar Basu
41cf8926ae Use constants as exit codes in steampipe cli. Closes #1577 2022-04-01 14:06:38 +01:00
kaidaguerre
6699d7de77 Ensure service is shutdown if check/dashboard/query are cancelled during initialisation. Closes #1288 2022-03-17 16:32:24 +00:00
Binaek Sarkar
d16fcf60ad Add support for finding the mod definition by searching up the working directory tree. Closes #1533 2022-03-07 15:52:57 +00:00
kaidaguerre
2c7d9950ed Refactor prepared statement creation code to support all QueryProviders. Closes #1468 2022-02-17 14:41:23 +00:00