Commit Graph

101 Commits

Author SHA1 Message Date
Binaek Sarkar
08b447a261 Differentiate between user and system queries using application name. Closes #3600 2023-08-25 16:50:27 +01:00
Binaek Sarkar
3b2cdd1e68 Upgrades go version to 1.21. Closes #3763 2023-08-25 13:54:28 +01:00
Puskar Basu
9e863596ff Fix indentation in sample config files(default.spc.sample and workspaces.spc.sample). Closes #3580 2023-08-24 12:02:38 +01:00
Binaek Sarkar
a3e624869e Make dashboard start timeout configurable. Closes #3369 2023-08-12 17:42:54 +01:00
kaidaguerre
202cb68692 Add HCL support for defining rate limiters, with filewatching as per connection config. Closes #3746 2023-08-11 14:24:44 +01:00
Binaek Sarkar
a01776b78f Migrate from 'cloud.steampipe.io' to 'pipes.turbot.com'. Closes #3724 2023-08-08 12:24:38 +01:00
Meet Rajesh Gor
ce2bc0cb5b Add flag for disabling writing of default plugin config during plugin installation. Closes #3531. Closes #2206 2023-07-28 10:15:37 +01:00
Binaek Sarkar
74f2f6ae24 Removes deprecated 'workspace-chdir' flag. Closes #3658 2023-07-26 11:39:56 +01:00
Patrick Decat
3c5e98d13b feat: upgrade to oras-go v2 and support OCI registries requiring authentication. Closes #2819 2023-07-14 10:20:31 +01:00
kaidaguerre
43dd6c7a61 Refactor Plugin manager:remove support for plugins which do not support multiple connections, simplify startup.
If plugin process crashes, benchmark or dashboard runs can leave running plugin processes after shutdown. Fixes #3598
2023-06-21 16:18:49 +01:00
Binaek Sarkar
a1caf53eeb Adds 'steampipe_server_settings' table populated with server settings data during service startup. Closes #3462 2023-06-21 13:23:14 +01:00
Matt Black
f3ae856854 Minor docs fix in postgres config override (#3553) 2023-06-12 16:08:46 +01:00
Puskar Basu
ce1792ff1c Updated sample config file behaviour as per the proposed changes. Closes #3431 2023-06-09 10:26:24 +01:00
Puskar Basu
e6ed76ca47 Add plugin list acceptance tests. Closes #3519 2023-06-05 15:17:26 +01:00
Patrick Decat
51f43f108b Allow selection of hosts for steampipe service. Closes #3505 2023-06-01 17:14:56 +01:00
kaidaguerre
dd1c36b514 Re-add support for legacy command schema. Closes #3457 2023-05-19 15:45:38 +01:00
kai
25429fcb77 v0.20.1. Update FDW version to v1.7.1 to work around bad Linux Arm build of FDW v1.70. Closes #3455 2023-05-19 12:18:58 +01:00
Puskar Basu
60c9cfb7cc v0.20.1-alpha.0 2023-05-19 14:41:54 +05:30
kai
e117adfc0e update FDW to v1.7.0 2023-05-18 15:40:35 +01:00
Binaek Sarkar
0fa28fcaf3 Introduces SQL functions to easily manipulate caching functionality. Closes #3442 2023-05-18 14:59:44 +01:00
kai
3a05c039ba Update FDW to v1.7.0-rc.7 2023-05-18 10:36:05 +01:00
kai
3d1423b235 Fix typo in constants.ForeighTableSettings. Update updateScanMetadataMaxId to use new table name. #3416 2023-05-18 08:57:31 +01:00
kaidaguerre
7703975883 Refactor/fix connection and plugin validation during refreshConnections - ensure failed connections are set to 'error' in connection state. Closes #3432 2023-05-17 14:43:27 +01:00
Binaek Sarkar
9653db55da Drops legacy 'internal' and 'steampipe_command' schema. Closes #3403 2023-05-17 13:31:37 +01:00
kaidaguerre
f4b5d64d71 Fix interactive timing output not including scan metadata (hydrate calls/ rows). Closes #3420 2023-05-17 11:29:04 +01:00
kaidaguerre
4635640f4e Remove 'steampipe_command' schema and move settings and scan_metadata foreign tables to 'steampipe_internal' schema. Closes #3416 2023-05-16 17:12:44 +01:00
kaidaguerre
b0b2c62338 Add support for 'import_schema' property in connection config, controlling whether to create a postgres schema for a steampipe connection. Closes #3407
Rename 'connection_state' table to 'steampipe_connection_state'. #3403
Rename 'internal' table to 'steampipe_internal
Remove 'Connection' property from ConnectionState
2023-05-15 13:07:36 +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
Binaek Sarkar
e1cbdf9c6b Updates the default content written to 'default.spc' and remove deprecated blocks. Closes #3391 2023-05-09 13:39:56 +01:00
Puskar Basu
414664080c Fixes issue where network failures during plugin install was returning 0 exit code. Closes #3367 2023-05-05 11:02:41 +01:00
kai
176c58676c Merge branch 'v0.19.x'
# Conflicts:
#	pkg/constants/db.go
2023-04-27 15:30:06 +01:00
kai
d095e2479c Update FDW to v1.6.3: Fix array bounds error when querying with an aggregator with no children. Show useful error instead. 2023-04-27 15:26:17 +01:00
Puskar Basu
3bdd2eedde Improve error message when running steampipe check/dashboard outside a mod and refactor default mod creation. Closes #3215
Rationalise default mod creation 
Fix nil ref exception for mod commands when using legacy `requires` block

---------

Co-authored-by: kai <kai@turbot.com>
2023-04-20 12:02:50 +01:00
kaidaguerre
f47985f88f Update mod require, deprecate steampipe property and add steampipe block. Deprecate plugin version property and add min_version`. Closes #3347. Fix args passed to dependency mods failing to resolve if they reference variables. Closes #3348 2023-04-19 12:28:53 +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
299697ae2f Updates in cache configuration to allow disabling of all caching on server. Closes #3258
STEAMPIPE_CACHE environment variable resolves to service cache enabled as well as client cache enabled

service cache enabled is used by the plugin manager to enable/disable caching on the plugins during startup (runtime toggle is not allowed) - with a max_ttl

client cache enabled is used to enable/disable the cache on the database connection (fdw)
A TTL can also be set on the client side capped to max_ttl on the server
2023-03-31 15:12:25 +01:00
Binaek Sarkar
be36276fd8 Add deprecation warnings for connection.options "connection" and global terminal options. CLoses #3246 2023-03-23 14:43:06 +00:00
Binaek Sarkar
e4dbced826 Updates to workspace profile - add additional properties and command specific options blocks. Closes #3223 2023-03-21 12:00:47 +00:00
Binaek Sarkar
ee8b6647c4 Rationalising 'status hooks'. Do not show spinner when setting status, instead require an explicit Show. #2432 2023-03-14 11:48:14 +00:00
kaidaguerre
92396d77c0 Remove connection pool min size. Remove need to create empty mod introspection tables if introspection is not enabled. Remove connection pool min size. Closes #3207
* Remove all references to prepared statements
* remove sessionInitWaitGroup
2023-03-09 16:55:08 +00:00
kai
9358051bed Fix Service Stop failing if invoked directly after a schema change notification. Closes #3206 2023-03-09 15:55:43 +00:00
kai
e065a916d5 Update FDW to 1.6.2: Fix nil reference panic when a scan fails to start - do not add an iterator to Hub.runningIterators until scan is started successfully. 2023-03-08 12:29:32 +00:00
kai
948d70388f Update executeSqlInTransaction to rollback transaction in case of error
Do not create a new client in pluginManager.OnConnectionsChanged, instead pass a client in.
Do not pass appname to plugin manager command - instead plugin manager adds prefix the pg app name. #3184. #3185
2023-03-08 10:56:29 +00:00
kaidaguerre
075fafec09 Use single Steampipe Postgres notification channel (#3191) 2023-03-07 17:34:41 +00:00
kaidaguerre
2171ce66ba Fix Postgres error "cached plan must not change result type" when dynamic plugin schema changes. Update interactive .inspect and autocomplete based on changes to connection config or dynamic schema updates. Closes #3184. Closes #3185 2023-03-03 18:45:40 +00:00
Puskar Basu
b0a0c8b0fc Update FDW to v1.6.1 2023-03-02 16:59:21 +05:30
kai
3c11018ad9 Update FDW to v1.6.0: Limit should not be pushed down if there are unconverted restrictions. 2023-03-01 14:58:58 +00:00
kai
95b6c34372 Update FDW to 1.6.0-rc.6 2023-02-28 15:22:31 +00:00
Binaek Sarkar
8dd9d1fb3f Fixes 'default.spc' created during installation 2023-02-27 16:38:41 +00:00
Puskar Basu
016d373843 Add exit codes for errors when steampipe is running as root or in WSL1. Closes #3130 2023-02-21 15:26:05 +00:00