-
Notifications
You must be signed in to change notification settings - Fork 130
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
FileDepot improvements #184
Comments
I'm not sure how your command worked at all past the first iteration, as scepservers throws a bad request at me if the same DN is requested twice, even not in parallel. I can't replicate this on main using: seq 10 | parallel 'mkdir -p test{#} && cd test{#} && ../scepclient-linux-amd64 -private-key ./key.key -organization client{#} -server-url=http://localhost:2016/scep -challenge=secret' Granted, I'm on an NVMe drive, so it might be data races on slower disks causing this. I think that |
I guess command worked, because I run scep-server with What's interesting, is that, after running that command several times |
I did a PR to add a mutex for the depot to fix this issue. |
Thanks @korylprince ! My steps:
version: '2'
services:
scep-server:
build:
context: .
dockerfile: Dockerfile-scep
ports:
- 9000:8080
entrypoint: ['/bin/sh', '-c', "/usr/bin/scepserver -challenge=asd -capass=qwe -allowrenew=0"] and
With above setup I'm still getting |
I cannot replicate this issue with my branch. I even simulated very slow disk speeds and ran 100 concurrent requests, and everything worked correctly. Also note that the serial is stored in hex. So after running 100 concurrent requests, serial has the value 65 = 101 in decimal, since client certificates start at 2. |
Ok, so I tested your fix in target environment (AWS EKS) instead of locally, and it seems to work just fine. |
@korylprince your PR was merged, this issue can be closed. @groob Any chance for official release? |
This SCEP server is able to perform very well right out of the box.
However it has one serious flaw. FileDepot isn't very performant.
Doing quick test reveals some serious issues:
Run below command against scep-server (I was running mine in docker)
I ran this test 10 times, and results were varying between 3 and 6 occurrences of
badRequest
.I did receive responses very quickly, what is performance in this case, if there is an error rate of ~50%?
error line from server:
The text was updated successfully, but these errors were encountered: