Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harden WebClientSecurity against absent or disabled tracing #8809

Merged
merged 1 commit into from
May 28, 2024

Conversation

tjquinno
Copy link
Member

Description

Resolves #8800

If tracing as a whole is disabled, or if tracing on certain paths is disabled, then the tracer or the parent span context will be absent from the request context delivered to the web client security code.

This PR adds null checks in key spots for the tracer and parent span context.

Documentation

Bug fix; no doc impact.

@tjquinno tjquinno requested review from Verdent and barchetta May 28, 2024 22:05
@tjquinno tjquinno self-assigned this May 28, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 28, 2024
@tjquinno tjquinno merged commit 851db73 into helidon-io:main May 28, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebClientSecurity::handle throws NPE when handling a untraced request (SpanContext for parent is null)
2 participants