Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Zanzibar consistency tokens: when an authorization read must wait

Zanzibar consistency tokens: when an authorization read must wait Authorization answers are data. They depend on relation tuples and other policy state that can change while a request is in flight. Google's Zanzibar design uses consistency tokens, often called zookies, to connect a content update with a later permission check. The token is not a credential. It is a statement about how fresh the…

In Google's Zanzibar design, consistency tokens, or "zookies," are used to ensure that authorization reads are fresh and reflect the most recent policy state. When a user's access to a document changes, the token represents the freshness needed for the authorization service to observe the related relation change. Applications must decide where this guarantee is necessary, as a dashboard can afford to lag briefly, while a document viewer must not reveal a file after its sharing record changed.

To implement this, a consistency token should be obtained after a policy write or through the content-change ACL check and passed with the authorization request. Ordinary reads may accept an older or absent token if the product has explicitly accepted the stale window. The authorization service should treat tokens as part of a request's consistency contract, not as evidence of an authorization decision.

Brief written by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Show DEV: An Open 20-Asset Prompt Planner & Validation Toolkit for MAGI-2 Video Generation

I wanted to be able to reopen a video job and see exactly which picture defined a character, which clip supplied a camera move, and when a sound was supposed to land.

  • Hugging Face Prompt Studio is a static browser planner for video generation
  • Planner supports 20 references across images, videos, and audio
  • Validator checks for malformed input, budget overruns, and type validity

More from Friday 27 November →