{"id":37174209,"url":"https://github.com/taskcluster/relengapi-proxy","last_synced_at":"2026-01-14T20:21:37.658Z","repository":{"id":33119555,"uuid":"36758529","full_name":"taskcluster/relengapi-proxy","owner":"taskcluster","description":"TaskCluster proxy for RelengAPI","archived":true,"fork":false,"pushed_at":"2019-04-24T10:30:42.000Z","size":1824,"stargazers_count":0,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-19T23:11:20.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taskcluster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-02T20:02:50.000Z","updated_at":"2023-01-28T15:26:10.000Z","dependencies_parsed_at":"2022-08-07T20:00:45.871Z","dependency_job_id":null,"html_url":"https://github.com/taskcluster/relengapi-proxy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/taskcluster/relengapi-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskcluster%2Frelengapi-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskcluster%2Frelengapi-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskcluster%2Frelengapi-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskcluster%2Frelengapi-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taskcluster","download_url":"https://codeload.github.com/taskcluster/relengapi-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taskcluster%2Frelengapi-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-01-14T20:21:36.476Z","updated_at":"2026-01-14T20:21:37.644Z","avatar_url":"https://github.com/taskcluster.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RelEngAPI Proxy\n\nThis is the proxy server which is used in the docker-worker which allows\nindividual tasks to talk to [Releng\nAPI](https://github.com/mozilla/build-relengapi) without hardcoding credentials\ninto the containers themselves.\n\nThis works by creating a temporary RelengAPI access token bearing the\npermissions specified for the task.  Permissions are specified as scopes, with\nthe prefix `docker-worker:relengapi-proxy:`.  For example, the\n`tooltool.download.internal` permission will be available if the task has scope\n`docker-worker:relengapi-proxy:tooltool.download.internal`.  Note that `*`\ncannot be used to get all relengapi permissions.\n\nThe temporary token is requested using a permanent token known only to the\nproxy, given on the command line with `--relengapi-token`.\n\n__Note, relengapi-proxy can currently only run on https://taskcluster.net !!__\n\nIf other taskcluster deployment environments need to be supported, the\nhardcoded reference to this `rootURL` should be removed from the code, and the\nrootURL should be provided as an additional required command line parameter.\n\n## Examples\n\nStart the server, giving a relengapi token that can issue temporary tokens and a task ID\n\n    relengapi-proxy --relengapi-token 12341234 -- 2szAy1JzSr6pyjVCdiTcoQ\n\nOnce that's running, and assuming a docker alias mapping `relengapi:80` to the proxy,\n\n    curl relengapi/tooltool/sha512/\u003csome-sha512\u003e\n\nto download a file from tooltool, for example.\n\n## Deployment\n\nThe proxy server can be deployed directly by building and running the package,\nbut the prefered method is via the `./build.sh` script which will compile the\nproxy server for linux/amd64 and deploy the server to a docker image.\n\n```sh\n./build.sh user/relengapi-proxy-server\n```\n\n## Download via `go get`\n\n__You will need at least go 1.8__. A newer version of go 1.x is also ok.\n\nSet up your [GOPATH](https://golang.org/doc/code.html)\n\n```sh\ngo get github.com/taskcluster/relengapi-proxy\n```\n\n## Hacking\n\nTo build, just run\n\n```sh\ngo build\n```\n\n## Tests\n\nTo run the full test suites you need a\n[RelengAPI](https://api.pub.build.mozilla.org/) token.  \nThat token must have at least `base.tokens.tmp.issue`, as well as any\npermissions tasks may need.  \nThe token is supplied with the --relengapi-token\ncommand-line argument.  \nNote that credentials must not be included in environment variables!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaskcluster%2Frelengapi-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaskcluster%2Frelengapi-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaskcluster%2Frelengapi-proxy/lists"}