{"id":26821250,"url":"https://github.com/realkinetic/gcp-oidc-proxy","last_synced_at":"2025-04-24T05:28:14.472Z","repository":{"id":39484087,"uuid":"166160975","full_name":"RealKinetic/gcp-oidc-proxy","owner":"RealKinetic","description":"Cloud Function for proxying requests to OIDC-authenticated endpoints","archived":false,"fork":false,"pushed_at":"2019-01-25T21:46:49.000Z","size":32,"stargazers_count":5,"open_issues_count":1,"forks_count":8,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-30T07:19:28.683Z","etag":null,"topics":["gcp","gcp-cloud-functions","oauth2","oidc","openid-connect","python","service-account"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/RealKinetic.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}},"created_at":"2019-01-17T04:37:31.000Z","updated_at":"2022-06-24T10:15:15.000Z","dependencies_parsed_at":"2022-09-20T03:50:40.577Z","dependency_job_id":null,"html_url":"https://github.com/RealKinetic/gcp-oidc-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealKinetic%2Fgcp-oidc-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealKinetic%2Fgcp-oidc-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealKinetic%2Fgcp-oidc-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealKinetic%2Fgcp-oidc-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RealKinetic","download_url":"https://codeload.github.com/RealKinetic/gcp-oidc-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250570550,"owners_count":21452052,"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":["gcp","gcp-cloud-functions","oauth2","oidc","openid-connect","python","service-account"],"created_at":"2025-03-30T07:19:14.008Z","updated_at":"2025-04-24T05:28:14.454Z","avatar_url":"https://github.com/RealKinetic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gcp-oidc-proxy\n\nGoogle Cloud Function for proxying requests to\n[OIDC-authenticated](https://openid.net/connect/) endpoints. For example, this\ncan be used to make authenticated requests to resources protected by a GCP\n[Identity Aware Proxy (IAP)](https://cloud.google.com/iap/) using a service\naccount.\n\n## Deployment\n\n```sh\n$ gcloud functions deploy gcp-oidc-proxy \\\n    --runtime python37 \\\n    --entry-point handle_request \\\n    --trigger-http\n```\n\n- The service account for the Cloud Function needs the \"Service Account Actor\n  IAM\" role.\n- A `CLIENT_ID` environment variable needs to be set containing the OAuth2\n  client ID, e.g. the client ID used by IAP.\n- A `WHITELIST` environment variable needs to be set containing a\n  comma-separated list of paths to allow requests for. A value of `*` will\n  whitelist all paths.\n- The service account for the Cloud Function needs to be added as a member of\n  the protected resource with appropriate roles configured.\n- Optionally, Basic authentication can be enabled by setting `AUTH_USERNAME`\n  and `AUTH_PASSWORD` environment variables. If either of these is not set,\n  authentication is disabled.\n\n## Local Development\n\nYou can run the function locally with:\n\n```sh\n$ python test.py\n```\n\nThis will start an HTTP server which maps requests to the Cloud Function. This\nrequires setting the `GOOGLE_APPLICATION_CREDENTIALS` environment variable to a\nservice account credentials file which has the IAM roles described above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealkinetic%2Fgcp-oidc-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealkinetic%2Fgcp-oidc-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealkinetic%2Fgcp-oidc-proxy/lists"}