Repository navigation
chore: merge upstream linkedin/Burrow master - #3
Merged
Merged
Conversation
The `burrow_kafka_topic_partition_status` metric for a deleted consumer group was dangling because we neglected to clear the corresponding gauge.
…eted Previously, we deleted the all consumer group metrics when a group's topic was deleted. WIth this change we make sure to check for the case where a topic is provided (i.e. user wants to delete only a specific topic of a consumer group) and delete only the metrics that match both consumer group and topic.
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0. - [Commits](golang/net@v0.17.0...v0.23.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…olang.org/x/net-0.23.0 Bump golang.org/x/net from 0.17.0 to 0.23.0
Update dependencies
Update Go to 1.22
Update Alpine to 3.19
* master: Update Alpine to 3.19 Update Go to 1.22 Update dependencies Bump golang.org/x/net from 0.17.0 to 0.23.0 Bump golang.org/x/crypto from 0.14.0 to 0.17.0 Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 Update Go to 1.21.8 Update to golintci version that is compatible with go 1.21.x and update golintci configuration to emulate the behavior of the older version
…on-group-delete Fix metric deletion on group delete
Add riscv64 support
Fix dup3 build condition
Bump Golang to 1.22.3
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.23.0 to 0.31.0. - [Commits](golang/crypto@v0.23.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…olang.org/x/crypto-0.31.0 Bump golang.org/x/crypto from 0.23.0 to 0.31.0
runtime: don't hardcode GOMAXPROCS
Update Golang to version 1.23
docs: edited the link to the CI badge
docs: add release badge
Use sarama version to build the correct OffsetRequest call
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.2.1 to 2.3.0. - [Release notes](https://github.com/go-viper/mapstructure/releases) - [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md) - [Commits](go-viper/mapstructure@v2.2.1...v2.3.0) --- updated-dependencies: - dependency-name: github.com/go-viper/mapstructure/v2 dependency-version: 2.3.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…ithub.com/go-viper/mapstructure/v2-2.3.0
Cache dependencies in docker build using go mod
Bump golang to 1.24.5
In order to implement the IAM auth mechanism for Burrow, the following changes were required. * The iamTokenProvider struct has been implemented to hold the iam parameters provided in the toml configuration file. * A helper function which leverages the aws-msk-iam-sasl-signer-go/signer methods in order to generate the auth token has been provided. * The token is being assigned to the saramaConfig.Net.SASL structure. Document TLS+IAM configuration * tls-iam.md contains a description of the IAM implementation and configuration. * Added a commented section to config/burrow.toml which provides a IAM configuration example.
Add AWS MSK IAM + TLS authentication support
Support offset value v4
Update Golang to version 1.25
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.42.0 to 0.45.0. - [Commits](golang/crypto@v0.42.0...v0.45.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-version: 0.45.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
…-node24 Upgrade GitHub Actions for Node 24 compatibility
…olang.org/x/crypto-0.45.0 Bump golang.org/x/crypto from 0.42.0 to 0.45.0
Allow a trailing dot in hostnames, e.g. example.com. is legit, just like example.com
Support hostnames ending in a dot
Issue 730: inmemory deleteTopic is not thread-safe
Brings in ZK-optional support (newCoordinators now conditionally includes the ZK coordinator only when notifiers are configured), updated dependencies, Go 1.25, IAM auth support, and other upstream improvements. Resolves go.mod conflict by taking upstream versions of automaxprocs (v1.6.0) and zap (v1.27.0), which supersede our previously pinned versions. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR merges upstream linkedin/Burrow changes into the fork, bringing in dependency/toolchain updates and feature additions aimed at running Burrow on Kafka clusters without ZooKeeper and supporting AWS MSK IAM authentication.
Changes:
- Makes ZooKeeper coordinator optional (only started when notifiers are configured).
- Adds AWS MSK IAM (SASL/OAUTHBEARER) auth support and documentation/examples.
- Bumps Go/tooling base images and updates Go dependencies (including ZK client and Sarama).
Reviewed changes
Copilot reviewed 32 out of 33 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates badges/links for release and CI status. |
| NOTICE | Updates ZooKeeper client notice to reference go-zk. |
| main.go | Removes manual GOMAXPROCS setting and ensures automaxprocs side-effect import is present. |
| iam-auth.md | Adds documentation for MSK IAM auth configuration and usage. |
| go.mod | Updates Go directive and bumps/changes dependencies (Sarama, go-zk, Prometheus, Viper, etc.). |
| go.sum | Refreshes module checksums to match updated dependencies. |
| Dockerfile.gorelease | Updates runtime base image to Alpine 3.22 for release artifacts. |
| Dockerfile | Updates Go builder image and improves layer caching via go mod download. |
| core/protocol/protocol.go | Switches ZooKeeper client import to github.com/linkedin/go-zk. |
| core/open_out_log_linux_dup3.go | Expands linux dup3 workaround build tags to include riscv64. |
| core/internal/zookeeper/coordinator.go | Switches ZooKeeper client import to github.com/linkedin/go-zk. |
| core/internal/zookeeper/coordinator_test.go | Updates tests to use github.com/linkedin/go-zk. |
| core/internal/storage/inmemory.go | Improves locking around consumer map iteration and refines metric deletion behavior on group/topic deletes. |
| core/internal/httpserver/prometheus.go | Adds targeted metric deletion for consumer+topic and expands consumer metric cleanup. |
| core/internal/helpers/zookeeper.go | Migrates to go-zk, simplifies connect options, and refactors TLS dialer construction. |
| core/internal/helpers/validation.go | Allows hostnames ending with a trailing dot. |
| core/internal/helpers/validation_test.go | Adds coverage for trailing-dot hostname behavior. |
| core/internal/helpers/sarama.go | Adds IAM auth wiring and tweaks SASL mechanism handling. |
| core/internal/helpers/sarama_test.go | Improves error formatting in a test assertion. |
| core/internal/helpers/iam.go | Adds IAM token provider for Sarama (MSK IAM signer integration). |
| core/internal/helpers/iam_test.go | Adds unit tests for IAM token provider behavior and error paths. |
| core/internal/consumer/kafka_zk_test.go | Updates tests to use github.com/linkedin/go-zk. |
| core/internal/consumer/kafka_zk_client.go | Switches ZooKeeper client import to github.com/linkedin/go-zk. |
| core/internal/consumer/kafka_client.go | Adds decoding support for offset value version 4, including compact-string handling. |
| core/internal/consumer/kafka_client_test.go | Adds tests for compact-string and v4 offset decoding. |
| core/internal/cluster/kafka_cluster.go | Sets OffsetRequest version based on configured Kafka version. |
| core/internal/cluster/kafka_cluster_test.go | Updates mocks to satisfy new Config() usage. |
| core/burrow.go | Makes coordinator list dynamic; conditionally enables ZooKeeper/notifier coordinators based on config. |
| config/burrow.toml | Adds commented example configuration for TLS+IAM usage. |
| .goreleaser.yml | Updates GoReleaser config (v2 format, arm64 images, archive formats, manifests). |
| .golangci.yml | Updates linter config (e.g., copyloopvar) and formatting cleanup. |
| .github/workflows/release.yml | Updates Actions versions and Go version; adjusts GoReleaser invocation flags. |
| .github/workflows/ci.yml | Updates Actions versions, Go version, and golangci-lint install version. |
Comments suppressed due to low confidence (1)
core/open_out_log_linux_dup3.go:20
- Grammar: plural subject (“linux_arm64 and linux_riscv64”) should use “don't have”.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+413
to
+433
| func readCompactString(buf *bytes.Buffer) (string, error) { // nolint:interfacer | ||
| var strlen uint8 | ||
| err := binary.Read(buf, binary.BigEndian, &strlen) | ||
| if err != nil { | ||
| return "", err | ||
| } | ||
|
|
||
| // For compact strings, length 0 means null, length 1 means empty string | ||
| if strlen <= 1 { | ||
| return "", nil // null or empty string | ||
| } | ||
|
|
||
| // For actual content, we need to read (length - 1) bytes | ||
| actualLength := int(strlen - 1) | ||
| strbytes := make([]byte, actualLength) | ||
| n, err := buf.Read(strbytes) | ||
| if (err != nil) || (n != actualLength) { | ||
| return "", errors.New("compact string underflow") | ||
| } | ||
| return string(strbytes), nil | ||
| } |
| } | ||
| } else if mechanism == "PLAIN" { | ||
| saramaConfig.Net.SASL.Mechanism = sarama.SASLTypePlaintext | ||
| viper.Set("sasl."+saslName+".handshake-first", true) |
| module github.com/linkedin/Burrow | ||
|
|
||
| go 1.21 | ||
| go 1.24.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
linkedin/Burrowmaster into our forknewCoordinators()now only includes the ZooKeeper coordinator when notifiers are configured, allowing Burrow to run on KRaft/MSK clusters without ZooKeeperaws-msk-iam-sasl-signer-go)automaxprocsimport (bumped from v1.5.3 → v1.6.0 to match upstream dep versions)Motivation
The current pinned commit (
958817a) predates the ZK-optional fix, causing Burrow to panic with"No Zookeeper servers specified"on MSK clusters that don't expose ZooKeeper. This unblocks deployingkafka-burrowon MSK clusters inbr-staging.Changes
go.mod/go.sum: resolved merge conflict by taking upstream versions ofautomaxprocs(v1.6.0) andzap(v1.27.0)main.go: removed duplicateautomaxprocsimport introduced by the merge🤖 Generated with Claude Code