Commit Graph

86 Commits

Author SHA1 Message Date
kaidaguerre
fa18c8f0e2 Add support for node reuse. Update graph, flow and hierarchy to declare nodes and edges inline, rather than as a list of references. Closes #2871
Only top level resources can have with and param blocks. Closes #2872
Refactor resource and dashboard run hierarchies to use base impl structs. Closes #2873
2022-12-14 17:18:57 +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
Puskar Basu
c732838e1f Add acceptance tests to check behaviour of option blocks in workspaces. Closes #2678 2022-11-09 10:22:36 +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
Puskar Basu
bd6d7b5ecb Fix and re-enable docker tests in release workflow 2022-11-03 10:16:12 +00:00
Puskar Basu
eec7393d3f Add acceptance tests for Workspace Profiles. Closes #2571 2022-10-31 09:25:09 +00:00
Puskar Basu
81a2cf65af Load workspace-profile from config directory. Closes #2595 2022-10-26 14:55:48 +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
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
Puskar Basu
1a9a80f848 Add an acceptance test to verify 'check all' functionality. Closes #2190 2022-06-21 11:17:10 +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
kaidaguerre
b6d84d256a Add support for setting dependent mod variable values using an spvars or by setting and Args property in the mod Require block. Closes #2076. Closes #2077 2022-05-17 14:31:40 +01:00
kaidaguerre
d497d6915e Workspace lock file is not being correctly migrated. Closes #2069 2022-05-16 13:46:40 +01:00
Puskar Basu
095d34c00a Add control severity in the check run CSV output. Closes #1966 2022-05-13 12:37:07 +01:00
Binaek Sarkar
c5ced36a48 Hides the '--schema-comments' flag in the root 'steampipe' command. Closes #2010 2022-05-06 13:41:19 +01:00
kaidaguerre
4f3238c4c2 Add dashboard support for controls and benchmarks. Closes #1760 2022-04-13 12:44:38 +01:00
Puskar Basu
5277da9e51 Add acceptance test for connection name escaping. Closes #1772 2022-04-11 09:23:30 +01:00
Binaek Sarkar
e9cfcd852c Fixes issue where tags are not sorted in output of 'check' command. Closes #1715 2022-03-29 12:57:35 +01:00
Puskar Basu
cb6bb054eb Required Steampipe version in mod.sp is not respected when running query command. Closes #1734. Closes #1718 2022-03-24 11:00:31 +00: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
Puskar Basu
bedafa586a Re-design and update cache acceptance tests. Closes #1570 2022-03-15 10:04:17 +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
Puskar Basu
a7e10e729b Fix acceptance tests. Closes #1568 2022-03-04 13:06:48 +00:00
Puskar Basu
5e4e8fd765 Add JSON template for check export. Closes #1337 2022-01-25 16:55:40 +00:00
Puskar Basu
45d81dd895 Fix asff-json template line spacing and make templates more readable. Closes #1323 2022-01-20 18:27:01 +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
kaidaguerre
33f55e584f Add support for mod management commands. Closes #442. Closes #443 2021-12-21 14:10:00 +00:00
Binaek Sarkar
28d12e70eb Update Postgres driver to github.com/jackc/pgx. Closes #1179 2021-12-09 17:15:59 +00:00
kaidaguerre
1fdfc02c34 Startup optimizations. Closes #1186. Closes #1183. Closes #1182
- Update connection management to use file modified time instead of filehash to detect connection changes
- Avoid retrieving schema from database for check and non-interactive query execution
- When retrieving plugin schema, identify the minimum set of schemas we need to fetch - to allow for multiple connections with the same schema
- Update plugin manager to instantiate plugins in parallel
2021-12-07 15:34:14 +00:00
Binaek Sarkar
b92ff8a074 Enables the tablefunc extension for the steampipe database. Closes #1154 2021-12-07 12:57:19 +00:00
Puskar Basu
7be8229153 Re-enable dynamic schema tests. Closes #1076 2021-11-30 12:31:54 +00:00
kaidaguerre
ad3e6447c0 Add support for connecting to a remote database, andf for connecting to Stweampipe #1175 2021-11-24 16:44:26 +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
Puskar Basu
c30d71cc2c Update acceptance tests to use new functionality_test_mod. Closes #1056 2021-10-28 09:55:12 +01:00
Binaek Sarkar
1b70b628de Updates to html check output format. Closes #1034 2021-10-22 18:19:36 +01:00
kaidaguerre
e15b78308f Update and tidy the help text. Closes #1039 2021-10-22 13:27:37 +01:00
Binaek Sarkar
300102d3fc Update check to add markdown output format. Closes #1011 2021-10-22 11:15:09 +01:00
kaidaguerre
5f978227db Delete accidentally added files 2021-10-21 11:22:36 +01:00
Binaek Sarkar
808052602d Update check command to support markdown output . Closes #1011 2021-10-20 17:05:09 +01:00
Puskar Basu
10667eb6c4 Add acceptance test for testing steampipe check all functionality. Closes #1027 2021-10-20 14:41:45 +01:00
Puskar Basu
b927053d3b Add acceptance tests to check dynamic schema functionality through CSV plugin. Closes #1021 2021-10-20 14:21:06 +01:00
Puskar Basu
ece0381926 Add HTML check formatter. Closes #480 2021-10-20 10:28:08 +01:00
kai
04820139bb fix acceptance tests 2021-10-19 17:36:05 +01:00
kaidaguerre
bd791223e8 Add support for plugins with dynamic schema. Closes #1012 2021-10-18 12:20:13 +01:00
Puskar Basu
a0494168bd Add acceptance test for connection config with options block. Closes #995 2021-10-08 15:18:21 +01:00