Jacob | Pages
02/18/2021, 11:06 PMJacob | Pages
02/18/2021, 11:10 PMkenton
02/19/2021, 2:41 AMandreev_io
02/19/2021, 5:43 AMworkers.api.error.not_entitled
error when trying to deploy with my account. Can I do anything about this? 😔kenton
02/19/2021, 3:42 PMrita
02/19/2021, 3:54 PMandreev_io
02/19/2021, 4:17 PMjed
02/20/2021, 1:23 PMidFromName
function is... given the result id, is it possible for someone to guess the input string? ie, can i, for example, use it as i would an HMAC function?jed
02/20/2021, 2:06 PM/
(2) i call crypto.getRandomValues
to generate a token, store it in their cookie
(3) i call idFromName
with (2) to redirect the user to a url like /${id}
(4) i call idFromString
to fetch the DO based on the url id from (3)
(5) user shares the url with other users, who connect
(6) i know which user 'owns' the DO because idFromName(token)
=== idFromString(id)
.oleksandr
02/20/2021, 9:23 PMjed
02/20/2021, 9:50 PMkenton
02/21/2021, 5:45 PMnewUniqueId()
rather than generate random bytes and pass it to idFromName()
. Note that the IDs it produces are unguessable, with at least 128 bits of cryptographic entropy.kenton
02/21/2021, 5:46 PMidFromName()
derives the ID from a secure hash of the input, so it is not reversible.jed
02/21/2021, 11:50 PMnewUniqueId
as step one, but using it outside of stub fetching felt like an "abusage").eidam | SuperSaaS
02/22/2021, 9:18 AMkenton
02/22/2021, 3:11 PMidFromName()
, the name is not stored anywhere in our system. I'd like to add an option someday where you can opt out of being able to list the object IDs in return for a guarantee that there's no way for anyone to list them, and no way to access an object's contents without the ID (i.e. it becomes an encryption key for the specific object)... but we don't have that yet.kenton
02/22/2021, 3:12 PMjed
02/22/2021, 3:13 PMsetTimeout
of sorts? that's a cool idea.eidam | SuperSaaS
02/22/2021, 3:21 PMkenton
02/22/2021, 3:22 PMWallslide
02/22/2021, 10:30 PMWallslide
02/22/2021, 10:32 PMnilslice
02/22/2021, 11:52 PMnilslice
02/22/2021, 11:53 PMWallslide
02/23/2021, 12:28 AMWallslide
02/23/2021, 12:28 AMnilslice
02/23/2021, 12:30 AMjed
02/23/2021, 11:28 AMstate
object passed to the constructor. see: https://discord.com/channels/595317990191398933/802187271067140107/807309699544121384)kenton
02/23/2021, 10:49 PMkenton
02/23/2021, 10:49 PM