-
Notifications
You must be signed in to change notification settings - Fork 622
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
Add optional TLS SNI initiator support #277
Conversation
Is there a chance to wring unit test for it? I guess doing end to end unit test is not possible without setting up virtual hosts, isn't it? |
I am not familiar with this, but adding a flag to disable SNI is not necessary because it will be ignored by counterparties not supporting it?? Really really sure? ;) |
I'm pretty sure, but yeah, still. Will make it opt-in then? |
Not sure what to do with the failing LGTM for JavaScript, the log says: I assume this is because One way to solve this would be to add a extraction:
javascript:
index:
exclude:
- quickfixj-core/scr/main/doc
filters:
- exclude: "**/*.html" as per https://lgtm.com/help/lgtm/javascript-extraction. Not sure if that should be part of this PR, let me know pls. |
Please add the LGTM config. IMHO you could also disable JavaScript checking altogether, but don't know if that is possible. Edit: you got a typo in the |
JavaScript analysis failed again. But for me this should not block the PR from merging. If you don't have any idea how to fix it let me know. |
@chrjohn I'm in the process of trying to figure it out -- don't want to be guessing so I'm reading their docs now. There's lot of |
It seems that the LGTM JavaScript extractor will always complain if it fails to extract at least one file: https://github.com/Semmle/ql/blob/master/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java#L1088 |
We don't have any lgtm.yml in place yet so it seems that by default JavaScript is tested. Could we only specify Java to skip JS extraction? Cf here: https://github.com/elastic/apm-agent-java/blob/master/.lgtm.yml |
Dang.. |
Okay, giving up. Somebody should check if it's possible to turn off the LGTM JavaScript integration in the repo settings. Alternatively, the The last extraction:
javascript:
before_index:
- export LGTM_TRAP_CACHE=
index:
exclude:
- quickfixj-core
- quickfixj-codegenerator
filters:
- exclude: "*.html"
- exclude: "*.js"
- exclude: "*.yml"
- exclude: "**/*.html"
- exclude: "**/*.js"
- exclude: "**/*.yml"
typescript: none (the What was weird, the extraction was failing even when a phony |
I'll check with LGTM to disable the JavaScript support since I cannot disable it in the project settings. Seems to be a known problem or missing feature: https://discuss.lgtm.com/t/how-to-turn-off-language-python-support-for-the-c-project/1388 and https://discuss.lgtm.com/t/disable-javascript-analysis/2150/15 Apart from that I think we are ready to merge this. Thanks for the contribution @youurayy 👍 |
* add address to SNI init log output * add UseSNI opt-in parameter * add doc for the UseSNI config parameter * change to parametrized logging * minor changes to comments and logging * corrected SNI (indication) in doc Co-authored-by: Christoph John <christoph.john@macd.com>
Fixes #276.