Changelog
All notable changes to kshark are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[1.1.2] - 2026-11-02
Changed
- Release workflow runs under the repository’s local-actions-only policy with pinned, checksum-verified tools.
- Release packaging uses GoReleaser v2, CycloneDX SBOMs, Sigstore signature bundles, and Homebrew casks.
- Startup banner reads
Edition: Open Source (Apache-2.0)instead ofEdition: Open Source (non-commercial). - README, docs/FEATURES.md, docs/DEPLOYMENT.md and CONTRIBUTING.md match the code: Go 1.25, versioned release asset names, the real
ai_config.jsonformat, only thecc-plainandself-scrampresets, GSSAPI marked as not implemented, no license file or premium tier, and HTML reports only after-analyze.
Removed
- Stray example properties files, a tracked
reports/directory,my-report.json,docs/.DS_Storeandtest_docker.sh
Fixed
- Release archives include the HTML report template.
- Neighborhood scan: when every probed port answers “connection refused”, the result is
service_not_listening, as documented. It washost_unreachablewhen ICMP failed andall_tcp_blockedwhen ICMP worked, even though a refused connection proves the host is reachable. A mix of refused and timed-out ports with no open port is nowmixed_filteringinstead ofhost_unreachableorall_tcp_blocked. - Produce and consume probe without
-group: the consume step reads the partition the probe message was written to. It always read partition 0, so on an empty topic with several partitions it timed out whenever the message landed on another partition. -bundleworks without a value, as the README documents. A bare-bundleat the end of the command failed withflag needs an argument, and-bundle -tf-state=xused-tf-state=xas the bundle file name and dropped the Terraform state. Use-bundlefor the default name or-bundle=pathfor a custom path.-bundle pathwith a space no longer sets the path.- Docker image:
/app/reportsexists and is owned byappuser, so reports can be written in the container.appusernow has UID and GID 65532, which matches the Helm chart’s security context. - Helm chart: the reports volume is mounted at
/app/reports, where kshark writes. It was mounted at/reports, so with a read-only root filesystem the reports never reached the PVC. The default image is nowkshark:1.1.1instead of a private registry address, and the planning notes and the example with nonexistent flags were removed fromvalues.yaml. Chart version 0.1.2, appVersion 1.1.1.
Added
- CI/CD pipeline with GitHub Actions (build, test, vet, govulncheck)
- Weekly security scan workflow
- Dependabot configuration for Go modules and GitHub Actions
- CONTRIBUTING.md with development guide
- CHANGELOG.md (this file)
- PR and issue templates
- Expanded unit and container integration tests with an 85% coverage gate in CI
- PostgreSQL DSN quoting (
pgQuote) to prevent parameter injection - SSRF validation on AI API endpoint
redactArgs()to strip credentials from CLI args in reportsgovulncheckandgolangci-lintMakefile targets.golangci.ymlconfiguration withgosecsecurity linter- Coverage gate in CI pipeline
- Environment variable expansion in properties files (
${VAR}syntax viaos.ExpandEnv) - File permission warnings for properties files (
warnInsecurePermissionswarns on mode > 0600) - Fuzz testing: 4 fuzz targets (
auth_fuzz_test.go,properties_fuzz_test.go,ssrf_fuzz_test.go,jdbc_url_fuzz_test.go) - Signal handling: SIGINT/SIGTERM gracefully cancel the scan context for clean shutdown
scanConfigstruct to encapsulate all scan parametersrunScan()function with context-guarded scan phasescheckRESTProxy()extracted as standalone testable function
Changed
- BREAKING: Module path changed from
github.com/your-username/ksharktogithub.com/scalytics/kshark-core - Split
main.go(2,479 lines) into 12 focused files (~100-714 lines each) - Report checksum now uses SHA256 instead of MD5
- HTTP response bodies are now bounded with
io.LimitReaderto prevent memory exhaustion - AI API error responses no longer expose raw response body (information disclosure fix)
- Fixed duplicate
releaseminorMakefile target - Updated all placeholder URLs to
github.com/scalytics/kshark-core - Updated copyright headers
- Replaced
goto endScanwithrunScan()function; all scan phases now exit viactx.Done()checks isLinkLocalIPexpanded to full SSRF deny list: 14 CIDR ranges (loopback, link-local, CGN, TEST-NETs, multicast, reserved, broadcast) + 4 warn ranges (RFC1918, ULA)- REST Proxy check now properly guarded by
ctx.Done()insiderunScan()(previously ran unconditionally afterendScanlabel)
Security
- Added SSRF protection for AI API endpoint URL
- Bounded all HTTP response reads to 1-4 MB
- CLI arguments containing credentials are redacted in report metadata
- PostgreSQL DSN values are properly quoted to prevent parameter injection
- Replaced MD5 checksums with SHA256
- AI client
CheckRedirecthandler prevents redirect-based SSRF bypass - REST Proxy extracted to
checkRESTProxy()for httptest-based testing
[1.1.1] - 2026-10-22
Added
validate-blueprintsubcommand with routine and verdict output (#23)- Helm chart for a CronJob deployment (
deploy/helm/kshark) - Homebrew tap configuration in GoReleaser
Changed
- Release binaries are built with Go 1.26.10 for CVE-2026-111943 (#44)
- Copyright holder is Scalytics, Inc. (#43)
- Dependency updates: kafka-go 0.4.51, mongo-driver 2.9.2, pgx 5.10.0, golang.org/x/text
- CI runs on Go 1.26 with golangci-lint v2
Security
- Cleared critical CVEs in the shipped container image
[1.1.0] - 2026-03-27
Added
- Redis and Elasticsearch connector probes
-watchmode,kshark diffandkshark trendkshark doctorsubcommand- Layered exit codes (1=DNS, 2=TCP, 3=TLS, 4=App, 5=Diag)
Changed
- Scan orchestration moved from
main.gotoscan.go, broker discovery tobroker_discovery.go
Fixed
- Wire protocol probers read with bounded
io.Readerhandling - Added
releasepatchandreleasemajorMakefile targets
[1.0.3] - 2026-03-26
Added
- MySQL, SQL Server and Oracle connector probes
- Broker discovery scan with advertised listener mismatch detection
- Neighborhood scan for connector targets
[1.0.2] - 2026-03-26
Removed
- Tracked
.DS_Storeandksharkbinary
[1.0.1] - 2026-03-26
Added
- Probe direction control (
-probe-direction=up|full) - Neighborhood scan with restriction classification
- Diagnostics bundle with Terraform state redaction (
-bundle,-tf-state,-tf-plan)
[1.0.0] - 2026-03-26
Changed
- First 1.0 release with connector probes and SSRF protection
[0.1.0] - 2025-09-05
Added
- Initial release
- Layered diagnostic tool for Apache Kafka (L3-L7)
- SASL/PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 authentication
- TLS/mTLS support with certificate expiry monitoring
- Schema Registry and REST Proxy connectivity checks
- AI-powered analysis with prompt export
- HTML and JSON report generation
- Docker and Kubernetes support
- Presets for Confluent Cloud and common configurations
- Traceroute and MTU diagnostics
[0.2.0] - 2026-03-25
Added
- Connector probe feature (SPEC-002)
- MongoDB sink connector probing
- PostgreSQL JDBC source connector probing
- DB2 JDBC source connector probing (DRDA wire protocol)
- Kafka Connect REST API client with authentication
- JDBC URL parser for PostgreSQL and DB2
- Connector config auto-detection from connector class
- Fallback from Connect API to local config file
- Integration testbed with Docker Compose
- SSRF two-tier protection model (deny loopback/metadata, warn RFC1918)
- Credential redaction for connector configs