blobber icon indicating copy to clipboard operation
blobber copied to clipboard

toggle permission to `upload`,`delete`, `update`, `move`, `copy` and `rename`.

Open Sriep opened this issue 3 years ago • 4 comments

There is a new toggle to allow upload,delete, update, move, copy and rename.

Boolean fields controlling this will be added to the allocation object blobber gets from 0cahin. Each of upload,delete, update, move, copy and rename should only be permitted if the corresponding field in the allocation object permits it.

This change is blocked by https://github.com/0chain/0chain/issues/828.

Sriep avatar Dec 27 '21 13:12 Sriep

@Sriep Can you please explain this a bit more with some appropriate links?

lpoli avatar Jun 24 '22 16:06 lpoli

Requires https://github.com/0chain/0chain/pull/1553 to be merged.

lawRathod avatar Aug 22 '22 06:08 lawRathod

We should send the transaction type, upload, delete, update, move, copy or rename to 0chain when committing the transaction. So we need to add this to the write marker.

Sriep avatar Aug 22 '22 09:08 Sriep

We just need 3 different states. a) default - as in mutable - all crud operations are allowed b) upload-only, so no updates, rename, copy, move, delete c) immutable - no cruds are allowed except for reads @Sriep @lpoli @cnlangzi

guruhubb avatar Sep 03 '22 06:09 guruhubb