{"id":37155197,"url":"https://github.com/winebarrel/gap","last_synced_at":"2026-01-14T18:21:13.911Z","repository":{"id":312525558,"uuid":"1047779540","full_name":"winebarrel/gap","owner":"winebarrel","description":"Simple HTTP proxy with Google Oauth2 access token verification.","archived":false,"fork":false,"pushed_at":"2025-11-14T05:47:23.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-14T07:23:37.669Z","etag":null,"topics":["golang","google","oauth2","proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winebarrel.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T07:57:19.000Z","updated_at":"2025-11-14T05:47:26.000Z","dependencies_parsed_at":"2026-01-07T22:06:45.841Z","dependency_job_id":null,"html_url":"https://github.com/winebarrel/gap","commit_stats":null,"previous_names":["winebarrel/gtp"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/winebarrel/gap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fgap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fgap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fgap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fgap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winebarrel","download_url":"https://codeload.github.com/winebarrel/gap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fgap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28430456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"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":["golang","google","oauth2","proxy"],"created_at":"2026-01-14T18:21:13.229Z","updated_at":"2026-01-14T18:21:13.903Z","avatar_url":"https://github.com/winebarrel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gap\n\n[![CI](https://github.com/winebarrel/gap/actions/workflows/ci.yml/badge.svg)](https://github.com/winebarrel/gap/actions/workflows/ci.yml)\n\nSimple HTTP proxy with Google Oauth2 access token verification.\n\n## Usage\n\n```\nUsage: gap --backend=BACKEND --port=UINT --header-name=STRING --allow-list=ALLOW-LIST,... [flags]\n\nFlags:\n  -h, --help                  Show help.\n  -b, --backend=BACKEND       Backend URL ($GAP_BACKEND).\n  -p, --port=UINT             Listening port ($GAP_PORT).\n  -n, --header-name=STRING    Header name to pass the access token\n                              ($GAP_HEADER).\n  -e, --allow-list=ALLOW-LIST,...\n                              Allowed email list that may contain wildcards\n                              ($GAP_ALLOW_LIST).\n      --version\n```\n\n```sh\n$ go run ./cmd/gap -b https://example.com -e '*@example.com' -p 8080 -n x-my-gap-token\n\n# When using Docker:\n# docker run --rm -p 8080:8080 ghcr.io/winebarrel/gap -b https://example.com -e '*@example.com' -p 8080 -n x-my-gap-token\n```\n\n```sh\n# Get Oauth2 token from Apps Script and set it in an environment variable.\n# e.g. https://developers.google.com/apps-script/reference/script/script-app#getOAuthToken()\n$ export TOKEN='xxx'\n\n$ curl  -H \"x-my-gap-token: ${NOT_CORRECT_TOKEN}\" localhost:8080\nforbidden\n\n~% curl -H \"x-my-gap-token: ${TOKEN}\" localhost:8080\n\u003c!doctype html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003ctitle\u003eExample Domain\u003c/title\u003e\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fgap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinebarrel%2Fgap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fgap/lists"}