Skip to content

[v25.3.x] CORE-15587 proto: allow large TLS certs in shadow link#29746

Merged
pgellert merged 2 commits intoredpanda-data:v25.3.xfrom
vbotbuildovich:backport-pr-29718-v25.3.x-24
Mar 3, 2026
Merged

[v25.3.x] CORE-15587 proto: allow large TLS certs in shadow link#29746
pgellert merged 2 commits intoredpanda-data:v25.3.xfrom
vbotbuildovich:backport-pr-29718-v25.3.x-24

Conversation

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

Backport of PR #29718

pgellert added 2 commits March 3, 2026 10:54
The lookup_field() generator was missing .share() for string fields
with (redpanda.core.pbgen.iobuf) = true. Since iobuf is move-only,
this caused compile errors. Fix by checking isIOBuf(f) alongside the
existing BytesKind check.

(cherry picked from commit 8547e15)
Shadow link TLS PEM fields (ca, key, cert) were limited to 128KiB
by proto serde's string size limit. Large CA bundles with multiple
certificates could exceed this, causing deserialization failures.

Add (redpanda.core.pbgen.iobuf) = true annotation to these fields
in TLSPEMSettings proto. Update shadow_link converter to use
iobuf_to_string() for conversions. This allows arbitrarily large
PEM data while maintaining sstring API compatibility.

(cherry picked from commit 34090ee)
@vbotbuildovich vbotbuildovich added this to the v25.3.x-next milestone Mar 3, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Mar 3, 2026
@vbotbuildovich vbotbuildovich requested a review from pgellert March 3, 2026 10:54
@pgellert pgellert self-assigned this Mar 3, 2026
@pgellert pgellert enabled auto-merge March 3, 2026 11:04
@pgellert pgellert merged commit 534e366 into redpanda-data:v25.3.x Mar 3, 2026
30 checks passed
@tyson-redpanda tyson-redpanda modified the milestones: v25.3.x-next, v25.3.10 Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants