{"id":13707104,"url":"https://github.com/ueffel/caddy-basic-auth-filter","last_synced_at":"2026-01-16T15:46:17.139Z","repository":{"id":57641357,"uuid":"435260970","full_name":"ueffel/caddy-basic-auth-filter","owner":"ueffel","description":"Caddy log filter module with a log field filter to extract the user from a basic Authorization HTTP-Header","archived":false,"fork":false,"pushed_at":"2023-11-04T14:32:48.000Z","size":64,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T23:37:45.960Z","etag":null,"topics":["caddy","caddy-module","caddy-plugin"],"latest_commit_sha":null,"homepage":"","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/ueffel.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}},"created_at":"2021-12-05T19:37:20.000Z","updated_at":"2023-10-04T19:36:11.000Z","dependencies_parsed_at":"2024-01-14T20:34:20.374Z","dependency_job_id":null,"html_url":"https://github.com/ueffel/caddy-basic-auth-filter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ueffel/caddy-basic-auth-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueffel%2Fcaddy-basic-auth-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueffel%2Fcaddy-basic-auth-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueffel%2Fcaddy-basic-auth-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueffel%2Fcaddy-basic-auth-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ueffel","download_url":"https://codeload.github.com/ueffel/caddy-basic-auth-filter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueffel%2Fcaddy-basic-auth-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["caddy","caddy-module","caddy-plugin"],"created_at":"2024-08-02T22:01:19.415Z","updated_at":"2026-01-16T15:46:17.118Z","avatar_url":"https://github.com/ueffel.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# caddy-basic-auth-filter\n\nThis packages contains a log field filter to extract the user from a basic Authorization\nHTTP-Header.\n\n## Installation\n\n```sh\nxcaddy build --with github.com/ueffel/caddy-basic-auth-filter\n```\n\n## Usage\n\nSee [caddy log filter documentation](https://caddyserver.com/docs/caddyfile/directives/log#filter).\nThere will be a new filters to use:\n\n```caddy-d\n\u003cfield\u003e basic_auth_user\n```\n\n* **field** Probably the only sensible field to use here is: `request\u003eheaders\u003eAuthorization`\n\nSince caddy v2.5.0 logging of credentials needs to be enabled in the [global server\noptions](https://caddyserver.com/docs/caddyfile/options#server-options) with `log_credentials` for\nthis filter to work. See \u003chttps://github.com/caddyserver/caddy/pull/4438\u003e.\n\n## Example configuration\n\nThe following example configuration uses the [Formatted Log\nEncoder](https://github.com/caddyserver/format-encoder)\n\n```caddy-d\nformat filter {\n    wrap formatted \"{request\u003ehost} {request\u003eheaders\u003eAuthorization} [{ts}] \\\"{request\u003emethod} {request\u003euri} {request\u003eproto}\\\"\"\n    fields {\n        request\u003eheaders\u003eAuthorization basic_auth_user\n    }\n}\n```\n\n```plain\nlocalhost admin [1620840157.514536] \"GET /some/path HTTP/2.0\" \n```\n\n\u003e For reference the configuration and output without filters:\n\u003e\n\u003e ```caddy-d\n\u003e format formatted \"{request\u003ehost} {request\u003eheaders\u003eAuthorization} [{ts}] \\\"{request\u003emethod} {request\u003euri} {request\u003eproto}\\\"\"\n\u003e ```\n\u003e\n\u003e Log output:\n\u003e\n\u003e ```plain\n\u003e localhost [\"Basic YWRtaW46YWRtaW4=\"] [1638732239.578346] \"GET /some/path HTTP/2.0\"\n\u003e ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fueffel%2Fcaddy-basic-auth-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fueffel%2Fcaddy-basic-auth-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fueffel%2Fcaddy-basic-auth-filter/lists"}