{"id":26294621,"url":"https://github.com/afiore/gcs-proxy","last_synced_at":"2025-05-08T23:07:19.492Z","repository":{"id":137467313,"uuid":"262079102","full_name":"afiore/gcs-proxy","owner":"afiore","description":"Minimal web app to serve GCP storage objects via HTTP   ","archived":false,"fork":false,"pushed_at":"2020-06-05T12:41:21.000Z","size":10896,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-11T02:19:12.593Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afiore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-07T14:51:38.000Z","updated_at":"2024-06-19T10:46:29.575Z","dependencies_parsed_at":null,"dependency_job_id":"b9a99e76-13ec-49c1-8ad2-b657c00805b4","html_url":"https://github.com/afiore/gcs-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiore%2Fgcs-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiore%2Fgcs-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiore%2Fgcs-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiore%2Fgcs-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afiore","download_url":"https://codeload.github.com/afiore/gcs-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681024,"owners_count":20330152,"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":"2025-03-15T03:31:13.106Z","updated_at":"2025-03-15T03:32:05.550Z","avatar_url":"https://github.com/afiore.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GCS store Proxy\n\nA minimal web app to serve static assets stored in Google Clould storage buckets via HTTP.\n\n## Rationale\n\nI ended up writing this as I couldn't find a viable way to expose GCS objects via HTTP while at the same time\nenforcing some form of authentication/authorisation. Hence I have resorted to writing a simple app to proxy HTTP requests \nto one or several Google cloud storage bucket while restricting access to only members of a given domain/organisation using Google Auth.\n\n## Building and running\n\n```bash\n# Build the executable\ngo build -o bin/gcs-proxy main/main.go\n\n# running supplying the configuration file as it's sole argument\n./bin/gcs-proxy config.toml\n\n# Build docker image\ndocker build -t afiore/gcs-proxy:latest .\n\n# Run containerized gcs-proxy making sure you mount a volume with the .toml file e.g.\ndocker run --rm --volume $(pwd):/tmp afiore/gcs-proxy:latest /tmp/config.toml\n\n# supply your Google service account file and deploy the app through the provided Helm chart\nGCP_SA=$(cat /path/to/my/gcp_sa.json|base64 -w 0)\nhelm install gcs-proxy charts/gcs-proxy/ --set gcp_sa_base64=$GCP_SA --set gcs_proxy.oauth.client_id=$CLIENT_ID  --set gcs_proxy.oauth.client_secret=$CLIENT_SECRET --set gcs_proxy.oauth.session_secret=$SESSION_SECRET \n```\n\n## Configuration\n\nThe program expects a few mandatory configuration parameters to be supplied a `.toml` file.\nPlease refer to `config.toml` for a sample of the available configurable parameters.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafiore%2Fgcs-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafiore%2Fgcs-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafiore%2Fgcs-proxy/lists"}