Skip to content

Conversation

@duke8253
Copy link
Contributor

@duke8253 duke8253 commented Apr 2, 2021

No description provided.

@duke8253 duke8253 added this to the 10.0.0 milestone Apr 2, 2021
@duke8253 duke8253 self-assigned this Apr 2, 2021
@ezelkow1
Copy link
Member

ezelkow1 commented Apr 3, 2021

[approve ci]

Comment on lines 85 to 89
if (is_debug_tag_set("ssl_verify")) {
Debug("ssl_verify", "Core server certificate verification failed for (%s). Action=%s Error=%s server=%s(%s) depth=%d",
sni_name, enforce_mode ? "Terminate" : "Continue", X509_verify_cert_error_string(err),
netvc->options.ssl_servername.get(), buff, depth);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you wrapping these in the conditional because the computation of the parts of the message are expensive?

bneradt
bneradt previously approved these changes Apr 3, 2021
Copy link
Member

@maskit maskit left a comment

Choose a reason for hiding this comment

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

Changing tag is probably ok, but changing Warning to Debug may be not. Warnings are printed regardless of diags.debug.enabled and diags.debug.tags, and those would be disappeared on prod. If those warnings are not really important on prod then I'm ok with making them debug log, but users watching the warnings would be surprised. We might want to mark this incompatible. I didn't check how SSLError works but I have the same concern on it as well.

@duke8253
Copy link
Contributor Author

duke8253 commented Apr 6, 2021

Changing tag is probably ok, but changing Warning to Debug may be not. Warnings are printed regardless of diags.debug.enabled and diags.debug.tags, and those would be disappeared on prod. If those warnings are not really important on prod then I'm ok with making them debug log, but users watching the warnings would be surprised. We might want to mark this incompatible. I didn't check how SSLError works but I have the same concern on it as well.

I thought about that too, but the message logged in Diags also seems reasonable to be in debug logs as well. We will have our ops team test this out for a few days and see what they prefers, I'll make adjustments according to their comments.

@shinrich
Copy link
Member

shinrich commented Apr 7, 2021

Oh, I didn't catch that the Warning messages were going away. I thought you were just adding Debug messages in parallel so in the more detailed case all would show up in traffic.out.

I know that @djcarlin relies on the certificate verification messages always showing up. He uses that to check when to yell at origins for having bad certs. He doesn't run with debug enabled enough for that to be equivalent.

@duke8253 duke8253 force-pushed the master-hs_log branch 2 times, most recently from 6d90fe9 to f3c1b92 Compare April 9, 2021 17:21
@bryancall
Copy link
Contributor

@randall is going to review this

@duke8253
Copy link
Contributor Author

[approve ci autest]

@duke8253 duke8253 merged commit 09b8e52 into apache:master Jul 6, 2021
SolidWallOfCode pushed a commit to SolidWallOfCode/trafficserver that referenced this pull request Jul 23, 2021
@zwoop zwoop modified the milestones: 10.0.0, 9.2.0 Sep 23, 2021
moonchen pushed a commit to moonchen/trafficserver that referenced this pull request Mar 7, 2022
* asf/master: (763 commits)
  rate_limit: Add a global hook to rate limit concurrent connections based on SNI (apache#8021)
  Fix uri_signing unit test for out of source builds (apache#8040)
  tests: Add conditions for BoringSSL and OpenSSL (apache#8045)
  change debug tags and make sure sni is printed on certain logs (apache#7673)
  Doc build in CI: build English docs with -W (apache#8039)
  When loading async SSL configuration file fails, log SSL error (apache#8036)
  Doc build: treat warnings as errors only by default (apache#8038)
  For test async_engine, export all symbols (apache#8037)
  Fix the server cert reload (apache#8030)
  Treat Sphinx doc build warnings as errors. (apache#8033)
  Stablize trace curl test in good_request_after_bad (apache#8032)
  Doc: Update documentation to build cleanly in Sphinx 3. Require Sphinx 3 or better. (apache#7978)
  Docs: Fix pre-formatting for ratelimit plugin (apache#7986)
  Make it slightly harder to dump private keys to logs (apache#8029)
  tls_bad_alpn: Add an openssl version skip check (apache#8026)
  per thread jemalloc arena for MADV_DONTDUMP (apache#7501)
  Adds a new rm-destination, this lets you specify either QUERY or PATH, and be able to drop them from the incoming request (apache#8025)
  Fix HPACK eviction iterator manipulation (apache#8004)
  Do not invalidate cached resources upon error responses to unsafe methods (apache#7999)
  Cleanup SSLUtils (apache#8007)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants