{"id":19494708,"url":"https://github.com/ceejbot/emancipation-grill","last_synced_at":"2025-07-20T08:33:24.468Z","repository":{"id":33059660,"uuid":"36696152","full_name":"ceejbot/emancipation-grill","owner":"ceejbot","description":"a node client for Hashicorp's Vault","archived":false,"fork":false,"pushed_at":"2017-05-02T18:15:41.000Z","size":85,"stargazers_count":5,"open_issues_count":19,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T20:25:31.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceejbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-01T23:55:52.000Z","updated_at":"2020-09-04T13:35:06.000Z","dependencies_parsed_at":"2022-09-12T17:53:27.234Z","dependency_job_id":null,"html_url":"https://github.com/ceejbot/emancipation-grill","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Femancipation-grill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Femancipation-grill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Femancipation-grill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Femancipation-grill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceejbot","download_url":"https://codeload.github.com/ceejbot/emancipation-grill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250899963,"owners_count":21504972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T21:32:12.256Z","updated_at":"2025-04-25T21:31:57.651Z","avatar_url":"https://github.com/ceejbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emancipation-grill\n\nA pure JavaScript node client for [Hashicorp's Vault](https://hashicorp.com/blog/vault.html).\n\n[![on npm](http://img.shields.io/npm/v/emancipation-grill.svg?style=flat)](https://www.npmjs.org/package/emancipation-grill)  [![Tests](http://img.shields.io/travis/ceejbot/emancipation-grill.svg?style=flat)](http://travis-ci.org/ceejbot/emancipation-grill)  [![Coverage](http://img.shields.io/coveralls/ceejbot/emancipation-grill.svg?style=flat)](https://coveralls.io/r/ceejbot/emancipation-grill)   [![Dependencies](http://img.shields.io/david/ceejbot/emancipation-grill.svg?style=flat)](https://david-dm.org/ceejbot/emancipation-grill)\n\nTested against vault 0.6.5. Uses ES6 template strings, so it requires node 4 or newer.\n\n## Usage\n\nAll functions return a promise if a callback is not provided. All functions have the following signature:\n\n```javascript\ngrill.funcname(name, dataObj, callbackFunc);\n```\n\nThe `name` param is substituted into the url path. The `dataObj` parameter is an optional object containing any data required for PUT or POST operations on the Vault api.\n\n```javascript\nvar grill = new EmancipationGrill();\n\ngrill.initialized()\n.then(function(response)\n{\n    return grill.read('secret/apikey');\n})\n.then(function(key)\n{\n    // do something with the key\n}).done();\n\n\ngrill.removePolicy('policy-name', function(err, res) { });\ngrill.addPolicy('policy-name', { policy: 'data here'}, function(err, res) { });\ngrill.mount('aws', {}, function(err, res) { });\ngrill.unmount('aws', function(err, res) { });\n```\n\n## API\n\nThe implemented functions:\n\n| Grill function | Vault API endpoint | notes |\n| --- | --- | --- |\n| `read()` |  | read a secret\n| `write()` |  | write a secret\n| `delete()` |  | delete a secret\n| `readSecret()` |  | read a secret from the `/secret` path\n| `writeSecret()` |  | write a secret to the `/secret` path\n| `deleteSecret()` |  | delete a secret from the `/secret` path\n| `initialized()` | [GET /sys/init](http://vaultproject.io/docs/http/sys-init.html) | No parameters.\n| `initialize()` | [PUT /sys/init](http://vaultproject.io/docs/http/sys-init.html) | Requires payload.\n| `sealed()` | [GET /sys/seal-status](http://vaultproject.io/docs/http/sys-seal-status.html) | No parameters.\n| `unseal()` | [PUT /sys/unseal](http://vaultproject.io/docs/http/sys-unseal.html)|  Requires `secret_shares` and `key` params in payload.\n| `seal()` | [PUT /sys/seal](http://vaultproject.io/docs/http/sys-seal.html) | No parameters, no response body.\n| `mounts()` | [GET /sys/mount](http://vaultproject.io/docs/http/sys-mounts.html) | No parameters.\n| `mount()` | [PUT /sys/mount/:backend](http://vaultproject.io/docs/http/sys-mounts.html)\n| `unmount()` | [DELETE /sys/mount/:backend](http://vaultproject.io/docs/http/sys-mounts.html)\n| `remount()` | [POST /sys/remount](http://vaultproject.io/docs/http/sys-remount.html)\n| `policies()` | [GET /sys/policy](http://vaultproject.io/docs/http/sys-policy.html)\n| `addPolicy()` | [PUT /sys/policy/:policy](http://vaultproject.io/docs/http/sys-policy.html)\n| `removePolicy()` | [DELETE /sys/policy/:policy](http://vaultproject.io/docs/http/sys-policy.html)\n| `renewLease()` | [PUT sys/renew/:leaseid](http://vaultproject.io/docs/http/sys-renew.html)\n| `revokeLease()` | [PUT /sys/revoke/:leaseid](http://vaultproject.io/docs/http/sys-revoke.html)\n| `revokePrefix()` | [PUT /sys/revoke-prefix/:pathprefix](http://vaultproject.io/docs/http/sys-revoke-prefix.html)\n| `audits()` | [GET /sys/audit](http://vaultproject.io/docs/http/sys-audit.html)\n| `enableAudit()` | [PUT /sys/audit/:backend](http://vaultproject.io/docs/http/sys-audit.html)\n| `disableAudit()` | [DELETE /sys/audit/:backend](http://vaultproject.io/docs/http/sys-audit.html)\n| `auths()` | [GET /sys/auth](http://vaultproject.io/docs/http/sys-auth.html)\n| `enableAuth()` | [PUT /sys/auth/:mountpoint](http://vaultproject.io/docs/http/sys-auth.html) | Requires `type` param in payload.\n| `disableAuth()` | [DELETE /sys/auth/:mountpoint](http://vaultproject.io/docs/http/sys-auth.html)\n| `health()` | | respond with service health object\n| `github()` | | UNIMPLEMENTED TODO\n| `mapGithubTeam()` | | UNIMPLEMENTED TODO\n\n\n## TODO\n\n* finish off the api\n* unsealing?\n\n## LICENSE\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Femancipation-grill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceejbot%2Femancipation-grill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Femancipation-grill/lists"}