Replies: 1 comment
-
|
nvm, i am stupid |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know it sounds stupid and it propably is, but, given that every user that has his own key
u:a:<userid>. The type could be a hashtable that is indexed in with the api key (the user id is known to user an posseses no security risk in disclosing), but that would mean i would literally have to store something just for the return value not not be nil and the auth to pass, for now i have nothing to store there as all operations eventually write to db and so there is no use in storing any of the permissions.Would it be a bad idea to use a bloom filter that contains all the viable api keys for such user instead of a hashtable?
Beta Was this translation helpful? Give feedback.
All reactions