[BP-2.3][FLINK-40592][metrics] Fix PushGateway basic authentication without JAXB - #29170
Merged
MartijnVisser merged 1 commit intoSep 14, 2026
Merged
Conversation
…AXB (apache#29151) Encode the Basic Authorization header with JDK Base64 and UTF-8 while preserving the default connection factory and credential configuration. Cover PUT and DELETE requests with regression tests that isolate JAXB. Generated-by: OpenAI Codex 0.153.4 Co-authored-by: jiweicheng <jiweicheng@soulapp.cn> (cherry picked from commit 189b6ca)
Collaborator
Contributor
Author
|
The All 34 Prometheus tests passed, including the six authentication regression cases. This failure appears unrelated to the backport. MinIO was replaced on master in #28369, while |
Contributor
|
I'll look into that issue, and merge this one. Thanks @weicheng-07 |
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.
What is the purpose of the change
Backport of #29151 (master commit
189b6ca8313ada196596cb53315866e7a531d441) torelease-2.3for FLINK-40592.Fix
PrometheusPushGatewayReporterinitialization with Basic authentication when JAXB is absent.Brief change log
Verifying this change
./mvnw -Djdk17 -Pjava17-target -pl flink-metrics/flink-metrics-prometheus clean verifypassed onrelease-2.3for commit10eb8b30with Maven 3.8.6 and JDK 17: 34 tests, including all six authentication cases; Checkstyle, Spotless, and japicmp passed.Does this pull request potentially affect one of the following parts:
@Public(Evolving): yes — the reporter is@PublicEvolving; only private implementation changes, with no public signature or configuration changes.Documentation
Was generative AI tooling used to co-author this PR?
Generated-by: OpenAI Codex 0.153.4