137 Commits

Author SHA1 Message Date
Nathan Wallace
cea0a647cf Nil GlobalConfig causes panic in newRefreshConnectionState closes #4779 (#4899)
* Add test demonstrating nil GlobalConfig panic in newRefreshConnectionState

Test: TestRefreshConnectionState_ConnectionOrderEdgeCases
Demonstrates issue #4779 where nil GlobalConfig causes panic

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Add nil check for GlobalConfig in newRefreshConnectionState

Fixes #4779: nil GlobalConfig causes panic in newRefreshConnectionState

Changes:
- Add nil check for GlobalConfig in newRefreshConnectionState before SetUserSearchPath
- Add nil check in getDefaultSearchPath to handle nil GlobalConfig gracefully
- Test now passes instead of panicking with nil pointer dereference

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-17 03:57:59 -05:00
Nathan Wallace
2e5f3fda97 Add comprehensive passing tests from bug hunting initiative (#4864) 2025-11-13 09:26:46 +08:00
Nathan Wallace
5c11d66574 Fix #4699: Add bounds check to isValidDatabaseName (#4733) 2025-11-11 19:25:44 +08:00
Puskar Basu
2fa696b2db Update embedded postgresql version to 14.19 (#4671) 2025-10-29 22:00:25 +05:30
Priyanka Chatterjee
a5ba443c6a Enhance StartServices function to include warning for existing Steampipe service connection on the same port (#4625) 2025-09-24 11:33:27 +05:30
Puskar Basu
e19d35c457 chore: update module to v2 and bump Go version to 1.24 (#4597) 2025-07-07 16:03:56 +05:30
Puskar Basu
1c9f3ac9fc Merge branch 'v2.0.x' into develop 2025-07-07 13:06:15 +05:30
kaidaguerre
30c344a4f8 Fix plugin manager verifyRunning function to avoid false positives, which lead to failure to start the plugin manager. Fixes #4507
* pluginmanager.State.verifyRunning() now checks the process corresponding to the pid is a plugin manager process
pluginmanager.State.kill() deletes the plugin manager state file even if the process is not found
2025-05-14 09:46:42 +01:00
Puskar Basu
a9e66247c7 set the DYLIB path for pg_dump and pg_restore bins 2025-03-31 17:35:06 +05:30
Puskar Basu
1f864220f6 changes 2025-03-31 17:35:05 +05:30
Puskar Basu
94e52c3fd6 Revert "remove backup code"
This reverts commit c74c73d4d00c807376ecd9f3e17f9b5ff97fb104.
2025-03-31 17:35:05 +05:30
Puskar Basu
ada022f2d7 remove backup code 2025-03-31 17:35:05 +05:30
Puskar Basu
da2f3ecc03 Upgrade to pipe-fittings v2, go-kit v1 (#4485) 2025-03-06 16:34:18 +05:30
kai
112647bae0 tidy 2024-10-15 11:44:13 +01:00
kai
dde7c23ed5 rename Connection to SteampipeConnection
remove unneeded code
use CloudMetadata from pipe-fittings
2024-09-27 18:14:28 +05:30
kai
1804741bbd tidy 2024-09-27 18:14:28 +05:30
kai
5fd5ae0740 timing broken 2024-09-27 18:14:28 +05:30
kai
e5b1927a63 tidy imports 2024-09-27 18:14:28 +05:30
kai
cb681c67cc compiles but needs testing 2024-09-27 18:14:28 +05:30
kai
7a0e54447c compile fixes, move more utils to pipe-fittings 2024-09-27 18:14:28 +05:30
kai
ef21f1452e steampipe compiles 2024-09-27 18:14:28 +05:30
kai
c5cc5a3e7a compiles and seems to work
connection state not populating
2024-09-27 18:14:28 +05:30
kai
cd07bf20f1 working on it 2024-09-27 18:13:12 +05:30
kai
faead86d26 move stuff to pipe-fittings 2024-09-27 18:13:12 +05:30
momantech
f69882f057 chore: remove repetitive words (#4247)
Signed-off-by: momantech <cuimoman@qq.com>
2024-04-24 08:56:42 +01:00
kaidaguerre
07782a2b13 Adds support for verbose timing information. Closes #4237. Closes #4244
- JSON output format has changed to move the rows to under a `rows` property, with timing information under the `metadata` property
- Update timing display to show rows returned and rows fetched, as well as adding verbose mode which lists all scans
- Use enums for output mode and timing mode - timing is now either `on`, `off` or `verbose`
- Bugfix: ensure error is returned from ExecuteSystemClientCall. Closes #4246
2024-04-17 10:12:17 +01:00
kaidaguerre
e6e9714e4c Update all ErrorAndWarnings function returns to pass by value, removing possibility of nil ErrorAndWarnings. Closes #3974 (#4212) 2024-03-21 11:46:10 +00:00
Brahim Boukoufallah
34ba9fd9ba Add database SSL password support for encrypted private key in order to handle your own certificates. Closes #4149 2024-03-15 14:50:21 +00:00
kaidaguerre
0db7768ce9 Improve startup performance with high plugin count - parallelize plugin startup. Closes #4183 2024-03-13 12:15:04 +00:00
kaidaguerre
611a21cafa Database option search_path_prefix does not alter search path. Fixes #4160 2024-03-01 18:11:07 +00:00
kaidaguerre
3458984aaf Update go-kit to v0.9.0. Use terraform-components instead of a direct terraform reference 2024-02-01 17:12:23 +00:00
kaidaguerre
9c36a36e42 schema clone function fails if table has an ltree column. Closes #4079 2024-01-23 09:30:45 +00:00
Binaek Sarkar
94e8008eb7 Simplifies available port check. Closes #4030 2024-01-23 09:27:39 +00:00
kaidaguerre
79b66fb9fa Move hcl_helpers and type_conversion package to go-kit. Closes #3962
(cherry picked from commit 737efa381b)
2023-11-29 12:55:13 +00:00
kai
784ae1e13b Revert "Force stop should also kill any stray plugin manager processes. Closes #3636"
This reverts commit 4ae9df82
2023-10-02 10:30:54 +01:00
Binaek Sarkar
71658b3c79 Fixes issue where 20.x client would fail to connect to 21.x service in interactive. Closes #3931 2023-09-29 11:56:12 +01:00
kai
5812c59f10 add introspection tables to autocomplete. Closes #3920
gracefully handle startup failure to read ResolvedListenAddresses in server state
2023-09-27 19:45:36 +01:00
kaidaguerre
817cfbfca1 Deprecate steampipe connection state and replace with steampipe connection - update both tables in parallel. Closes #3908 2023-09-26 17:53:33 +01:00
Puskar Basu
2438a122a6 Fixes issue where initialising rate limiter definitions was taking too long due to force recreation of tables. Closes #3902 2023-09-26 14:48:59 +01:00
Puskar Basu
059e1d70d5 Re-enable verify cache ttl works when set in database options test. Closes #3891 (#3897) 2023-09-26 13:49:09 +01:00
kaidaguerre
79606c5bcd Rename internal introspection tables. Fix warning notifications from RefreshConnections. Improve error handlingh for config inconsistencies in conneciton and plugin config. Closes #3886 2023-09-22 16:02:41 +01:00
Binaek Sarkar
671baeb36a Fixes issue where multiple 'service start' would error even on same listen params. Closes #3861 2023-09-18 16:24:47 +01:00
kaidaguerre
f232b14f06 Add support for multiple instances of the same plugin version to execute. Closes #3863 2023-09-18 15:39:17 +01:00
Binaek Sarkar
00fb338ec1 Updates messaging when service is started on an unavailable port. Closes #623 2023-09-18 12:24:44 +01:00
Binaek Sarkar
acc3f942ea Installs only FDW when fdw files are not installed. Closes #2040 2023-09-18 12:23:56 +01:00
kaidaguerre
7feb305fde Provide mechanism for plugin manager to send warnings back to CLI. Closes #3603 (#3835) 2023-09-13 15:34:15 +01:00
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