-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Pass client certificates as CLI flags #2603
Comments
k6 doesn't have a This doesn't seem like a bug in k6, so I'll close the issue. In the future, if you want to ask questions, please do it in the community forum at https://community.k6.io/ |
@na-- just to also provide more context here. There is a post in the community forum. I guess the purpose of that issue is to request the possibility of configuring certificates via the flags like |
Ah, I see, then this feature request was definitely both mis-classified as a |
@hem-source, I skimmed the forum thread, but I don't get why you need to pass TLS certificates as CLI flags... 😕 Can you please explain why |
Potentially relevant documentation issue grafana/k6-docs#616 |
the main issue is , when were we run performance test for process API our test result showed failed . PFB error . where as same pipeline is used to run experience API all results shows pass. Process API: Experience API: we are not able to identify why different behaviour/out put we are getting as both is using same script.? So we are suspecting that for process API we need certificate to be loaded before k6 run. So in my GIT script i have made below changes script: So is this TLS auth option is correctly defined? |
SO in addition to tlsauth option defined, how would i call it in k6 run? |
@hem-source the issues of this repository are for the bugs, feature requests, and things like that. For support, please use the community forum. The reason why I mentioned the issue is that, as you mentioned that you would like to load the certificate with the flags:
And since right now there is no such functionality in the k6, you can make a feature request. But it should be appropriately specified. Depending on different factors (community needs, k6, or maybe some contributors' capacity), the feature request can be prioritized and implemented in further versions of the k6. |
@hem-source, you should not use |
There is no plan to add the client certificate flags into k6 for now. Closing as not planned. |
Brief summary
I have my certificate present on path
I want to load this certificate with performing k6 run
k6 run --summary-export=load-performance.json $file --config=src/test/performance/config.json.
How do i load this certificate ?
k6 run --summary-export=load-performance.json --ssl-client-cert mtls.pem --ssl-client-key mtls.key $file --config=/config.json;
Is it possible to use --ssl-cleint-cert such type to call certificate?
Also the main issue is , when were we run performance test for process API our test result showed failed . PFB error . where as same pipeline is used to run experience API all results shows pass.
Process API:
✗ Status code is 200
↳ 0% — ✓ 0 / ✗ 12002
checks.....................: 0.00% ✓ 0 ✗ 12002
http_req_failed............: 100.00% ✓ 12002 ✗ 0
Experience API:
http_req_failed................: 0.00% ✓ 0 ✗ 18000
we are not able to identify why different behaviour/out put we are getting as both is using same script.?
k6 version
k6
OS
windos
Docker version and image (if applicable)
No response
Steps to reproduce the problem
NA
Expected behaviour
same script should pass all performance test successful for process API as well
Actual behaviour
Performance test is failing for process API
The text was updated successfully, but these errors were encountered: