News for hackers. Stuff that matters.
Re:Understanding Google Zanzibar and Why it Shines at Buildi... by dietr1ch on Sunday June 25, 2023 @10:38PM (#36475094)
Why does it need to be checked on a per-request level?

I'd expect you to be able to give short-lived capability tokens to clients that each machine can verify down the stack without making new rpcs. This would avoid the fan-out of all the internal services.

Is it just to prevent abuse?

Re:Understanding Google Zanzibar and Why it Shines at Buildi... by AlphaSite on Monday June 26, 2023 @12:15AM (#36475676)
Does the token identify every resource you have access to? I think is for multi tenant applications with fine grained access control.
Re:Understanding Google Zanzibar and Why it Shines at Buildi... by paulddraper on Monday June 26, 2023 @12:34AM (#36475757)
"Oh, you just [insert complex solution here]"

You need one capability token per principal and resource and perhaps access right.

Re:Understanding Google Zanzibar and Why it Shines at Buildi... by akajla on Monday June 26, 2023 @12:35AM (#36475769)
You can encode capabilities/permissions as scopes in distributed tokens (e.g. OAuth) but this can start to break down if you have very granular, fine-grained permissions (e.g. user:1 has 'editor' access to 1000s of documents/objects). This is similar to the problem that Carta ran into while building out their permissions[1].

In addition, yes - validating permissions on each request makes it so that you can revoke privilege(s) with immediate effect without needing a token to be invalidated.

[1] https://medium.com/building-carta/authz-cartas-highly-scalab...

Re:Understanding Google Zanzibar and Why it Shines at Buildi... by smarx007 on Monday June 26, 2023 @05:23AM (#36477530)
I think it's best to refer to the Zanzibar paper: https://www.usenix.org/system/files/atc19-pang.pdf
Re:Understanding Google Zanzibar and Why it Shines at Buildi... by zcw100 on Monday June 26, 2023 @06:53AM (#36478085)
... or the annotated one from the Authzed folks https://authzed.com/zanzibar
Re:Understanding Google Zanzibar and Why it Shines at Buildi... by smarx007 on Monday June 26, 2023 @08:18AM (#36478744)
Wow, I am also impressed by the tech behind! https://github.com/authzed/zanzibar-annotated
Re:Understanding Google Zanzibar and Why it Shines at Buildi... by dietr1ch on Monday June 26, 2023 @02:48PM (#36484027)
That's neat! All papers should allow this discussion on them.

BTW, didn't Google released something like it too early?