{"id":51423563,"url":"https://github.com/aslancarlos/conjur_nodejs","last_synced_at":"2026-07-05T01:03:04.698Z","repository":{"id":256483685,"uuid":"855449757","full_name":"aslancarlos/conjur_nodejs","owner":"aslancarlos","description":"Node.js example showing how to fetch secrets from CyberArk Conjur","archived":false,"fork":false,"pushed_at":"2026-05-28T00:23:19.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-28T01:22:56.700Z","etag":null,"topics":["conjur","cyberark","example","nodejs","secrets-management"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aslancarlos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T22:15:33.000Z","updated_at":"2026-05-28T00:23:23.000Z","dependencies_parsed_at":"2024-09-11T02:46:45.743Z","dependency_job_id":"22704869-50e5-4ab8-ab0f-f1245375c9fe","html_url":"https://github.com/aslancarlos/conjur_nodejs","commit_stats":null,"previous_names":["aslancarlos/conjur_nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aslancarlos/conjur_nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aslancarlos%2Fconjur_nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aslancarlos%2Fconjur_nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aslancarlos%2Fconjur_nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aslancarlos%2Fconjur_nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aslancarlos","download_url":"https://codeload.github.com/aslancarlos/conjur_nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aslancarlos%2Fconjur_nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35140195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["conjur","cyberark","example","nodejs","secrets-management"],"created_at":"2026-07-05T01:03:03.714Z","updated_at":"2026-07-05T01:03:04.630Z","avatar_url":"https://github.com/aslancarlos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# conjur_nodejs\n\nMinimal Node.js example that fetches a secret from **CyberArk Conjur** using the REST API. Designed as a starting point for engineers who want to see the exact HTTP calls involved — login, get access token, fetch secret — before adopting an SDK.\n\n## What this demonstrates\n\n```text\n   Node.js app                       Conjur\n       │                                │\n       │  1. POST /authn/.../login      │\n       │ ─────────────────────────────► │\n       │     (basic auth)               │\n       │                                │\n       │  2. API key returned           │\n       │ ◄───────────────────────────── │\n       │                                │\n       │  3. POST /authn/.../authenticate\n       │ ─────────────────────────────► │\n       │                                │\n       │  4. Short-lived access token   │\n       │ ◄───────────────────────────── │\n       │                                │\n       │  5. GET /secrets/.../variable/...\n       │ ─────────────────────────────► │\n       │                                │\n       │  6. Secret value               │\n       │ ◄───────────────────────────── │\n```\n\nFor production, prefer one of the federated authenticators (`authn-jwt`, `authn-iam`, `authn-gcp`, `authn-azure`, `authn-k8s`) which avoid storing the Conjur API key altogether.\n\n## Running\n\n```bash\nnpm install\ncp app.env .env   # then edit with your values\nnode conjur-integration.js\n```\n\n## Configuration\n\nEdit `app.env` (or set as environment variables):\n\n```bash\nCONJUR_URL=https://your-tenant.secretsmgr.cyberark.cloud\nCONJUR_ACCOUNT=conjur\nCONJUR_USER_ID=host%2Fmy-host\nCONJUR_API_KEY=...        # do NOT commit this\nCONJUR_SECRET_ID=data/my/secret/variable\n```\n\nNote that the user / host ID must be URL-encoded (e.g. `host%2Fmy-host` for `host/my-host`).\n\n## Related\n\n- [conjur-explainer](https://github.com/aslancarlos/conjur-explainer) — Visual walkthrough of Conjur authentication patterns\n- [authn-gcp-cf](https://github.com/aslancarlos/authn-gcp-cf) — Same Conjur API, but with federated GCP auth instead of an API key\n\n## License\n\nApache License 2.0 — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faslancarlos%2Fconjur_nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faslancarlos%2Fconjur_nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faslancarlos%2Fconjur_nodejs/lists"}