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

Feature/tls-key-logger flag added #1449

Closed
wants to merge 6 commits into from

Conversation

jayjayswal
Copy link

Added TLS keylogger support

Closes #1385

@CLAassistant
Copy link

CLAassistant commented May 14, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Jaykumar Jayswal seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov-io
Copy link

codecov-io commented May 17, 2020

Codecov Report

Merging #1449 into master will decrease coverage by 0.07%.
The diff coverage is 44.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1449      +/-   ##
==========================================
- Coverage   75.22%   75.15%   -0.08%     
==========================================
  Files         150      150              
  Lines       10911    10936      +25     
==========================================
+ Hits         8208     8219      +11     
- Misses       2238     2246       +8     
- Partials      465      471       +6     
Impacted Files Coverage Δ
js/runner.go 82.70% <0.00%> (-0.63%) ⬇️
lib/options.go 93.14% <ø> (ø)
js/bundle.go 82.87% <37.50%> (-2.64%) ⬇️
cmd/config.go 75.69% <41.66%> (-2.42%) ⬇️
cmd/options.go 71.31% <100.00%> (+0.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9586f2f...2dc09c4. Read the comment docs.

Copy link
Contributor

@mstoykov mstoykov left a comment

Choose a reason for hiding this comment

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

Sorry for the long delay, I meant to answer you when you published it ... but forgot :( .

I do think this should just be a RuntimeOption as I've written and there is no need for all the validation. It's extremely unlikely we will change our minds, so the extra "freedom" is not really there - we won't allow this to be settable from inside the script.
Also, you will need to open and append to a file instead of reusing the logger one .. as that one is for the logger ;)

Again we are very preoccupied with PR 1007 and this is very unlikely to get merged before we get it out the door, so there is no rush, and thanks for the PR, even if we won't merge it right away :D

@@ -225,6 +225,7 @@ type Options struct {

// Accept invalid or untrusted TLS certificates.
InsecureSkipTLSVerify null.Bool `json:"insecureSkipTLSVerify" envconfig:"K6_INSECURE_SKIP_TLS_VERIFY"`
LogTLSKey null.Bool `json:"logTLSKey" envconfig:"K6_LOG_TLS_KEY"`
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a string to a separate file that we log the keys to. Reusing the logger output doesn't seem like a good idea at all

Copy link
Contributor

Choose a reason for hiding this comment

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

On second though you should also move it to RuntimeOptions so you don't have a way to set it from inside the script, as that is totally what we want to avoid.

@mstoykov
Copy link
Contributor

Hi jayjayswal, we have finally released v0.27.0 and v0.27.1. I will be really glad if we can get this in v0.28.0. Do you think you will have the time to work on this in the next week or two?

@jayjayswal
Copy link
Author

Hi jayjayswal, we have finally released v0.27.0 and v0.27.1. I will be really glad if we can get this in v0.28.0. Do you think you will have the time to work on this in the next week or two?

Hi, Sure i will get this done in a week or two.

@jayjayswal
Copy link
Author

Hi jayjayswal, we have finally released v0.27.0 and v0.27.1. I will be really glad if we can get this in v0.28.0. Do you think you will have the time to work on this in the next week or two?

Hi, Sure i will get this done in a week or two.

Hi @mstoykov, I am sorry I am not getting time to work on this for now. If it requires to be done in this or next week I won't be able to deliver. I will be free to work on this after next week. So if you need to get this feature live please proceed with the work. Otherwise, I will take it up next to next week.

@codecov-commenter
Copy link

Codecov Report

Merging #1449 into master will decrease coverage by 0.07%.
The diff coverage is 44.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1449      +/-   ##
==========================================
- Coverage   75.22%   75.15%   -0.08%     
==========================================
  Files         150      150              
  Lines       10911    10936      +25     
==========================================
+ Hits         8208     8219      +11     
- Misses       2238     2246       +8     
- Partials      465      471       +6     
Impacted Files Coverage Δ
js/runner.go 82.70% <0.00%> (-0.63%) ⬇️
lib/options.go 93.14% <ø> (ø)
js/bundle.go 82.87% <37.50%> (-2.64%) ⬇️
cmd/config.go 75.69% <41.66%> (-2.42%) ⬇️
cmd/options.go 71.31% <100.00%> (+0.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9586f2f...2dc09c4. Read the comment docs.

@mstoykov
Copy link
Contributor

mstoykov commented Feb 2, 2021

Hi @jayjayswal , sorry for the long radio silence :(.

I would like if we can get this in k6, and was wondering if you would find the time to finish it?

@mstoykov
Copy link
Contributor

mstoykov commented Apr 7, 2022

Closing this as there are two other PRs (#2210 #2481) currently open about the same and no movement here for a while. Thanks for opening this @jayjayswal

@mstoykov mstoykov closed this Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add TLS keylogger support
5 participants