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

feat: hasher load testing CLI #961

Merged
merged 38 commits into from
Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e75f647
feat: hasher load testing CLI
zepatrik Jan 5, 2021
5fad670
Merge branch 'master' into improve-argon2-value-cli
zepatrik Jan 5, 2021
bd50852
chore: fix linter issues
zepatrik Jan 6, 2021
13ca1bf
chore: format
zepatrik Jan 6, 2021
ccfa673
u
zepatrik Jan 7, 2021
e73a095
feat: finish load test and calibrate commands
zepatrik Jan 12, 2021
2b33cdd
Merge branch 'master' into improve-argon2-value-cli
zepatrik Jan 12, 2021
6d45f43
fix: finish merging and adopt context aware config
zepatrik Jan 12, 2021
3fdcdb2
fix: linter issues
zepatrik Jan 12, 2021
2e6898f
autogen(docs): generate cli docs
aeneasr Jan 12, 2021
4efadf4
fix: last minor bugs
zepatrik Jan 13, 2021
47f2b72
Merge remote-tracking branch 'origin/improve-argon2-value-cli' into i…
zepatrik Jan 13, 2021
d8de3cf
Merge branch 'master' into improve-argon2-value-cli
zepatrik Jan 13, 2021
0d58077
autogen(docs): generate cli docs
aeneasr Jan 13, 2021
96b6cf5
chore: remove punctiation
aeneasr Jan 13, 2021
753b660
autogen(docs): generate cli docs
aeneasr Jan 13, 2021
7f68698
docs: add descriptions to the loadtest command
zepatrik Jan 13, 2021
e20f64f
Merge remote-tracking branch 'origin/improve-argon2-value-cli' into i…
zepatrik Jan 13, 2021
8b0842b
Merge branch 'master' into improve-argon2-value-cli
zepatrik Jan 13, 2021
a0ca640
autogen(docs): generate cli docs
aeneasr Jan 13, 2021
b7aa722
docs: improve loadtest output
zepatrik Jan 13, 2021
5edbae6
Merge remote-tracking branch 'origin/improve-argon2-value-cli' into i…
zepatrik Jan 13, 2021
0c76b89
Merge branch 'master' into improve-argon2-value-cli
zepatrik Jan 13, 2021
45df493
autogen(openapi): Regenerate swagger spec and internal client
aeneasr Jan 13, 2021
844fba1
feat: use bytesize type for memory
zepatrik Jan 13, 2021
ccb3b36
Merge remote-tracking branch 'origin/improve-argon2-value-cli' into i…
zepatrik Jan 13, 2021
179b3ec
Merge branch 'master' into improve-argon2-value-cli
zepatrik Jan 14, 2021
9a2661f
fix: add httpclient go.mod
zepatrik Jan 14, 2021
c61a4d9
fix: merging issues
zepatrik Jan 14, 2021
c584a67
autogen(docs): generate cli docs
aeneasr Jan 14, 2021
ec955f9
fix: merging issues
zepatrik Jan 14, 2021
bc17f6e
Merge remote-tracking branch 'origin/improve-argon2-value-cli' into i…
zepatrik Jan 14, 2021
a78538e
fix: last small issues
zepatrik Jan 14, 2021
4ac1fe6
fix: e2e test config
zepatrik Jan 14, 2021
9c6296e
autogen(openapi): Regenerate swagger spec and internal client
aeneasr Jan 14, 2021
bef075a
docs: update all other config values for argon2.memory
zepatrik Jan 14, 2021
b1df937
Merge remote-tracking branch 'origin/improve-argon2-value-cli' into i…
zepatrik Jan 14, 2021
36d05fd
autogen(openapi): Regenerate swagger spec and internal client
aeneasr Jan 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .schema/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2685,4 +2685,4 @@
},
"x-forwarded-proto": "string",
"x-request-id": "string"
}
}
35 changes: 29 additions & 6 deletions .schema/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1077,24 +1077,47 @@
"type": "object",
"properties": {
"memory": {
"type": "integer",
"minimum": 16384
"type": "string",
"pattern": "^[0-9]+(B|KB|MB|GB|TB|PB|EB)",
"default": "128MB"
},
"iterations": {
"type": "integer",
"minimum": 1
"minimum": 1,
"default": 1
},
"parallelism": {
"type": "integer",
"minimum": 1
"minimum": 1,
"description": "Number of parallel workers, defaults to 2*runtime.NumCPU()."
},
"salt_length": {
"type": "integer",
"minimum": 16
"minimum": 16,
"default": 16
},
"key_length": {
zepatrik marked this conversation as resolved.
Show resolved Hide resolved
"type": "integer",
"minimum": 16
"minimum": 16,
"default": 32
},
"expected_duration": {
"description": "The time a hashing operation (~login latency) should take.",
"type": "string",
"pattern": "^[0-9]+(ns|us|ms|s|m|h)$",
"default": "500ms"
},
"expected_deviation": {
"description": "The standard deviation expected for hashing operations. If this value is exceeded you will be warned in the logs to adjust the parameters.",
"type": "string",
"pattern": "^[0-9]+(ns|us|ms|s|m|h)$",
"default": "500ms"
zepatrik marked this conversation as resolved.
Show resolved Hide resolved
},
"dedicated_memory": {
"description": "The memory dedicated for Kratos. As password hashing is very resource intense, Kratos will monitor the memory consumption and warn about high values.",
"type": "string",
"pattern": "^[0-9]+(B|KB|MB|GB|TB|PB|EB)",
"default": "1GB"
}
},
"additionalProperties": false
Expand Down
Loading