-
Notifications
You must be signed in to change notification settings - Fork 293
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
Introduce configurable pbkdf2 iteration limit #1471
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this be configurable in the workerd
configuration? Want to make sure whatever limit ends up being set in production is replicated locally, so tests/development fail early rather than when users deploy their Workers.
Not currently. That's a good idea tho. The |
36ceaae
to
974e3cb
Compare
974e3cb
to
6980ce0
Compare
Updated to:
|
804c596
to
c5b4190
Compare
7f5bd89
to
3d9b90b
Compare
f321bb2
to
b5bbf5a
Compare
Introduces the ability for workerd embedders to configure the max iteration limit for KDFs. Removes the limit for workerd by default. Keeps the current limit of 100,000 when not configured.
b5bbf5a
to
12bc98a
Compare
@@ -1251,6 +1255,12 @@ Worker::Script::~Script() noexcept(false) { | |||
impl = nullptr; | |||
} | |||
|
|||
const Worker::Isolate& Worker::Isolate::from(jsg::Lock& js) { | |||
auto ptr = js.v8Isolate->GetData(3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should define an enum somewhere of our embedder data indices so we don't accidentally reuse noe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Already had a note to introduce that in a separate PR
Introduces the ability for workerd embedders to configure the max iteration limit for KDFs. Removes the limit for workerd by default. Keeps the current limit of 100,000 when not configured.
Refs: #1346