{"id":28493029,"url":"https://github.com/hhftechnology/traefik-cloudflare-access","last_synced_at":"2025-07-24T19:17:22.252Z","repository":{"id":295195796,"uuid":"989443462","full_name":"hhftechnology/traefik-cloudflare-access","owner":"hhftechnology","description":"This plugins allows Traefik to validate request coming from your Cloudflare Zero Trust account","archived":false,"fork":false,"pushed_at":"2025-05-24T13:10:06.000Z","size":55,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-08T05:40:29.428Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hhftechnology.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-24T05:29:51.000Z","updated_at":"2025-06-02T17:14:38.000Z","dependencies_parsed_at":"2025-05-24T06:35:15.336Z","dependency_job_id":null,"html_url":"https://github.com/hhftechnology/traefik-cloudflare-access","commit_stats":null,"previous_names":["hhftechnology/traefik-cloudflare-access"],"tags_count":0,"template":false,"template_full_name":"traefik/plugindemo","purl":"pkg:github/hhftechnology/traefik-cloudflare-access","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Ftraefik-cloudflare-access","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Ftraefik-cloudflare-access/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Ftraefik-cloudflare-access/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Ftraefik-cloudflare-access/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhftechnology","download_url":"https://codeload.github.com/hhftechnology/traefik-cloudflare-access/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Ftraefik-cloudflare-access/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266890663,"owners_count":24001595,"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-07-24T02:00:09.469Z","response_time":99,"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":"2025-06-08T09:07:12.207Z","updated_at":"2025-07-24T19:17:22.245Z","avatar_url":"https://github.com/hhftechnology.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Traefik Cloudflare Access Plugin\n\nA Traefik middleware plugin that provides authentication through Cloudflare Access by verifying JWT tokens.\n\n## Features\n\n- JWT token verification against Cloudflare Access\n- Support for both header and cookie-based tokens\n- Configurable team domain and policy audience\n- Custom block page for unauthorized access\n- Comprehensive error handling and logging\n\n## Configuration\n\n### Static Configuration\n\n```yaml\nexperimental:\n  plugins:\n    cloudflare-access:\n      moduleName: github.com/hhftechnology/traefik-cloudflare-access\n      version: v1.0.0\n```\n\n### Dynamic Configuration\n\n```yaml\nhttp:\n  middlewares:\n    cloudflare-auth:\n      plugin:\n        cloudflare-access:\n          teamDomain: \"https://myteam.cloudflareaccess.com\"\n          policyAUD: \"your-policy-audience-tag\"\n          skipClientIDCheck: false\n          skipExpiryCheck: false\n          blockPageTitle: \"Access Denied\"\n          blockPageMessage: \"You don't have permission to access this resource.\"\n\n  routers:\n    protected-route:\n      rule: \"Host(`example.com`)\"\n      service: my-service\n      middlewares:\n        - cloudflare-auth\n```\n\n### Configuration Options\n\n| Option | Type | Required | Default | Description |\n|--------|------|----------|---------|-------------|\n| `teamDomain` | string | Yes | - | Your Cloudflare Access team domain |\n| `policyAUD` | string | Yes | - | Application Audience (AUD) tag from Cloudflare Access |\n| `skipClientIDCheck` | bool | No | false | Skip audience validation |\n| `skipExpiryCheck` | bool | No | false | Skip token expiry validation |\n| `blockPageTitle` | string | No | \"Access Denied\" | Title for the block page |\n| `blockPageMessage` | string | No | Default message | Message shown on the block page |\n\n## Usage\n\n1. Set up your Cloudflare Access application\n2. Note your team domain and policy AUD\n3. Configure Traefik with the plugin\n4. Add the middleware to your routes\n\n## Token Sources\n\nThe plugin looks for JWT tokens in the following order:\n\n1. `Cf-Access-Jwt-Assertion` header\n2. `CF_AUTHORIZATION` cookie\n\n## Block Page\n\nWhen authentication fails, the plugin displays a customizable HTML block page with:\n\n- Custom title and message\n- Error details for debugging\n- Responsive design\n- Cloudflare Access branding\n\n## Development\n\n### Testing\n\n```bash\ngo test -v ./...\n```\n\n### Linting\n\n```bash\ngolangci-lint run\n```\n\n### Building\n\n```bash\ngo build ./...\n```\n\n## License\n\nApache License 2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhftechnology%2Ftraefik-cloudflare-access","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhftechnology%2Ftraefik-cloudflare-access","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhftechnology%2Ftraefik-cloudflare-access/lists"}