Commit Graph

19 Commits

Author SHA1 Message Date
Nathan Wallace
ea6a7a09cc Nil pointer dereference in plugin version check closes #4747 (#4897)
* Unskip test demonstrating bug #4747: Nil pointer dereference in plugin version check

Removed the GlobalConfig initialization workaround from setupTestEnvironment()
and added TestPluginVersionCheckWithNilGlobalConfig to demonstrate the bug.

The test will panic at runner.go:106 when attempting to access
steampipeconfig.GlobalConfig.PluginVersions without a nil check.

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

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

* Fix #4747: Add nil check for GlobalConfig in version checks

Wraps both CLI and plugin version checks with a nil check for
steampipeconfig.GlobalConfig. This prevents panics when the runner
is invoked before full configuration initialization, such as in
test environments or unusual startup scenarios.

The previous fix only addressed the plugin version check at line 109,
but the CLI version check at line 104 also triggers a panic through
fetchAvailableCLIVersion -> BuildRequestPayload which accesses
GlobalConfig internally.

🤖 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-16 16:22:46 -05:00
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
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
cd07bf20f1 working on it 2024-09-27 18:13:12 +05:30
Graza
ecefbcc00c Migrate from GCP to GHCR as CR for Plugins. Closes #4232 2024-04-08 15:15:18 +01:00
Puskar Basu
410fe9ef6f Add deprecation warnings for Mod commands
* print errors and warnings to stderr
* fix tests
* Update description
* update sample workspace profile content
* Changelog for v0.22.0
2024-03-06 11:13:17 +00:00
Meet Rajesh Gor
3854bbedf2 Use jd to compare between json outputs in relevant acceptance tests. Closes #3556 (#3947) 2023-12-14 15:52:12 +05:30
Puskar Basu
01097a27e6 Warn users to not have mod.sp files in home directory. Closes #2321 2023-09-22 18:07:55 +01:00
Binaek Sarkar
b0fa6b6cbf Rotate SSL certificates before server starts, if necessary. Closes #3599 2023-09-01 22:57:58 +05:30
Binaek Sarkar
6c1393fdb7 Fixes issue where 'plugin-manager' incorrectly executes scheduled tasks (e.g. update check). Closes #3421 2023-05-17 13:16:40 +01:00
Binaek Sarkar
6db9656e5a Ensure plugin-manager command does not execute scheduled tasks - avoid deprecation warnings which make the plugin manager GRPC startup fail. Closes #3410 2023-05-15 15:59:41 +01:00
Puskar Basu
8e8a093779 Do not show deprecation warnings every time while running any steampipe command. Closes #3281 2023-04-18 15:26:37 +01:00
Binaek Sarkar
bc5f6bd46e Fixes issue where steampipe notifies of available update even if plugin is updated. Closes #2998 2023-01-17 15:25:33 +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
3ef30c4a80 Fixes issue where task running goroutine would try to access viper config as it is being written to. Closes #2845 2022-12-14 12:15:52 +00:00
Binaek Sarkar
d2f8541385 Update the update checker to run asynchronously. Closes #2770 2022-11-25 11:26:50 +00: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
5193c70395 Restructure steampipe repo to use pkg folder. Closes #2204 2022-06-27 11:36:03 +01:00