Skip to content

chore: merge upstream linkedin/Burrow master - #3

Merged
ljtfreitas merged 75 commits into
masterfrom
merge-upstream-master
Jul 7, 2026
Merged

ljtfreitas merged 75 commits into
masterfrom
merge-upstream-master

Conversation

@ljtfreitas

Copy link
Copy Markdown

Summary

  • Merges upstream linkedin/Burrow master into our fork
  • Brings in ZK-optional support: newCoordinators() now only includes the ZooKeeper coordinator when notifiers are configured, allowing Burrow to run on KRaft/MSK clusters without ZooKeeper
  • Updates Go to 1.25, bumps all dependencies
  • Adds IAM auth support (aws-msk-iam-sasl-signer-go)
  • Preserves our Nubank-specific automaxprocs import (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 deploying kafka-burrow on MSK clusters in br-staging.

Changes

  • go.mod / go.sum: resolved merge conflict by taking upstream versions of automaxprocs (v1.6.0) and zap (v1.27.0)
  • main.go: removed duplicate automaxprocs import introduced by the merge
  • All other changes are from upstream

🤖 Generated with Claude Code

chrisbeard and others added 30 commits November 9, 2020 11:40
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
* 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
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
bai and others added 26 commits May 12, 2025 17:36
docs: edited the link to the CI 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
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
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
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>
Copilot AI review requested due to automatic review settings July 6, 2026 20:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Comment thread go.mod
module github.com/linkedin/Burrow

go 1.21
go 1.24.0
@ljtfreitas
ljtfreitas merged commit f71d1ec into master Jul 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.