{"id":18253512,"url":"https://github.com/kingjan1999/traefik-plugin-exception-authbasic","last_synced_at":"2025-10-10T06:33:30.836Z","repository":{"id":50083059,"uuid":"305684470","full_name":"kingjan1999/traefik-plugin-exception-authbasic","owner":"kingjan1999","description":"Traefik Plugin to allow overrides for auth basic ","archived":false,"fork":false,"pushed_at":"2021-06-04T20:35:48.000Z","size":24,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T16:44:28.480Z","etag":null,"topics":["traefik-plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kingjan1999.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":"2020-10-20T11:22:11.000Z","updated_at":"2024-03-26T09:31:11.000Z","dependencies_parsed_at":"2022-08-20T17:51:08.334Z","dependency_job_id":null,"html_url":"https://github.com/kingjan1999/traefik-plugin-exception-authbasic","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kingjan1999/traefik-plugin-exception-authbasic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingjan1999%2Ftraefik-plugin-exception-authbasic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingjan1999%2Ftraefik-plugin-exception-authbasic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingjan1999%2Ftraefik-plugin-exception-authbasic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingjan1999%2Ftraefik-plugin-exception-authbasic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kingjan1999","download_url":"https://codeload.github.com/kingjan1999/traefik-plugin-exception-authbasic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingjan1999%2Ftraefik-plugin-exception-authbasic/sbom","scorecard":{"id":560755,"data":{"date":"2025-08-11","repo":{"name":"github.com/kingjan1999/traefik-plugin-exception-authbasic","commit":"2674e8a3fb39b9297fb4dcca5f4f2aa25c91dc74"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T13:36:19.907Z","repository_id":50083059,"created_at":"2025-08-20T13:36:19.907Z","updated_at":"2025-08-20T13:36:19.907Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002962,"owners_count":26083489,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["traefik-plugin"],"created_at":"2024-11-05T10:07:00.139Z","updated_at":"2025-10-10T06:33:30.814Z","avatar_url":"https://github.com/kingjan1999.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Traefik Plugin For Allowing Exceptions From Basic Auth\n\nThis Traefik plugin allows you to define exceptions for certain origin ips / ip ranges or requests with specific headers to override basic auth requirements. \nThis works by defining a special user / passwords in Traefik's basic auth configuration.\n\n## Sample Configuration\n\nThe following code snippet is a sample configuration for the dynamic file based provider, but as usual, this plugin should work with all other configuration providers as well.\n\n```toml\n[http]\n  [http.routers]\n    [http.routers.router0]\n      entryPoints = [\"http\"]\n      service = \"service-foo\"\n      rule = \"Path(`/foo`)\"\n      middlewares = [\"except-auth\", \"test-auth\"]\n\n  [http.middlewares]\n    [http.middlewares.except-auth.plugin.except-authbasic]\n      allowIPList = [\"127.0.0.1\"]\n      user = \"user\"\n      password = \"password\"\n      preventUser = true\n      headers = {\"X-Very-Secret\" = \"totallysecret\"}\n    [http.middlewares.test-auth.basicauth]\n      users = \"user:$apr1$6Ktd55e3$9qaa6Dw9t70x90uQbZsts/,anotheruser:$apr1$cwugIdEJ$juXAPT2qb0sUroFEIucqz0\"\n      realm = \"Test\"\n      removeHeader = true\n```\n\n*Please note:* The middleware for this plugin needs to be loaded before the basic auth middleware (as seen above).\n\n## Configuration\n\nThis plugin supports the following configuration parameters:\n\n- **allowIPList** List of strings containing the allowed ip addresses (e.g. `127.0.0.1`) and ip address ranges (e.g. `127.0.0.1/8`). Default: `[]`\n- **user** Username of the basic auth user to be used for authentication. Default: `\"\"\"`\n- **password** Password of the basic auth user to be used for authentication. Default: `\"\"\"`. Needs to be in plaintext!\n- **preventUser** Disallows any request trying to authenticate with the above credentials not originating from any of the allowed ip addressed. Default: `false`\n- **ipHeaders** Allows you to specify additional headers (e.g. `X-Forwarded-For`, `X-Real-IP`) to use as sources besides the requests remote ip. Please note: If any ip address can be found in one of these headers, the requests remote ip is ignored. Multiple ips in a header (e.g. `127.0.0.1,127.0.0.2`) are treated equally. Using this feature is highly discouraged. Please ensure that these headers are not set by end users. Default: `[]`\n- **headers** Map of headers and their expected value which override the basic auth requirement as well (so requests with these headers do not require basic auth). Use `*` as wildcard value. Please note: This is or-chained with the ip based rules. Default: `{}    ` \n\n## Known Issues\n\n### Authorization Headers Are Overwritten\n\nAny additional authentication (for example when accessing APIs via a Bearer token from an IP on the allow list) will not work. This is because\nthe plugin overwrites any existing `Authorization` header with the predefined credentials to make the basic auth middleware work. [As a workarkound, you can make a backup of the `Authorization` header and restore it later.](https://github.com/kingjan1999/traefik-plugin-exception-authbasic/issues/5).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingjan1999%2Ftraefik-plugin-exception-authbasic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkingjan1999%2Ftraefik-plugin-exception-authbasic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingjan1999%2Ftraefik-plugin-exception-authbasic/lists"}