{"id":50990541,"url":"https://github.com/dmathieu/gatewayauth","last_synced_at":"2026-06-20T02:02:21.737Z","repository":{"id":355812230,"uuid":"1029055266","full_name":"dmathieu/gatewayauth","owner":"dmathieu","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-05T10:17:31.000Z","size":493,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-05T12:18:58.852Z","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/dmathieu.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-30T13:05:13.000Z","updated_at":"2026-05-05T10:14:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dmathieu/gatewayauth","commit_stats":null,"previous_names":["dmathieu/gatewayauth"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dmathieu/gatewayauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmathieu%2Fgatewayauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmathieu%2Fgatewayauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmathieu%2Fgatewayauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmathieu%2Fgatewayauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmathieu","download_url":"https://codeload.github.com/dmathieu/gatewayauth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmathieu%2Fgatewayauth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34554510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-06-20T02:02:21.104Z","updated_at":"2026-06-20T02:02:21.731Z","avatar_url":"https://github.com/dmathieu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gateway Auth\n\n\u003c!-- status autogenerated section --\u003e\n| Status        |           |\n| ------------- |-----------|\n| Stability     | [development]  |\n| Distributions | [] |\n| Issues        | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Aextension%2Fgatewayauth%20\u0026label=open\u0026color=orange\u0026logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Aextension%2Fgatewayauth) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Aextension%2Fgatewayauth%20\u0026label=closed\u0026color=blue\u0026logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Aextension%2Fgatewayauth) |\n| Code coverage | [![codecov](https://codecov.io/github/open-telemetry/opentelemetry-collector-contrib/graph/main/badge.svg?component=extension_gatewayauth)](https://app.codecov.io/gh/open-telemetry/opentelemetry-collector-contrib/tree/main/?components%5B0%5D=extension_gatewayauth\u0026displayType=list) |\n| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner)    | [@dmathieu](https://www.github.com/dmathieu) |\n\n[development]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#development\n\u003c!-- end autogenerated section --\u003e\n\nThis extension enables untrusted clients — such as browsers or mobile apps — to send telemetry directly to the OpenTelemetry Collector without embedding long-lived credentials. Instead of trusting the client directly, the Collector delegates authorization to an existing auth service you control: each incoming request's `Authorization` header is forwarded to a configurable HTTP endpoint, and access is granted only when that endpoint returns a 2xx response.\n\nThis makes it practical to expose a Collector endpoint to the public internet or to end-user devices, while keeping your authorization logic centralized in a backend system (e.g. an API gateway, an identity provider, or a custom auth service).\n\nThe authenticator type has to be set to `gatewayauth`.\n\n## Configuration\n\n- `endpoint` (required): URL of the authentication endpoint. The `Authorization` header from the incoming request is forwarded as-is. A 2xx response grants access.\n\n- `cache_ttl`: How long to cache authentication results. Successful (2xx) and denied (non-5xx) responses are both cached. Service errors (5xx) are never cached. Defaults to `0` (no caching).\n\n- `cache_size`: Maximum number of entries in the authentication result cache. Required and must be greater than 0 when `cache_ttl` is set. Defaults to `1000`.\n\n- `http_client`: HTTP client configuration for requests to the authentication endpoint. Supports `timeout`, TLS settings, proxy configuration, and all other fields from [confighttp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp). Defaults to a 5-second timeout.\n\n```yaml\nextensions:\n  gatewayauth:\n    endpoint: https://auth.example.com/validate\n\n  gatewayauth/withcache:\n    endpoint: https://auth.example.com/validate\n    cache_ttl: 5m\n    cache_size: 5000\n\n  gatewayauth/withtls:\n    endpoint: https://auth.example.com/validate\n    cache_ttl: 1m\n    http_client:\n      timeout: 2s\n      tls:\n        ca_file: /etc/ssl/certs/ca.pem\n\nreceivers:\n  otlp:\n    protocols:\n      http:\n        auth:\n          authenticator: gatewayauth\n      grpc:\n        auth:\n          authenticator: gatewayauth/withcache\n\nservice:\n  extensions: [gatewayauth, gatewayauth/withcache, gatewayauth/withtls]\n  pipelines:\n    traces:\n      receivers: [otlp]\n      processors: []\n      exporters: []\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmathieu%2Fgatewayauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmathieu%2Fgatewayauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmathieu%2Fgatewayauth/lists"}