The access grant depends on options what you give to it. If the sharing option is always the same - the serialized access grant will be the same too.
For example
uplink mb sj://test
Bucket test created
uplink cp orders.db sj://test/
149.92 MiB / 149.92 MiB [-------------------------------------------------------------------------] 100.00% 2.96 MiB p/s
Created sj://test//orders.db
uplink share sj://test
Sharing access to satellite 11QdXggTXA43GhnnUoVZMVvxVdyqFvR3UhXvhLRL22EDN8b7fF@:10000
=========== ACCESS RESTRICTIONS ==========================================================
Download : Allowed
Upload : Disallowed
Lists : Allowed
Deletes : Disallowed
NotBefore : No restriction
NotAfter : No restriction
Paths : sj://test (entire bucket)
=========== SERIALIZED ACCESS WITH THE ABOVE RESTRICTIONS TO SHARE WITH OTHERS ===========
Access : 1twrhhYp232QWbfAuoXnAAXXotFJSZrRLFDogNvrkWTe3F4XXWkFm7Jm55dKxwyX8orGMN5FpJpbMKYM9qZnMGPjxoxPRUDYT8viEgR5YEzk4PLHZYrcaqcorwx8dtLEAM6qG7g4wjiGeALvN2zbpxHdVTz6D2GckUGxPZAW7KaFwmMHtHKo5H4yYv4XJuroPvMBibPVJAv3nTpssdRncScou5FvtvFogXZj8BFtkxZnAXRapk8asVsf4GgRZ64e6CFWape2qCLmLAyP
=========== BROWSER URL ==================================================================
URL : https://link.tardigradeshare.io/1twrhhYp232QWbfAuoXnAAXXotFJSZrRLFDogNvrkWTe3F4XXWkFm7Jm55dKxwyX8orGMN5FpJpbMKYM9qZnMGPjxoxPRUDYT8viEgR5YEzk4PLHZYrcaqcorwx8dtLEAM6qG7g4wjiGeALvN2zbpxHdVTz6D2GckUGxPZAW7KaFwmMHtHKo5H4yYv4XJuroPvMBibPVJAv3nTpssdRncScou5FvtvFogXZj8BFtkxZnAXRapk8asVsf4GgRZ64e6CFWape2qCLmLAyP/test/
uplink share sj://test/orders.db
Sharing access to satellite 11QdXggTXA43GhnnUoVZMVvxVdyqFvR3UhXvhLRL22EDN8b7fF@:10000
=========== ACCESS RESTRICTIONS ==========================================================
Download : Allowed
Upload : Disallowed
Lists : Allowed
Deletes : Disallowed
NotBefore : No restriction
NotAfter : No restriction
Paths : sj://test/orders.db
=========== SERIALIZED ACCESS WITH THE ABOVE RESTRICTIONS TO SHARE WITH OTHERS ===========
Access : 12MysVccS73zpk55VwyeuhogQfYzqFKXGjRmGFtC4JBe3LMZTdL2tkRTTGMQHHzzF4SnsGAyXXYtwbGnU9GHG1zDxgu3UA6gL9R5ARueYimDi64XubRc5RU8wjAidmUc2Jd4P3crvw9anLc8LrmcMUoGi3r2WdNe1jwZCKiv5S5hKHMMLWcWHJn8aVUqanGQU2k82NoGnYn4wraE9qwFtmFTwwafVbru2FD9EPFLZCwc8yMGvYRANnqPvzjV5jSmC2n3sikZLBkucCuDu12KjQ3i6v2VaYnPNaooGjFeKJ6UHD7sxCJujgb39kgmJj37Jxjr7GUGdbUncmnb3pUqfQaXGAFuKPaM2aBY7NsyaCtA3riwnpLHEmqw3F9toBxjiYxaCy8VHnzMvMndZxZQ
=========== BROWSER URL ==================================================================
URL : https://link.tardigradeshare.io/12MysVccS73zpk55VwyeuhogQfYzqFKXGjRmGFtC4JBe3LMZTdL2tkRTTGMQHHzzF4SnsGAyXXYtwbGnU9GHG1zDxgu3UA6gL9R5ARueYimDi64XubRc5RU8wjAidmUc2Jd4P3crvw9anLc8LrmcMUoGi3r2WdNe1jwZCKiv5S5hKHMMLWcWHJn8aVUqanGQU2k82NoGnYn4wraE9qwFtmFTwwafVbru2FD9EPFLZCwc8yMGvYRANnqPvzjV5jSmC2n3sikZLBkucCuDu12KjQ3i6v2VaYnPNaooGjFeKJ6UHD7sxCJujgb39kgmJj37Jxjr7GUGdbUncmnb3pUqfQaXGAFuKPaM2aBY7NsyaCtA3riwnpLHEmqw3F9toBxjiYxaCy8VHnzMvMndZxZQ/test/orders.db
As you can see - the serialized access is different for the bucket and object.
Let’s move further
uplink share --not-after +1h sj://test/orders.db
Sharing access to satellite 11QdXggTXA43GhnnUoVZMVvxVdyqFvR3UhXvhLRL22EDN8b7fF@:10000
=========== ACCESS RESTRICTIONS ==========================================================
Download : Allowed
Upload : Disallowed
Lists : Allowed
Deletes : Disallowed
NotBefore : No restriction
NotAfter : 2020-08-25 06:21:28
Paths : sj://test/orders.db
=========== SERIALIZED ACCESS WITH THE ABOVE RESTRICTIONS TO SHARE WITH OTHERS ===========
Access : 1AkfbVy3UGffi8ennLBpqeCeCpcWqEEbu2KWTC5kYd4qWUuuHR2Zw66pfReNjoD7Fe3mFd46gEgCbyuEVdcXdNhAiCnDovJczAky4pfruaHjDrjrQmnZESAv7QgAxMXnWHhYn1hrFBbmWXeJGLUxMtpA1DbYxe4842MnErq9eFkhPh3xWxwVvPGBFMKvRUcYVzg4nv1UkdB65LxvmjpB8srPkfRLD56am2zsUpeBMYGnnHr1tGqnmrjG2DPvpqvH1phMKHpyJE3KGn1ijVmctGD3sMTQ9qZLmdkAKpfUJBiegHSVtJTKFCNLZjzJmLht6nVWg3dQeSgXMtYsWWj7FU36epXyPW6EjYFafYMW3drpLYMnXKHia577ehxb47SMtya7sXKC2FPCWg8e7feeS1fkb3UBHma422vx1bH9
=========== BROWSER URL ==================================================================
URL : https://link.tardigradeshare.io/1AkfbVy3UGffi8ennLBpqeCeCpcWqEEbu2KWTC5kYd4qWUuuHR2Zw66pfReNjoD7Fe3mFd46gEgCbyuEVdcXdNhAiCnDovJczAky4pfruaHjDrjrQmnZESAv7QgAxMXnWHhYn1hrFBbmWXeJGLUxMtpA1DbYxe4842MnErq9eFkhPh3xWxwVvPGBFMKvRUcYVzg4nv1UkdB65LxvmjpB8srPkfRLD56am2zsUpeBMYGnnHr1tGqnmrjG2DPvpqvH1phMKHpyJE3KGn1ijVmctGD3sMTQ9qZLmdkAKpfUJBiegHSVtJTKFCNLZjzJmLht6nVWg3dQeSgXMtYsWWj7FU36epXyPW6EjYFafYMW3drpLYMnXKHia577ehxb47SMtya7sXKC2FPCWg8e7feeS1fkb3UBHma422vx1bH9/test/orders.db
With an option --not-after +1h
the serialized access is different
Another example
uplink share --readonly=false sj://test/orders.db
Sharing access to satellite 11QdXggTXA43GhnnUoVZMVvxVdyqFvR3UhXvhLRL22EDN8b7fF@:10000
=========== ACCESS RESTRICTIONS ==========================================================
Download : Allowed
Upload : Allowed
Lists : Allowed
Deletes : Allowed
NotBefore : No restriction
NotAfter : No restriction
Paths : sj://test/orders.db
=========== SERIALIZED ACCESS WITH THE ABOVE RESTRICTIONS TO SHARE WITH OTHERS ===========
Access : 13jc5LcbmFvVZzXhaMe5hcsoazkCRJrkeURX3SBvKMmzCfMkY3AgykB8KgGx9oaMkrB9p9gU2XcJwh1EopZTu3sbkh2PyAUAknirnzyN4nbH74RAQm6p2NrCiP4rjieTyTYVjuDuBfydXtGEp9qCh3t47wV8sNSd57GTSXrf2HLmhA6HfLpUw7dmnYH3q9gbES68J1myKWMec6nBXSVTufdeL5p6faJV3CvpmrpeikCfW3e7ugfgg5JhpAr8NWBZvNhrY5i9NjxgGcC3pjULUPzUFYEWouAg4NWGnPoGzcyYSuZvAAH6Snm7WcesFJxPnvhUMh2eriDKwvXKUwE5zFJ7b3Ex2zGEP5BcG3MyudPK84yixY8iA7m5bBxJn3yk7K5uPqVfGzTz8
Another example with subpath
uplink cp orders.db sj://test/subpath/
149.92 MiB / 149.92 MiB [-------------------------------------------------------------------------] 100.00% 2.46 MiB p/s
Created sj://test/subpath//orders.db
uplink share sj://test/subpath/orders.db
Sharing access to satellite 11QdXggTXA43GhnnUoVZMVvxVdyqFvR3UhXvhLRL22EDN8b7fF@:10000
=========== ACCESS RESTRICTIONS ==========================================================
Download : Allowed
Upload : Disallowed
Lists : Allowed
Deletes : Disallowed
NotBefore : No restriction
NotAfter : No restriction
Paths : sj://test/subpath/orders.db
=========== SERIALIZED ACCESS WITH THE ABOVE RESTRICTIONS TO SHARE WITH OTHERS ===========
Access : 1KMPB38hRtDnixJcrXKUMAiohtcWa9EE98deJCFsUnTkHoqPRsN37R5rFnZfVV2qn7of2DuMyXChBB669L4q4gXa8AvnDziRkZJRcr3QYdY2ic9KoLC1Wz2D9v3vbQ6C8noVgk9naG9iRd2jdUaduExoNZeETyiJyyaNpLnoBkMHhRv8FGgoN8EvkECAGwzgr7t97jCpuL68JPPwA1jbZJH2SDyZtpETZAH1xVUmDLyTaVDnntdj5EYUFDgsg1usDPLiTHtSMWvFZRb8gNzK1QPX3fZFFSwMTRc8cTLRuDaujGBQsHcRmzbrM3EzADmhveRvL6TqF1pgPwBsMLzKhNXG29md753FTq4vH46TBS7Q87tbSpqeXXYW18hngae7TNm4yFSgne3nzvMNtQP5QFVFYgxBTWQ79EEyEYKwNBNkv78Y7Psxo1QSxoP8EdBsENPVvfggZndPLEUF3vzMSAbmNff7Ns5w1a4TS57AgqhwL9CDap8vsypvaAah1xYT9RTnL5gPmW6EF21KQ
=========== BROWSER URL ==================================================================
URL : https://link.tardigradeshare.io/1KMPB38hRtDnixJcrXKUMAiohtcWa9EE98deJCFsUnTkHoqPRsN37R5rFnZfVV2qn7of2DuMyXChBB669L4q4gXa8AvnDziRkZJRcr3QYdY2ic9KoLC1Wz2D9v3vbQ6C8noVgk9naG9iRd2jdUaduExoNZeETyiJyyaNpLnoBkMHhRv8FGgoN8EvkECAGwzgr7t97jCpuL68JPPwA1jbZJH2SDyZtpETZAH1xVUmDLyTaVDnntdj5EYUFDgsg1usDPLiTHtSMWvFZRb8gNzK1QPX3fZFFSwMTRc8cTLRuDaujGBQsHcRmzbrM3EzADmhveRvL6TqF1pgPwBsMLzKhNXG29md753FTq4vH46TBS7Q87tbSpqeXXYW18hngae7TNm4yFSgne3nzvMNtQP5QFVFYgxBTWQ79EEyEYKwNBNkv78Y7Psxo1QSxoP8EdBsENPVvfggZndPLEUF3vzMSAbmNff7Ns5w1a4TS57AgqhwL9CDap8vsypvaAah1xYT9RTnL5gPmW6EF21KQ/test/subpath%2Forders.db
So, the access grant is depends on grant options and path to the object. You can see them
uplink share --help
Shares restricted access to objects.
Usage:
/bin/uplink share [ALLOWED_PATH_PREFIX]... [flags]
Flags:
--access string the serialized access, or name of the access to use
--disallow-deletes if true, disallow deletes. see also readonly
--disallow-lists if true, disallow lists
--disallow-reads if true, disallow reads
--disallow-writes if true, disallow writes. see also readonly
--export-to string path to export the shared access to
-h, --help help for share
--not-after string disallow access after this time (e.g. '+2h', '2020-01-02T15:01:01-01:00')
--not-before string disallow access before this time (e.g. '+2h', '2020-01-02T15:01:01-01:00')
--readonly implies disallow_writes and disallow_deletes. you must specify --readonly=false if you don't want this (default true)
--writeonly implies disallow_reads and disallow_lists
Global Flags:
--advanced if used in with -h, print advanced flags help
--config-dir string main directory for uplink configuration (default "/root/.local/share/storj/uplink")
Could you elaborate what you want to differentiate?