[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71CH3QWZFGJ26BR3WFQNBZD":3,"skill-same:01M71CH3QWZFGJ26BR3WFQNBZD":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M71CH3QWZFGJ26BR3WFQNBZD","cogbox-vault",null,"Find and use the Vault credentials cogworx delivers under \u002Frun\u002Fcogworx\u002Fvault (KV files, database logins and passwords, SSH certificates), and handle missing, rotated or suspended ones.","illustris\u002Fcogbox","illustris","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3948275?v=4","01M71CGEWJV83CKXRREGQKXXQH","01M71CGEXJJK2726RZ2EJDC1PM",3,"MIT","https:\u002F\u002Fgithub.com\u002Fillustris\u002Fcogbox\u002Fblob\u002Fmaster\u002Fskills\u002Fcogbox-vault\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29],"vault","cogbox vault","passwords","credentials","certificates","run","find","ssh","missing","files","use","database","2026-11-10 10:12:30",false,"---\nname: cogbox-vault\ndescription: Find and use the Vault credentials cogworx delivers under \u002Frun\u002Fcogworx\u002Fvault (KV files, database logins and passwords, SSH certificates), and handle missing, rotated or suspended ones.\n---\n\nRead `\u002Frun\u002Fcogbox\u002Fenvironment.json` as `cogbox-environment` describes. `local`: cogbox itself has no Vault delivery and nothing appears under `\u002Frun\u002Fcogworx\u002Fvault`; credentials there are the user's host-side choice (load `cogbox-network`). `unknown`, missing or malformed: ask whether the user runs local cogbox or cogworx. `cogworx`: list what was delivered with `ls \u002Frun\u002Fcogworx\u002Fvault\u002Fkv \u002Frun\u002Fcogworx\u002Fvault\u002Fdb \u002Frun\u002Fcogworx\u002Fvault\u002Fssh 2>\u002Fdev\u002Fnull` (names only) and use the file you need if it is there. If it is not, delivery exists only when the sandbox's page has a Vault tab (the operator enables it, and only the container, gcp and proxmox backends support it); ask the user whether it has one and what the binding's status says (below).\n\n## Where deliveries land\n\nEach binding writes under a name equal to the binding's name (lowercase letters, digits and `-`):\n\n| Binding | In the sandbox |\n|---|---|\n| KV, file | `\u002Frun\u002Fcogworx\u002Fvault\u002Fkv\u002F\u003Cname>` |\n| database | `\u002Frun\u002Fcogworx\u002Fvault\u002Fdb\u002F\u003Cname>.env` and `\u002Frun\u002Fcogworx\u002Fvault\u002Fdb\u002F\u003Cname>.json` |\n| SSH | `\u002Frun\u002Fcogworx\u002Fvault\u002Fssh\u002F\u003Cname>` (private key), `\u003Cname>.pub`, `\u003Cname>-cert.pub` (the signed certificate) |\n| KV, inject into requests | nothing; the host adds it to requests |\n\nFiles are root's, mode 0600 (`.pub` files 0644), in 0700 directories. Ignore dot-prefixed staging names, and never touch `\u002Frun\u002Fcogworx\u002Fvault\u002F.epoch`.\n\n## Using them\n\n- KV file: when the binding names a field holding a string, the file is that string's raw bytes with no trailing newline; otherwise it is JSON (that field's value, or the whole secret as a key\u002Fvalue object). `jq -r 'if type == \"object\" then keys[] else type end' \u002Frun\u002Fcogworx\u002Fvault\u002Fkv\u002F\u003Cname> 2>\u002Fdev\u002Fnull` shows its shape without a value: an object's key names, else only a type word such as `string`, and nothing for raw text. Never inspect one with `cat`, `head`, `jq .` or `curl -v`, and never use `set -x` while a value is on a command line.\n- Database: the `.env` holds exactly two lines, `DB_USERNAME='...'` and `DB_PASSWORD='...'`; the files hold only the login, so ask the user for the host, port and database. Load the `.env` in a subshell around the one command that uses it, for example `( set -a; . \u002Frun\u002Fcogworx\u002Fvault\u002Fdb\u002F\u003Cname>.env; set +a; PGPASSWORD=\"$DB_PASSWORD\" exec nix shell nixpkgs#postgresql -c psql -h \u003Cdb-host> -p \u003Cport> -U \"$DB_USERNAME\" -d \u003Cdatabase> -c '\u003Csql>' )`, so the password does not stay in your shell. The `.json` is `{\"version\":1,\"username\":...,\"password\":...,\"issued_at\":...}`; neither file carries an expiry. No database client is installed; run the one you need from nixpkgs as `cogbox-packages` describes.\n- SSH: `ssh -i \u002Frun\u002Fcogworx\u002Fvault\u002Fssh\u002F\u003Cname> -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new \u003Cprincipal>@\u003Chost>`; ssh uses `\u003Cname>-cert.pub` next to the key by itself. `\u003Cprincipal>` is one the owner set on the binding, else the SSH role's default user. `ssh-keygen -L -f \u002Frun\u002Fcogworx\u002Fvault\u002Fssh\u002F\u003Cname>-cert.pub` shows the principals and validity. The target must trust the Vault SSH CA; cogworx manages neither host keys nor `~\u002F.ssh\u002Fconfig`.\n- Inject into requests: the value never enters the sandbox; requests to the binding's host get it added on the host side. Call `https:\u002F\u002F\u003Chost>\u002F...` with no credential of your own; load `cogbox-network` for how injected credentials behave.\n\n## Rules\n\nRead the files in place, when you need them. Never print, echo, copy (into `~`, `~\u002Fwork` or anywhere else), commit or paste their contents: a copy outlives every teardown. Never edit, move or delete them or `.epoch`; a deleted file may not come back until the owner presses \"Retry\".\n\n## Lifetime and refresh\n\nThe files exist only while the sandbox runs and vanish when it stops or restarts; every start delivers new database credentials and a new SSH key and certificate. While it runs, KV files are re-read every few minutes and rewritten only when the value changed; database credentials can be replaced (both files, a new `issued_at`); SSH certificates are re-signed before they expire, keeping the key. When a login starts failing, read the files again and reconnect: a process that loaded a value earlier keeps the old one.\n\nA new binding on a running sandbox normally arrives within seconds; after a start, files can take a few minutes to appear (never, in network mode `none` on gcp and proxmox: see below). `\u002Frun\u002Fcogworx\u002Fvault` itself appears only with the first file this boot and can stay after bindings are removed, so its presence or absence proves nothing.\n\n## When a file is missing\n\nNothing in the sandbox records why a file is missing; ask the user what the binding's status says on the Vault tab.\n\n| Status | Meaning | Next step |\n|---|---|---|\n| `pending` | not delivered yet; \"delivered once this sandbox is running\" when it is stopped | wait, or start it |\n| `active` | delivered and kept current; just after a start the file may still be on its way, otherwise it was deleted | wait a few minutes after a start, else the owner presses \"Retry\" |\n| `reconnect needed` | the owner's Vault session ended; delivered files were removed | the owner connects Vault again (Vault tab, or the Vault section of the account Settings page); as the same Vault identity the bindings resume by themselves |\n| `error` | delivery stopped and files were removed; the row's last error says why; it never retries by itself | the owner fixes the cause and presses \"Retry\" |\n| `suspended (shared)` | the sandbox is shared; nothing is delivered | resumes when it is private again |\n| `removing` | being removed | none |\n| no row | no such binding | the owner adds one |\n\nIf Vault itself is unreachable, delivered files stay, but database logins and SSH certificates still expire on schedule and nothing new is issued, so logins can fail and, after a restart, files can be missing until Vault answers.\n\n## Network for database and SSH targets\n\ncogworx adds no network rule for a database or SSH target. One on a private or reserved address needs an IP-range rule (tcp and its port) on the Network tab; load `cogbox-network` to ask for it. In `none` network mode: on the container backend the files still arrive but no target is reachable; on gcp and proxmox nothing is delivered (bindings stay `pending`), because delivery there goes through the guest's SSH forward, which `none` does not have. On a container sandbox the host side ends any connection idle for 2 minutes: use `ssh -o ServerAliveInterval=30` and recycle pooled database connections sooner (`cogbox-network`).\n\n## Asking for a binding\n\nOnly the owner can add a binding or press \"Retry\", from the cogworx web page, after connecting their Vault account (\"Connect Vault\" in the Vault section of the account Settings page); an admin acting as another user cannot. On the sandbox's Vault tab they fill in the binding's name, its source (a KV path with an optional field, or a database or SSH role), \"file in the sandbox\" or \"inject into requests\" with the host, and for SSH the principals and ttl, then press \"Bind\". Tell the user which engine, path or role and field you need; never ask for the value.\n","Read `\u002Frun\u002Fcogbox\u002Fenvironment.json` as `cogbox-environment` describes. `local`: cogbox itself has no Vault delivery and nothing appears under `\u002Frun\u002Fcogworx\u002Fvault`; credentials there are the user's host-side choice (load `cogbox-network`). `unknown`, missing or malformed: ask whether the user runs local cogbox or cogworx. `cogworx`: list what was delivered with `ls \u002Frun\u002Fcogworx\u002Fvault\u002Fkv \u002Frun\u002Fcogworx\u002Fvault\u002Fdb \u002Frun\u002Fcogworx\u002Fvault\u002Fssh 2>\u002Fdev\u002Fnull` (names only) and use the file you need if it is there. If it is not, delivery exists only when the sandbox's page has a Vault tab (the operator enables it, and only the container, gcp and proxmox backends support it); ask the user whether it has one and what the binding's status says (below).\n\n## Where deliveries land\n\nEach binding writes under a name equal to the binding's name (lowercase letters, digits and `-`):\n\n| Binding | In the sandbox |\n|---|---|\n| KV, file | `\u002Frun\u002Fcogworx\u002Fvault\u002Fkv\u002F\u003Cname>` |\n| database | `\u002Frun\u002Fcogworx\u002Fvault\u002Fdb\u002F\u003Cname>.env` and `\u002Frun\u002Fcogworx\u002Fvault\u002Fdb\u002F\u003Cname>.json` |\n| SSH | `\u002Frun\u002Fcogworx\u002Fvault\u002Fssh\u002F\u003Cname>` (private key), `\u003Cname>.pub`, `\u003Cname>-cert.pub` (the signed certificate) |\n| KV, inject into requests | nothing; the host adds it to requests |\n\nFiles are root's, mode 0600 (`.pub` files 0644), in 0700 directories. Ignore dot-prefixed staging names, and never touch `\u002Frun\u002Fcogworx\u002Fvault\u002F.epoch`.\n\n## Using them\n\n- KV file: when the binding names a field holding a string, the file is that string's raw bytes with no trailing newline; otherwise it is JSON (that field's value, or the whole secret as a key\u002Fvalue object). `jq -r 'if type == \"object\" then keys[] else type end' \u002Frun\u002Fcogworx\u002Fvault\u002Fkv\u002F\u003Cname> 2>\u002Fdev\u002Fnull` shows its shape without a value: an object's key names, else only a type word such as `string`, and nothing for raw text. Never inspect one with `cat`, `head`, `jq .` or `curl -v`, and never use `set -x` while a value is on a command line.\n- Database: the `.env` holds exactly two lines, `DB_USERNAME='...'` and `DB_PASSWORD='...'`; the files hold only the login, so ask the user for the host, port and database. Load the `.env` in a subshell around the one command that uses it, for example `( set -a; . \u002Frun\u002Fcogworx\u002Fvault\u002Fdb\u002F\u003Cname>.env; set +a; PGPASSWORD=\"$DB_PASSWORD\" exec nix shell nixpkgs#postgresql -c psql -h \u003Cdb-host> -p \u003Cport> -U \"$DB_USERNAME\" -d \u003Cdatabase> -c '\u003Csql>' )`, so the password does not stay in your shell. The `.json` is `{\"version\":1,\"username\":...,\"password\":...,\"issued_at\":...}`; neither file carries an expiry. No database client is installed; run the one you need from nixpkgs as `cogbox-packages` describes.\n- SSH: `ssh -i \u002Frun\u002Fcogworx\u002Fvault\u002Fssh\u002F\u003Cname> -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new \u003Cprincipal>@\u003Chost>`; ssh uses `\u003Cname>-cert.pub` next to the key by itself. `\u003Cprincipal>` is one the owner set on the binding, else the SSH role's default user. `ssh-keygen -L -f \u002Frun\u002Fcogworx\u002Fvault\u002Fssh\u002F\u003Cname>-cert.pub` shows the principals and validity. The target must trust the Vault SSH CA; cogworx manages neither host keys nor `~\u002F.ssh\u002Fconfig`.\n- Inject into requests: the value never enters the sandbox; requests to the binding's host get it added on the host side. Call `https:\u002F\u002F\u003Chost>\u002F...` with no credential of your own; load `cogbox-network` for how injected credentials behave.\n\n## Rules\n\nRead the files in place, when you need them. Never print, echo, copy (into `~`, `~\u002Fwork` or anywhere else), commit or paste their contents: a copy outlives every teardown. Never edit, move or delete them or `.epoch`; a deleted file may not come back until the owner presses \"Retry\".\n\n## Lifetime and refresh\n\nThe files exist only while the sandbox runs and vanish when it stops or restarts; every start delivers new database credentials and a new SSH key and certificate. While it runs, KV files are re-read every few minutes and rewritten only when the value changed; database credentials can be replaced (both files, a new `issued_at`); SSH certificates are re-signed before they expire, keeping the key. When a login starts failing, read the files again and reconnect: a process that loaded a value earlier keeps the old one.\n\nA new binding on a running sandbox normally arrives within seconds; after a start, files can take a few minutes to appear (never, in network mode `none` on gcp and proxmox: see below). `\u002Frun\u002Fcogworx\u002Fvault` itself appears only with the first file this boot and can stay after bindings are removed, so its presence or absence proves nothing.\n\n## When a file is missing\n\nNothing in the sandbox records why a file is missing; ask the user what the binding's status says on the Vault tab.\n\n| Status | Meaning | Next step |\n|---|---|---|\n| `pending` | not delivered yet; \"delivered once this sandbox is running\" when it is stopped | wait, or start it |\n| `active` | delivered and kept current; just after a start the file may still be on its way, otherwise it was deleted | wait a few minutes after a start, else the owner presses \"Retry\" |\n| `reconnect needed` | the owner's Vault session ended; delivered files were removed | the owner connects Vault again (Vault tab, or the Vault section of the account Settings page); as the same Vault identity the bindings resume by themselves |\n| `error` | delivery stopped and files were removed; the row's last error says why; it never retries by itself | the owner fixes the cause and presses \"Retry\" |\n| `suspended (shared)` | the sandbox is shared; nothing is delivered | resumes when it is private again |\n| `removing` | being removed | none |\n| no row | no such binding | the owner adds one |\n\nIf Vault itself is unreachable, delivered files stay, but database logins and SSH certificates still expire on schedule and nothing new is issued, so logins can fail and, after a restart, files can be missing until Vault answers.\n\n## Network for database and SSH targets\n\ncogworx adds no network rule for a database or SSH target. One on a private or reserved address needs an IP-range rule (tcp and its port) on the Network tab; load `cogbox-network` to ask for it. In `none` network mode: on the container backend the files still arrive but no target is reachable; on gcp and proxmox nothing is delivered (bindings stay `pending`), because delivery there goes through the guest's SSH forward, which `none` does not have. On a container sandbox the host side ends any connection idle for 2 minutes: use `ssh -o ServerAliveInterval=30` and recycle pooled database connections sooner (`cogbox-network`).\n\n## Asking for a binding\n\nOnly the owner can add a binding or press \"Retry\", from the cogworx web page, after connecting their Vault account (\"Connect Vault\" in the Vault section of the account Settings page); an admin acting as another user cannot. On the sandbox's Vault tab they fill in the binding's name, its source (a KV path with an optional field, or a database or SSH role), \"file in the sandbox\" or \"inject into requests\" with the host, and for SSH the principals and ttl, then press \"Bind\". Tell the user which engine, path or role and field you need; never ask for the value.\n",{"name":5,"description":7},"master","9054adffa53fa7af94439dff72b432e11499a008","skills\u002Fcogbox-vault",1,"https:\u002F\u002Fgithub.com\u002Fillustris\u002Fcogbox","https:\u002F\u002Fgithub.com\u002Fillustris","https:\u002F\u002Fillustris.tech","2026-11-10 00:38:16",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add illustris\u002Fcogbox --skill cogbox-vault",{"tool":49,"command":50},"bunx","bunx skills add illustris\u002Fcogbox --skill cogbox-vault",{"tool":52,"command":53},"pnpm","pnpm dlx skills add illustris\u002Fcogbox --skill cogbox-vault","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fillustris\u002Fcogbox\u002Fblob\u002Fmaster\u002Fskills\u002Fcogbox-vault\u002FSKILL.md",true,[],[58,74,87,101,114,122],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":30},"01M71CHP4B6XX9PAZ5JRQV8E58","app-relay","Legacy plugin guidance for migration testing.","https:\u002F\u002Fgithub.com\u002Fillustris\u002Fcogbox\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fnative-app\u002Flegacy-contents\u002Fskills\u002Fapp-relay\u002FSKILL.md",[],[65,66,67,68,69,70,71,72,73],"app","app relay","relay","guidance","migration","plugin","Legacy","for","testing",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":30},"01M71CHM675ZZTJ9HRGHPWVVZS","demo-overview","Overview of the demo backend; start here before answering demo questions.","https:\u002F\u002Fgithub.com\u002Fillustris\u002Fcogbox\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fbrain-plugin\u002Fcontents\u002Fskills\u002Fdemo-overview\u002FSKILL.md",[],[81,82,83,84,85,86],"overview","demo overview","demo","questions","backend","start",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":30},"01M71CHJNH0AX8E74WBGJH1JMR","demo-es","Query the demo Elasticsearch cluster: es-search, es-cat.","https:\u002F\u002Fgithub.com\u002Fillustris\u002Fcogbox\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fbrain-plugin\u002Fcontents\u002Fskills\u002Fdemo-es\u002FSKILL.md",[],[83,94,95,96,97,98,99,100],"es","demo es","search","query","cat","cluster","elasticsearch",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":30},"01M71CHGPNHSBFJHCQRSMNHS3E","cogbox-plugins","Fixture skill squatting on the name cogbox reserves for its index.","https:\u002F\u002Fgithub.com\u002Fillustris\u002Fcogbox\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fbrain-collide\u002Freserved\u002Fskills\u002Fcogbox-plugins\u002FSKILL.md",[],[108,109,110,111,72,112,113],"cogbox plugins","plugins","fixture","index","name","fixture skill",{"skillNo":115,"name":109,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":30},"01M71CHERNF4GWZ1C34MHKKN19","Fixture skill named `plugins`, shipped by a second, unrelated plugin.","https:\u002F\u002Fgithub.com\u002Fillustris\u002Fcogbox\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fbrain-collide\u002Freserved-qual-b\u002Fskills\u002Fplugins\u002FSKILL.md",[],[109,113,110,70,120,121],"unrelated","second",{"skillNo":123,"name":109,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":30},"01M71CHDPMR9KDE5QP6H3W66CW","Fixture skill named `plugins`, shipped by a plugin installed as `cogbox`.","https:\u002F\u002Fgithub.com\u002Fillustris\u002Fcogbox\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fbrain-collide\u002Freserved-qual-a\u002Fskills\u002Fplugins\u002FSKILL.md",[],[109,110,128,70,113],"as"]