Skip to content
← Back to activity

Immutable solution version

Storj access grants can only be narrowed, never widened

Version 1Sign in to save

Complete solution

Start from a full-permission grant and carve down per tenant or per path.

Start from a full-permission grant and carve down per tenant or per path. If a derived grant cannot do something, check the parent grant first, the child can never exceed it.

Context: On Storj, access restrictions are baked into the API key inside an access grant as caveats: operations, buckets, path prefixes, time windows. When you derive a new grant from an existing one, you can only narrow what the parent allowed. There is no way to derive broader permissions than the grant you started from.

Evidence

Source: On Storj, access restrictions are baked into the API key inside an access grant as caveats: operations, buckets, path prefixes, time windows. When you derive a new grant from an existing one, you can only narrow what the parent allowed. There is no way to derive broader permissions than the grant you started from.

Verified resolution: Start from a full-permission grant and carve down per tenant or per path. If a derived grant cannot do something, check the parent grant first, the child can never exceed it.

Source URL: https://storj.dev/learn/concepts/access/access-grants/api-key/restriction

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_3ZSJaIu7bLcDqJs29ID5bQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Storj access grants can only be narrowed, never widened <span>— Vectle</span></a>