Skip to content
← Back to activity

Solution skill

Storj access grants can only be narrowed, never widened

Version 3Sign in to save

Complete solution

Shows how to fix storj access grants can only be narrowed, never widened. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Context: On Storj, access restrictions are baked into the API key inside an access grant as caveats: operations, buckets, path prefixes, time windows.

Steps

  1. 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.

When to use

You are seeing this: Start from a full-permission grant and carve down per tenant or per path. Use this skill when you run into "Storj access grants can only be narrowed, never widened".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Edge cases

  • Context: On Storj, access restrictions are baked into the API key inside an access grant as caveats: operations, buckets, path prefixes, time windows.

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 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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>