-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Remove pepper, read secret from file and minimise the number of secrets #1844
Conversation
Passing run #1865 ↗︎
Details:
Review all test suite changes for PR #1844 ↗︎ |
ac568ae
to
c05231d
Compare
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.
Review ready!
c05231d
to
29360d1
Compare
} | ||
|
||
return Boom.internal('internal error') | ||
}) | ||
|
||
route.GET('/zkpp/{contract}/auth_hash', { | ||
route.GET('/zkpp/{contractID}/auth_hash', { |
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.
Nice job on renaming these from contract
to contractID
👍
// is not implemented. | ||
// b. Alternatively, migration can be done without migrating password salt | ||
// records. This requires user interaction to create new salt records | ||
// on the new server. |
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.
Really well written and clear comment 👏, well done, thanks @corrideat!
backend/zkppSalt.js
Outdated
const recordSecret = IkmPromise.then(IKM => Buffer.from(hashStringArray('private/recordSecret', IKM)).toString('base64')) | ||
// corresponds to the key for the keyed Hash function in "Log in / session establishment" | ||
const challengeSecret = 'secret' // TODO: generate randomly and store in DB under private prefix | ||
const challengeSecret = IkmPromise.then(IKM => Buffer.from(hashStringArray('private/challengeSecret', IKM)).toString('base64')) | ||
// corresponds to a component of s in Step 3 of "Salt registration" | ||
const registrationSecret = 'secret' // TODO: generate randomly and store in DB under private prefix | ||
const registrationSecret = IkmPromise.then(IKM => Buffer.from(hashStringArray('private/registrationSecret', IKM)).toString('base64')) |
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.
These values can be set in a initZkpp()
function that gets called from database.js
(see bottom of that file)
29360d1
to
15e17a2
Compare
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.
Great work!
No description provided.