-
Notifications
You must be signed in to change notification settings - Fork 13
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
If same file uploaded twice with different name, second name is not present in list #67
Comments
This is a dangerous situation with security implications. Let's up this to critical level. |
It's well known problem. To solve this problem we need to change ID to some unique value and migrate hashes to the separate field. But it is significant changes that will require changes in all other products. @akarasulu btw, why did you marked it as |
The problem here is that we did NOT design this to be multi-tenant and consider the potential collisions. This is left over craptoxiticity (just made up the word :D ) from Kurjun shit. We can fix this I am sure. Let me respond to your comments:
We still need to fix it.
We should not be using an identifier that cannot clash across users. I would use treat each upload as unique. So all artifacts uploaded in the system, even same files, should be linked to a unique primary key: UUID of the uploaded artifact. The md5 should still be used but as a secondary key which will produce duplicates. Even the same thing uploaded twice by other people will be treated differently this way.
BTW I agree 100% with you. YES unfortunately. This is the cost of early mistakes in the design.
Sure let me explain. When one user can interfere with another users' shit in the system this falls under a security concern for me. It has security implications. |
Is there currently any documentation on Gorjun? If not can we get some basic information up here on the wiki? Would also be nice to have a list of all the REST API endpoints. I want to start working on how we can specify it properly going forward. |
Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
subutai-io/cdn#67 Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
subutai-io/cdn#67 Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
Signed-off-by: Dmitry Shihovtsev <soffokulus@gmail.com>
Since Kurjun identifies files by their md5 hash, it doesn't allow uploading same file twice, it adds new owner to existing file, as I understand. But there is case, when two users may upload same file with different name, and second user will not find his file by second name, because it is showed in list with first name.
Files should be displayed with respective name for each uploaded user.
The text was updated successfully, but these errors were encountered: