{"id":49786486,"url":"https://github.com/opsmill/infrahub-git-credential-helper","last_synced_at":"2026-05-12T01:36:33.569Z","repository":{"id":350047327,"uuid":"1200289545","full_name":"opsmill/infrahub-git-credential-helper","owner":"opsmill","description":"Git credential helpers for Infrahub, written in Rust. Provides infrahub-git-credential and infrahub-git-askpass as statically compiled binaries for authenticating git operations against repositories managed by Infrahub.","archived":false,"fork":false,"pushed_at":"2026-04-15T09:08:09.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-03T00:43:19.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/opsmill.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-03T08:37:09.000Z","updated_at":"2026-04-15T08:51:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/opsmill/infrahub-git-credential-helper","commit_stats":null,"previous_names":["opsmill/infrahub-git-credential-helper"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/opsmill/infrahub-git-credential-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmill%2Finfrahub-git-credential-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmill%2Finfrahub-git-credential-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmill%2Finfrahub-git-credential-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmill%2Finfrahub-git-credential-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opsmill","download_url":"https://codeload.github.com/opsmill/infrahub-git-credential-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmill%2Finfrahub-git-credential-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32920223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"ssl_error","status_checked_at":"2026-05-11T17:08:45.420Z","response_time":120,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-05-12T01:36:32.639Z","updated_at":"2026-05-12T01:36:33.555Z","avatar_url":"https://github.com/opsmill.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infrahub Git Credential Helper\n\nGit credential helpers for [Infrahub](https://github.com/opsmill/infrahub). These tools allow git processes to authenticate against repositories managed by Infrahub by fetching credentials from the Infrahub GraphQL API.\n\n## Binaries\n\n### `infrahub-git-credential`\n\nA [git credential helper](https://git-scm.com/docs/gitcredentials) that implements the `get` and `store` subcommands. When git needs credentials for a remote, this helper queries Infrahub for the repository's stored credentials.\n\nRequires `credential.useHttpPath` to be enabled:\n\n```sh\ngit config --global credential.useHttpPath true\n```\n\n### `infrahub-git-askpass`\n\nA [GIT_ASKPASS](https://git-scm.com/docs/gitcredentials#_requesting_credentials) helper. When git needs a username or password, it calls this program with a prompt string and reads the response from stdout.\n\n## Configuration\n\nConfiguration is resolved in the following order:\n\n| Setting | Environment Variable | TOML Config | Default |\n|---------|---------------------|-------------|---------|\n| Server address | `INFRAHUB_INTERNAL_ADDRESS` | `[main].internal_address` | - |\n| API token | `INFRAHUB_API_TOKEN` | - | None |\n| Config file path | `INFRAHUB_CONFIG` | - | `infrahub.toml` |\n| Username | `INFRAHUB_USERNAME` | - | None |\n| Password | `INFRAHUB_PASSWORD` | - | None |\n| Timeout (seconds) | `INFRAHUB_TIMEOUT` | - | `30` |\n| Proxy | `INFRAHUB_PROXY` | - | None |\n| Skip TLS verification | `INFRAHUB_TLS_INSECURE` | - | `false` |\n| Custom CA certificate | `INFRAHUB_TLS_CA_FILE` | - | None |\n\nAuthentication supports two methods:\n- **Token auth**: set `INFRAHUB_API_TOKEN` — sent as `X-INFRAHUB-KEY` header\n- **Password auth**: set `INFRAHUB_USERNAME` and `INFRAHUB_PASSWORD` — logs in via `/api/auth/login` to obtain a bearer token\n\nBoth binaries also accept `--config-file \u003cpath\u003e` to override the config file path.\n\nEnvironment variables take precedence over TOML values.\n\n## Building\n\n```sh\ncargo build --release\n```\n\nBinaries are output to `target/release/infrahub-git-credential` and `target/release/infrahub-git-askpass`.\n\n## Docker\n\nThe project includes a multi-stage Dockerfile that produces statically linked binaries (musl) in a scratch-based image. Supports both `amd64` and `arm64` architectures.\n\n```sh\ndocker build -t registry.opsmill.io/opsmill/infrahub-git-credential-helper .\n```\n\nUse in a downstream Dockerfile:\n\n```dockerfile\nCOPY --from=registry.opsmill.io/opsmill/infrahub-git-credential-helper:latest /usr/bin/infrahub-git-credential /usr/bin/infrahub-git-credential\nCOPY --from=registry.opsmill.io/opsmill/infrahub-git-credential-helper:latest /usr/bin/infrahub-git-askpass /usr/bin/infrahub-git-askpass\n```\n\n## License\n\nThis project is licensed under the Apache License, Version 2.0. See [LICENSE.txt](LICENSE.txt) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsmill%2Finfrahub-git-credential-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopsmill%2Finfrahub-git-credential-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsmill%2Finfrahub-git-credential-helper/lists"}