-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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(auth): Refine keys api #2438
Conversation
25b5877
to
627d4c8
Compare
627d4c8
to
b6eccc8
Compare
b6eccc8
to
fc8c927
Compare
@MarinPostma I can remove DUMPS_GET action in this PR if you want, or do you prefer to do it in another one? |
No it's ok we'll do it in another or to keep things tidy |
We need to handle it in dumps |
Ok so let's review! |
Hey @mdubus, Now that we changed the API key system, we cannot use the master key as the key provided to the mini-dashboard, instead, we should ask the user to provide the admin key and not the search key as the dashboard needs to access the list of indexes. Could you please change the text message in the modal and ask for help from @ManyTheFish to find a good name and text? |
meilisearch-auth/src/store.rs
Outdated
pub fn generate_key(uid: &[u8], master_key: &[u8]) -> String { | ||
let key = [uid, master_key].concat(); | ||
let sha = Sha256::digest(&key); | ||
format!("{:x}", sha) | ||
} |
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.
So you decided not to use specialized KDF?
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.
moved in #2449
c058465
to
7652295
Compare
@MarinPostma @Kerollmops, could you re-review my PR please? |
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.
I assume that you're improving the key derivation in #2449?
bors merge |
🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
bors merge |
Build failed: |
bors merge |
waiting for #2410 and #2444 to be merged.
fix #2369