Puskar Basu
0d2bcf3b81
Move db location funcs into filepaths package. Closes #2122
2023-09-13 12:58:25 +01:00
Binaek Sarkar
862fcf1b71
Fix stall in plugin manager shutdown. Closes #3817
2023-09-08 17:48:20 +01:00
Puskar Basu
df6b8ae874
Re-design plugin tests ( #3809 )
2023-09-07 17:44:10 +01:00
Binaek Sarkar
a3a714d6cd
Fixes issue where temporary tables are dropped in interactive prompt when pool connections are recycled. Closes #3359 . Closes #3781
2023-09-06 16:46:40 +01:00
kaidaguerre
f041597497
Add support for plugin connection config and options blocks. Add options and env var configuration of max memory. Closes #3807
2023-09-06 15:59:13 +01:00
kaidaguerre
2a86d08445
Add support to retrieve plugin rate limiter definitions and use to populate steampipe_rate_limiter table. Closes #3805 ( #3803 )
2023-09-06 13:28:22 +01:00
Binaek Sarkar
2f889e462e
Merge branch 'v0.20.x'
2023-09-01 23:05:16 +05:30
Binaek Sarkar
b0fa6b6cbf
Rotate SSL certificates before server starts, if necessary. Closes #3599
2023-09-01 22:57:58 +05:30
Binaek Sarkar
08b447a261
Differentiate between user and system queries using application name. Closes #3600
2023-08-25 16:50:27 +01:00
kai
d9cc25eccf
Merge branch 'v0.20.x'
2023-08-25 10:50:49 +01:00
Puskar Basu
7b1d75cfed
Fix support for mixed case schema names. Closes #3753
2023-08-25 10:32:03 +01:00
Puskar Basu
4ae9df827e
Force stop should also kill any stray plugin manager processes. Closes #3636
2023-08-25 10:22:49 +01:00
Puskar Basu
6aaf9bc5be
Update 'sperr' import references. Closes #3748
2023-08-17 13:52:04 +05:30
kai
e5ac3eff06
Merge remote-tracking branch 'origin/main'
2023-08-11 15:30:15 +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
kai
02654f8d4d
Merge branch 'v0.20.x'
...
# Conflicts:
# pkg/pluginmanager_service/plugin_manager.go
# tests/acceptance/test_files/dynamic_schema.bats
2023-08-11 14:18:53 +01:00
Puskar Basu
c9dfc8df0b
Fixes timing issue where refresh connections was sometimes not run when starting service. Closes #3734
2023-08-11 10:36:20 +01:00
Puskar Basu
84ffb71412
Steampipe commands should bypass plugin requirement check if installed plugin is local. Closes #3643
2023-07-27 12:58:52 +01:00
Binaek Sarkar
37e4b94148
Move ErrorAndWarnings to error_helpers. Closes #3653
2023-07-12 13:58:57 +01:00
kaidaguerre
b06348757a
Fix linting warnings
...
---------
Co-authored-by: Binaek Sarkar <binaek@turbot.com >
Co-authored-by: Puskar Basu <puskar@turbot.com >
2023-07-06 16:08:23 +01:00
Binaek Sarkar
448ee3b401
Fixes issue where 'service start' is not listening on 'network' by default. Closes #3593
2023-07-06 16:05:47 +01:00
kai
c4b256f91f
Merge branch 'v0.20.x'
...
# Conflicts:
# cmd/plugin.go
# pkg/steampipeconfig/modconfig/connection.go
# tests/acceptance/test_files/service.bats
2023-06-21 13:29:01 +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
Binaek Sarkar
40e386f8b1
Fixes issue where aggregator connections are always getting updated. Closes #3582
...
Add `connections` column to steampipe_connection_state table
2023-06-20 15:44:44 +01:00
Matt Black
c0f921de62
Refactor: remove redundant postgres log path check ( #3552 )
2023-06-13 09:04:16 +01:00
Patrick Decat
51f43f108b
Allow selection of hosts for steampipe service. Closes #3505
2023-06-01 17:14:56 +01:00
kai
b25b1258ac
fix merge error
2023-05-31 17:20:58 +01:00
kai
8f12a0f965
Merge branch 'v0.20.x'
2023-05-31 17:18:18 +01:00
kai
6ee8d67f12
Set 'incomplete' connections to 'incomplete' before setting 'ready' connections to 'pending' to avoid ready connections ending up incomplete. Closes #3507
2023-05-31 16:15:39 +01:00
kaidaguerre
136ab15b80
Ensure 'Ready' connections are set to 'Pending' state on startup. Fixes #3483
2023-05-31 14:10:25 +01:00
kaidaguerre
692f3e7c30
Ensure 'Ready' connections are set to 'Pending' state on startup. Fixes #3483
2023-05-31 14:09:20 +01:00
kaidaguerre
dd1c36b514
Re-add support for legacy command schema. Closes #3457
2023-05-19 15:45:38 +01:00
kai
15b07cfb71
do not delete legacy command schema
2023-05-18 16:59:11 +01:00
kai
3b1e99182a
Replace all '...' with ellipsis … in terminal output. Closes #3441
2023-05-18 10:41:27 +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
Binaek Sarkar
6d73804f3a
Fixes issue where 'internal' would be added twice in the search_path if one is mentioned in the non default search path. Closes #3397
2023-05-17 15:19:45 +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
dcd0ced93a
Update refresh connections to write comments for exemplar schemas first, followed by remaining schemas. Closes #3413
2023-05-16 14:13:02 +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
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
kai
9f66908085
Fix clone_foreign_schema function to set table options. #3236
2023-03-20 16:15:39 +00:00
kaidaguerre
df9c3a253a
Optimize RefreshConnections by cloning schemas where possible. Optimize plugineManager.Get when retrieving multiple connections from same plugin. Closes #3236
2023-03-16 14:43:56 +00:00
kaidaguerre
86246ed927
Only call RefreshConnections on service startup or after a file watching event. Closes #3229
2023-03-15 16:33:23 +00:00
Puskar Basu
6c4782c26f
Fixes issue where we didn't get a proper uninstall help message for plugins that failed to load. First draft of Failed Plugin table. Closes #3212
2023-03-15 14:53:52 +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
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
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