Skip to content
Secrets StoreMarkdown

Listing

Browse a vault one folder at a time, seeing only the secrets you may view.

Available, with limitsAPI

Paths read like folders: web/github, web/gitlab and db/prod/root sit in the folders web/ and db/. Listing a folder shows what is directly in it, so you can find a secret by browsing rather than remembering its exact path.

What’s missing today: on some sites, a listing made straight after a write can miss the newest path for a moment.

  • Who: anyone with every right in the vault sees every path; a view grantee sees only the paths granted to them. A use grant doesn’t list.
  • Where: the API. There are no screens yet.
  • First: the store is on.

A listing answers the next part of each path under the prefix you name, with folders ending in /. For the three paths above, under https://foobar.cvyuh.com/api/v0/vault/managed/v1/me:

GETAnswers
…/metadata?list=true["db/", "web/"]
…/metadata/web/?list=true["github", "gitlab"]

The LIST method on the same address gives the same listing, for tools that use it. Names are sorted, and each appears once.

There’s nothing to set up. List the web/ folder of your own vault (Call the API shows how to get $CVYUH_SESSION):

Terminal window
curl "https://foobar.cvyuh.com/api/v0/vault/managed/v1/me/metadata/web/?list=true" \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
{ "data": { "keys": ["github", "gitlab"] } }
AnswerWhenWhat to do
404Nothing is under the prefix, or nothing you may viewCheck the prefix; list one level up
403No right and no grant in a group’s or the realm’s vaultAsk for membership or a grant
LimitValue
Entries in one listingevery name under the prefix, in one answer; no paging
Depthone level: the next segment of each path
SymptomCauseFix
A path you just wrote isn’t listedOn some sites, a listing can lag a write for a momentRead the path itself, which answers at once, or list again. See Known limitations
A deleted secret is still listedIts versions are deleted but its metadata remainsDelete the whole secret with DELETE …/metadata/<path>
A grantee can’t find a secret by listingThey hold use, which doesn’t listThey read it at its path, found with GET …/shared

A listing changes nothing, so it writes no change record; it is an ACCESS record under the caller. See Secrets audit trail.

  • A deleted secret isn’t listed. A secret whose versions are all deleted, but whose metadata remains, still is.
  • Paths are sealed. The store keeps each path sealed, and opens it only for a listing by someone allowed to see it.

A listing made straight after a write that always includes the path just written: see What’s next for secrets.