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.
Before you begin
Section titled “Before you begin”- Who: anyone with every right in the vault sees every path; a
viewgrantee sees only the paths granted to them. Ausegrant doesn’t list. - Where: the API. There are no screens yet.
- First: the store is on.
How it works
Section titled “How it works”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:
GET | Answers |
|---|---|
…/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.
Set it up
Section titled “Set it up”There’s nothing to set up. List the web/ folder of your own vault (Call the API shows how to get
$CVYUH_SESSION):
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"] } }When it fails
Section titled “When it fails”| Answer | When | What to do |
|---|---|---|
404 | Nothing is under the prefix, or nothing you may view | Check the prefix; list one level up |
403 | No right and no grant in a group’s or the realm’s vault | Ask for membership or a grant |
Limits and defaults
Section titled “Limits and defaults”| Limit | Value |
|---|---|
| Entries in one listing | every name under the prefix, in one answer; no paging |
| Depth | one level: the next segment of each path |
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| A path you just wrote isn’t listed | On some sites, a listing can lag a write for a moment | Read the path itself, which answers at once, or list again. See Known limitations |
| A deleted secret is still listed | Its versions are deleted but its metadata remains | Delete the whole secret with DELETE …/metadata/<path> |
| A grantee can’t find a secret by listing | They hold use, which doesn’t list | They read it at its path, found with GET …/shared |
Audit record
Section titled “Audit record”A listing changes nothing, so it writes no change record; it is an ACCESS record under the caller. See
Secrets audit trail.
Good to know
Section titled “Good to know”- 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.
Coming next
Section titled “Coming next”A listing made straight after a write that always includes the path just written: see What’s next for secrets.
Related
Section titled “Related”- Organize and find secrets: folders, listing and subkeys.
- Grants: what a grantee sees when they list your vault.