{"id":30240359,"url":"https://github.com/wahyd4/passkey-auth","last_synced_at":"2025-08-30T12:12:10.277Z","repository":{"id":308540845,"uuid":"1031727216","full_name":"wahyd4/passkey-auth","owner":"wahyd4","description":"WebAuthn (FIDO2) passkey authentication provider for Kubernetes nginx ingress","archived":false,"fork":false,"pushed_at":"2025-08-09T06:29:39.000Z","size":10837,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-15T04:42:33.629Z","etag":null,"topics":["auth","helm","home-server","ingress-nginx","passkey","webauthn"],"latest_commit_sha":null,"homepage":"","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/wahyd4.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-08-04T08:38:41.000Z","updated_at":"2025-08-11T02:31:37.000Z","dependencies_parsed_at":"2025-08-06T14:43:42.340Z","dependency_job_id":null,"html_url":"https://github.com/wahyd4/passkey-auth","commit_stats":null,"previous_names":["wahyd4/passkey-auth"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/wahyd4/passkey-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wahyd4%2Fpasskey-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wahyd4%2Fpasskey-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wahyd4%2Fpasskey-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wahyd4%2Fpasskey-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wahyd4","download_url":"https://codeload.github.com/wahyd4/passkey-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wahyd4%2Fpasskey-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272846940,"owners_count":25003104,"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-08-30T02:00:09.474Z","response_time":77,"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":["auth","helm","home-server","ingress-nginx","passkey","webauthn"],"created_at":"2025-08-15T04:37:50.949Z","updated_at":"2025-08-30T12:12:10.248Z","avatar_url":"https://github.com/wahyd4.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔐 Passkey Auth for Kubernetes Nginx Ingress\n\nA WebAuthn-based passkey authentication provider that integrates ingress controllers, currently support Kubernetes nginx Ingress controller. Provides secure, passwordless authentication using passkeys (FIDO2/WebAuthn) as an auth backend for nginx ingress.\n\n## TLDR;\n\nLog in Apps without typing password or going through 3rd Party Oauth!\n\nI use it for signing into my home lab apps.\n\n## 🎬 Demo\n\n\u003ca href=\"https://giphy.com/gifs/vBeSrnuYUl3u1AQho6\"\u003e\n  \u003cimg src=\"passkey-auth-screenshot.png\" alt=\"Click to play demo - Passkey Auth Interface\" width=\"200\"\u003e\n\u003c/a\u003e\n\n## ✨ Features\n\n- **Passwordless Authentication**: Uses WebAuthn/FIDO2 passkeys for secure authentication\n- **Nginx Ingress Integration**: Works as auth backend using nginx `auth_request` directive\n- **User Management**: An simple Admin interface for managing users and approval status\n- **Kubernetes Native**: Designed for Kubernetes deployment with persistent storage\n\n## Security Benefits\n\n- **No passwords stored** - Only WebAuthn public keys\n- **Email-based access control** - Restrict registration to specific domains/emails\n- **Phishing resistant** - WebAuthn is tied to the domain\n- **MFA built-in** - Passkeys require user presence and verification\n- **Session security** - Secure cookie-based sessions\n\n## 🚀 Quick Start\n\n### Using Helm Chart (Recommended)\n\n```bash\n# Add the Helm repository\nhelm repo add passkey-auth https://wahyd4.github.io/passkey-auth\nhelm repo update\n\n# Install with your values\nhelm upgrade --install my-passkey-auth -n home-apps -f my-values.yaml  passkey-auth/passkey-auth\n```\n\nSee the [Helm Chart README](helm/passkey-auth/README.md) for detailed configuration options.\n\n### Test with Docker\n\n```bash\ndocker run --name passkey-auth -d -p 8080:8080 -e ADMIN_EMAIL=\"admin@example.com\"  ghcr.io/wahyd4/passkey-auth:main\n```\n\n### Local Development\n\n```bash\n# Install dependencies and run locally\ngo mod download\ngo run main.go\n\n# Access at http://localhost:8080\n```\n\n\n### Setup Your App's Ingress\n\n```yaml\napiVersion: networking.k8s.io/v1\nkind: Ingress\nmetadata:\n  name: your-app-ingress\n  annotations:\n\n    nginx.ingress.kubernetes.io/auth-url: \"https://your-passkey-auth.com/auth\"\n    nginx.ingress.kubernetes.io/auth-signin: \"https://your-passkey-auth.com/?redirect=https%3A%2F%2F$host$request_uri\"\nspec:\n  rules:\n  - host: your-app.com\n    http:\n      paths:\n      - path: /\n        pathType: Prefix\n        backend:\n          service:\n            name: your-app-service\n            port:\n              number: 80\n```\n\n\n## 👥 User Management\n\nNavigate to `https:///your-passkey-auth.com` to access the admin interface with three tabs:\n- **Register User**: Register new users with passkeys\n- **Test Login**: Test authentication\n- **Manage Users**: View and manage all users with `ADMIN_USER` email address\n\n### Configuration\n\n```yaml\n# config.yaml\nauth:\n  require_approval: true    # Require admin approval for new users\n  allowed_emails:           # Email allowlist (empty = allow all)\n    - \"admin@company.com\"\n    - \"user@company.com\"\n```\nCheck [config.example.yaml](./config.example.yaml) for more details\n\n## 🔧 Development\n\n### Local Development\n\n```bash\n# Install dependencies and run locally\ngo mod download\ngo run main.go\n\n# Access at http://localhost:8080\n```\n\n### Key API Endpoints\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/api/register/begin` | POST | Start passkey registration |\n| `/api/register/finish` | POST | Complete passkey registration |\n| `/api/login/begin` | POST | Start passkey authentication |\n| `/api/login/finish` | POST | Complete passkey authentication |\n| `/auth` | GET | Nginx auth check endpoint |\n| `/api/users` | GET/POST | List/create users |\n| `/health` | GET | Health check |\n\n\n## 📄 License\n\nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwahyd4%2Fpasskey-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwahyd4%2Fpasskey-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwahyd4%2Fpasskey-auth/lists"}