Moving to Passkeys: Choosing the RP ID, User Verification, Synced Keys and Account Recovery
Adding passkeys is more than two browser calls. The RP ID decision you cannot undo, the UV flag the server must read, the zero counter of synced keys and the recovery flow that quietly reduces passkey security to email.
Adding passkey support looks easy at first: two calls in the browser and a verification library on the server. The hard part is not those two calls but the decisions around them. Which domain the credentials bind to, whether user verification is mandatory, how synced keys behave with the signature counter, how many keys a user may have, and above all how someone who lost their key gets back into the account. Get one of these wrong and either the login screen breaks or the phishing resistance you paid for leaks out through a side door.
What a passkey actually is
A passkey is a WebAuthn public key credential that can also carry the user identity (a discoverable credential). The private key stays on the device or in the platform's password manager; the server only stores the public key. Phishing resistance comes from one place: the browser writes the page's real origin into the signed data and only lets the credential be used on pages that belong to the relying party ID (RP ID) chosen at registration. No matter how convinced the user is by a lookalike domain, the browser will not hand the key over.
In practice there are two kinds:
Synced passkeys live in the platform password manager and are copied to the user's other devices. They are hard to lose, but the key is not bound to a single piece of hardware.
Device-bound passkeys live on a security key or in one device's secure enclave and never leave it. They suit high-privilege accounts, and losing one hurts more.
For consumer applications, accepting synced passkeys is the right default. Requiring device-bound keys makes sense for a narrow group such as administrators; imposing it on everyone multiplies support load.
The decision you cannot undo: the RP ID
Every credential is bound to an RP ID when it is created. The RP ID can be the page's host or a registrable parent of it. A page served from login.example.com may choose example.com, and then the same passkey also works on app.example.com.
Two traps follow. The first is choosing the narrowest subdomain and later moving the login page to another subdomain: existing credentials no longer show up, and users have to register from scratch. The second is a rebrand to an entirely different domain. Some browsers support allowing related origins through a file published under /.well-known/webauthn, but do not assume every browser will. The safest path is to pick the long-lived registrable domain as the RP ID from day one.
Registration options
The registration options the server generates typically look like this:
user.id is the field most often filled in wrong. It should not be an email address or a sequential database id. Make it a random value of at most 64 bytes with no personal data in it, and keep it stable when the user changes their email. The authenticator stores it and returns it at sign-in, and you use it to find the account.
alg: -7 is ES256 and -257 is RS256. ES256 is supported almost everywhere; keeping RS256 in the list is needed for some older platform authenticators.
residentKey: "required" is what makes username-less sign-in possible. Without it some authenticators create a credential that cannot be found without a username, and autofill sign-in does not work.
excludeCredentials prevents registering the same authenticator twice. Skip it and a user's list fills up with three passkeys from the same phone, with no way to tell which one is safe to delete.
attestation: "none" is the right choice for consumer apps. Attestation, which proves the make and model of the authenticator, only makes sense in enterprise settings that mandate specific hardware. Synced passkeys mostly do not provide it anyway, and asking for it only produces errors.
User verification: read the flag on the server
userVerification passes a request to the client; it is not a guarantee. If the authenticator collected a PIN or biometric, it sets the UV flag in the authenticator data of the response. If a passkey replaces both password and second factor for you, the server must check that flag and treat the sign-in as single-factor when it is not set. Writing "required" in the options and never looking at the flag in the response is a common mistake; the check means nothing unless it happens on the server.
Sign-in through autofill
The best experience is the browser offering the passkey when the user focuses the username field. Give the field the right autocomplete value and start a conditional request when the page loads:
decodeOptions and encodeCredential convert between base64url and binary; use the helpers your client library provides rather than writing them by hand. Leave allowCredentials empty in a conditional request, because you do not know the user yet.
Verifying and storing on the server
Do not write CBOR parsing, signature verification and flag handling yourself. Mature libraries exist: SimpleWebAuthn for JavaScript, go-webauthn for Go, py_webauthn for Python, webauthn4j for Java. The library does the work, but what you feed it matters:
Challenge: at least 16 random bytes generated on the server, bound to the session, short-lived and single-use. A challenge that is not deleted after verification opens the door to replay.
Expected origin and RP ID: taken from a fixed allow list, never derived from the request's Host header.
What to store: credential id (binary, uniquely indexed), public key, signature counter, transports, the backup eligibility and backup state flags, creation and last-used time, and a name the user chose.
The signature counter trap
The specification suggests suspecting a cloned authenticator when the counter fails to increase. Most synced passkeys, however, always send zero. When both the stored and the received value are zero, skip the check. An implementation that rejects sign-in outright when the counter goes backwards locks out users who switch devices; recording it and raising a warning is healthier than refusing.
The real weak link: account recovery
However strong the passkey, if the "I lost my passkey" path is a link sent by email, the account is exactly as secure as the email account. Attackers do not fight the passkey; they use the recovery flow.
A workable approach:
Nudge users to add a second passkey. Asking for a second registration from another device or a security key right after the first one removes most of the need for recovery.
Issue single-use recovery codes and store them hashed, like passwords.
Open a restricted session after recovery: allow registering a new passkey, put sensitive actions such as changing the email or payment details behind a waiting period, and notify the account owner.
Notify the user whenever a passkey is added or removed. An attacker's first move is to add their own key.
You do not have to remove passwords right away. During the transition, offering passkey registration to users who signed in with a password, and letting passkey holders switch the password off, balances support load and risk.
When not to rush
If most of your users sign in from shared devices, such as kiosks or call center desks, the personal-device assumption behind passkeys does not hold; a portable option like smart cards or security keys fits better. If authentication is already delegated to an identity provider, enable passkeys there rather than in each application, or you end up with credentials for the same user scattered across systems that know nothing about each other. Finally, do not ship passkeys before you have designed recovery. Recovery first, passkeys second: that order keeps the first "I lost my key" ticket from pushing the team into a hasty, weak email reset.
[OK] 30 records · 9 featured · 1 retainer · 20 standard
/02 services
services.tree
> note
· Prices are in USD. Volume discounts of 7% for 6-12 day projects and 14% for 13+ day projects apply. Programs of 100+ person-days are priced individually. Prices are negotiable based on scope, urgency and long-term collaboration.
> ls ~/products/ --open-source
[OK] 2 entries · 2 live
/03 products
products.list
liveopen source · mit/prod/01
filex
the self-hosted file manager that embeds anywhere
single go binary · web ui + desktop app · embeds as vue/react/web component · local, s3, sftp, webdav, ftp, smb · sso/ldap · rbac · multi-tenant · encrypted folders · mcp server for ai agents
We build infrastructure, automate everything, and keep systems running.
BRF Tech is a remote DevSecOps and software consulting firm based in Bursa, Türkiye. We operate across 30 service areas, from Kubernetes cluster management to serverless platform setup, CI/CD pipeline design to AI agent development.
What we do is simple: we set up your systems, automate them, and make sure they won't wake you up at 3 AM. We codify your infrastructure with Terraform, move your deployments to GitOps with ArgoCD, and monitor everything with Prometheus. When something is about to break, we step in before it does.
We're against vendor lock-in. We work with open-source tools, self-hosted solutions, and industry-standard technologies. We build your own serverless platform on Knative, isolate with Kata Containers, manage your secrets with Vault. Every project is delivered with clear scope, clear timeline, clear pricing.
DevSecOps & CI/CD
Kubernetes & Serverless
Infrastructure as Code
AI & Agent (MCP/ACP)
Security & Zero Trust
Full-Stack Development
Self-Hosted Solutions
> grep -i question ~/faq.md
[OK] 12 entries · click to expand
[?]What does BRF Tech do, and who do you work with?▾
BRF Tech is a remote DevSecOps and software consulting firm based in Bursa, Türkiye. We build infrastructure, automate it and keep it running. We work with startups getting their first product out the door, with companies that want to scale, migrate or harden the systems they already run, and with service providers operating their own cloud.
[?]Which areas do you cover?▾
We work across 30 service areas. The main ones are CI/CD and GitOps, Kubernetes and container infrastructure, infrastructure as code with Terraform, monitoring and SRE, private clouds on Cozystack, OpenStack and Virtuozzo along with migrations off VMware, security and zero trust architecture, database management, backup and disaster recovery, cloud migration and cost optimization, serverless platforms, AI integration and agent development, MVP and software development, self-hosted tooling, technical training and DevOps consulting. The Services section lists the scope and packages for each one.
[?]What are your software development services?▾
We offer MVP development, existing software performance optimization, backend API development (Node.js, Go, Python) and full-stack application development. Every project is delivered with minimal technical debt.
[?]Which DevOps tools do you work with?▾
From Kubernetes and Docker to Talos Linux, from Terraform and OpenTofu to Ansible, and across GitLab CI/CD, GitHub Actions, ArgoCD, Flux and Helm, we work with industry-standard tooling. For observability and error tracking we use Prometheus, Grafana, Loki, Tempo, OpenTelemetry and GlitchTip; for networking, Cilium and Envoy; for test automation, Playwright, Cypress, k6, Locust, Testcontainers and Trivy. We determine the most suitable toolset together, based on your project’s needs.
[?]How does a project get started?▾
Fill in the form in the Contact section, send us an email or give us a call. The first step is a free initial consultation where we listen to what you need, look at where things stand today and pin down the scope together. You then receive a proposal with a clear scope, timeline and price. Scope and payment terms are set for each project and agreed by both sides. If you need an NDA, we will sign one.
[?]How does pricing work?▾
Every project comes with a clear scope, timeline and price. Click any service in the Services section to see its packages with their scope, estimated duration and price, all in USD. Longer projects get a volume discount, and very large programs are priced individually. We give you the final price once the scope is settled in the initial consultation.
[?]Do you work remotely?▾
Yes, we are remote-first. We are based in Bursa, Türkiye, and work with clients around the world. Everything is set up in your own environment, whether that means your servers, your private cloud or a provider such as AWS, GCP, Azure or Hetzner.
[?]How do you handle the security of our systems and data?▾
We follow a DevSecOps approach, so security is built into the systems we set up from the start rather than added at the end. That includes secret management, role-based access control, zero trust networking and security scanning in the CI/CD pipeline. Because we favor open-source and self-hosted tools, your systems stay under your control instead of depending on a single vendor. We also run security audits and help you prepare for KVKK, GDPR, SOC 2 and ISO 27001 compliance. We sign an NDA when needed, and personal data is processed as described in our Privacy Policy, in line with KVKK, Turkey's data protection law.
[?]Do you offer support after delivery?▾
Yes, we can keep working together after handover. Our DevOps consulting runs two or three days a week or full time, and covers the technical roadmap, architecture reviews, team onboarding, code and infrastructure reviews and incident support. If you would rather have your own team run the system, we also offer technical training and mentoring programs.
[?]Do you have open-source products?▾
Yes. We turn the approaches we use in consulting into open-source products. filex is an MIT-licensed, self-hosted file manager. It runs as a single Go binary and can be embedded into other products as a Vue, React or web component. The source code is at github.com/BRF-Tech/filex, the project site is filex.sh, and a live demo runs at demo.filex.sh. RunR is an MIT-licensed, open-source serverless platform that runs on your own Kubernetes cluster. It runs functions, containers and WebAssembly on Knative and scales them to zero when they are idle. The source code is at github.com/BRF-Tech/runr, the project site is runr.sh, and a live demo runs at demo.runr.sh.
[?]Which languages do you work in?▾
We work in Turkish and English. Calls, emails and proposals are handled in whichever of the two you prefer.
[?]How can I get in touch?▾
Use the form in the Contact section, write to the email address listed there or call the phone number shown next to it. Our working hours are weekdays 09:00-18:00 (UTC+3), and we reply within 24 hours on average.
Automated build, test and deployment pipelines with GitHub Actions, GitLab CI/CD.
Automated build, test and deploy pipeline setup for existing or new repositories. GitHub Actions, GitLab CI/CD or preferred tool is used. Separate workflows are defined for staging + production environments.
Container architecture migration, cluster setup and orchestration.
Production-ready Kubernetes cluster setup on bare-metal or cloud. Includes Helm charts, Ingress, TLS certificate management, namespace isolation and RBAC.
Cozystack is an open-source cloud platform built on Kubernetes and the VMware alternative we recommend most. Virtual machines run on KubeVirt, while managed PostgreSQL, MySQL, Redis and Kafka services and dedicated tenant Kubernetes clusters are provisioned from the same dashboard and API. Includes installation on your own bare-metal servers on Talos Linux, replicated storage with LINSTOR/DRBD, network isolation with Kube-OVN, tenant and quota structure, monitoring, backup and a disaster recovery plan. After deployment we also handle upgrades, operations and support; since the platform is open source, there are no license fees and no vendor lock-in.
Packages
Virtual machine support on an existing Kubernetes cluster with KubeVirt
$2,800
4-6 person-days
Pilot setup (3 nodes, virtual machines + managed database)
$3,500
5-8 person-days
Production setup (HA + replicated storage + monitoring + backup)
$6,500
10-16 person-days
Multi-tenant private cloud (tenants, quotas, managed service catalog)
Planned, low-downtime migration of vSphere/ESXi environments to Cozystack, OpenStack or VHI.
A planned move to a VMware alternative for environments whose costs rose after Broadcom moved VMware licensing to subscription bundles, or whose renewal is coming up. We start with an inventory of your vSphere/ESXi estate (virtual machines, disks, networks, dependencies), then compare today's license cost with the total cost of the target platform. In most environments the target is Cozystack; OpenStack fits large-scale IaaS needs and Virtuozzo Hybrid Infrastructure fits storage-heavy service providers. A pilot runs on non-critical virtual machines, disks are converted with tools such as virt-v2v and Forklift, and the migration proceeds in waves within maintenance windows, with a rollback plan for every step.
Packages
Inventory + cost comparison + migration plan
$2,400
3-5 person-days
Pilot migration (up to 10 virtual machines)
$3,500
5-8 person-days
Phased migration (up to 100 virtual machines)
$9,750
15-22 person-days
Full data center migration (network + storage + backup)
OpenStack deployment, Neutron networking, Ceph/Cinder storage, upgrades and operations.
OpenStack deployment and operations in your own data center. A containerized, highly available control plane with Kolla-Ansible; Nova (compute), Keystone (identity), Glance (images) and Horizon (dashboard). On the network side, Neutron with OVN, VLAN/VXLAN, provider and tenant networks, floating IPs and the Octavia load balancer; on the storage side, Cinder block storage on Ceph RBD and optional S3-compatible object storage. For existing deployments: health checks, planned upgrades between releases, monitoring and alerting setup, and a backup strategy.
Packages
Health check + improvement report (existing deployment)
$2,400
3-5 person-days
Lab / PoC setup (single region, 3 nodes)
$3,500
5-8 person-days
Release upgrade (existing deployment)
$3,900
6-10 person-days
Production setup (HA control plane + Ceph + Neutron/OVN)
Hyperconverged infrastructure: multi-tenant cloud plus block and S3-compatible storage for service providers.
Hyperconverged infrastructure with Virtuozzo Hybrid Infrastructure, where compute, storage and networking run on the same servers. Block, S3-compatible object and NFS storage on software-defined storage, plus backup storage (Backup Gateway) for backup products such as Acronis. For service providers: a multi-tenant cloud with domains and projects, quotas, a self-service panel and an OpenStack-compatible API. Includes hardware sizing, network design, cluster deployment and expansion, version upgrades and operations support.
Packages
Pre-deployment assessment + hardware sizing
$2,400
3-4 person-days
Version upgrade / cluster expansion
$2,800
4-6 person-days
Hyperconverged cluster setup (storage + compute)
$3,900
6-10 person-days
Service provider setup (multi-tenant cloud + S3 + backup storage)
Migration of existing applications to container architecture.
Migration of existing applications to container architecture. Docker image design, Compose configuration and conversion to Kubernetes manifests. Kata Containers / gVisor can be included for advanced isolation.
Health check of your current environment, capacity planning, platform selection and a roadmap.
An independent assessment of your current virtualization environment (VMware vSphere, OpenStack, VHI or other KVM-based platforms). The health check covers cluster configuration, resource overcommit, storage latency, forgotten snapshots, backup and patch status. Capacity planning measures CPU, memory and storage growth to work out the hardware you will need next. Platform selection decides which workload should run where: Cozystack for teams running containers and virtual machines side by side, OpenStack for large-scale IaaS, VHI for storage-heavy service providers; staying on the current platform is also an option for some workloads. The deliverable is a written report with a cost comparison and a prioritized roadmap.
In-house tools like GitLab, Nextcloud, VPN, mail server.
Installation of tools like GitLab, Mattermost, Nextcloud, mail server, VPN, internal monitoring on company servers. Deployed on Docker Compose or Kubernetes.
DB + cache + code bottleneck identification and resolution.
Profiling of existing application, identification and resolution of bottlenecks. DB query optimization, caching layer (Redis), service-level improvements.
MCP/ACP agents, RAG pipelines, multi-agent orchestration, model serving.
LLM integration (OpenAI, Claude, Gemini, local models), tool-augmented AI agents with MCP (Model Context Protocol) and ACP (Agent Communication Protocol). RAG pipeline, multi-agent orchestration, model serving (vLLM/Ollama). AI layer for existing business processes.
Event-driven data pipeline with Apache Kafka, RabbitMQ, NATS. ETL/ELT orchestration with Apache Airflow, real-time data streaming, CDC (Change Data Capture). Data lake/warehouse design, schema registry, dead letter queue management.
Packages
Kafka/RabbitMQ setup + basic producer/consumer
$3,500
5-7 person-days
ETL pipeline (Airflow + source → warehouse)
$5,200
8-12 person-days
Full event-driven architecture (CDC + streaming + DLQ)
Hands-on technical training for your teams. Docker & container fundamentals, Kubernetes operations, Terraform IaC, CI/CD best practices, AI/LLM integration workshops. Practical exercises in live lab environments, content customized by skill level.
E2E test automation with Playwright, Cypress, load testing with k6/Gatling. Pre-deploy quality gate integrated into CI/CD pipeline, test coverage reporting, visual regression testing. Reduce test writing time by up to 60% with AI-assisted test generation.
Your Collected Personal Data, Collection Method and Legal Basis
Any information that identifies or makes you identifiable is considered "personal data." When you visit our website or use our services, contact information such as your name, surname, email address, phone number, as well as your IP address and browser cookie data may be collected through automatic or semi-automatic means. This data is processed based on the legal grounds specified in Article 5 of the Personal Data Protection Law No. 6698: "being directly related to the establishment or performance of a contract" and "being mandatory for the legitimate interests of the data controller, provided that it does not harm the fundamental rights and freedoms of the data subject."
Purpose of Processing Your Personal Data
Your collected personal data is processed for the purposes of providing and improving our services, fulfilling customer requests, meeting legal obligations, conducting information security processes and managing communication activities. Your data is processed in a limited and proportionate manner for the stated purposes; when the purpose ceases to exist, data is deleted, destroyed or anonymized.
To Whom and For What Purposes Collected Personal Data May Be Transferred
Your personal data may be transferred to public institutions and organizations as required by legal regulations, to our business partners and technical infrastructure providers for the purpose of delivering services, and to lawyers and consultants in legal disputes. Transfers are carried out in accordance with Articles 8 and 9 of the Law, with necessary technical and administrative measures in place.
Your Rights as a Data Subject
In accordance with Article 11 of Law No. 6698, you have the right to: learn whether your personal data is being processed; request information if it has been processed; learn the purpose of processing and whether it is used in accordance with its purpose; know the third parties to whom it is transferred domestically or abroad; request correction if it has been processed incompletely or incorrectly; request deletion or destruction within the framework of conditions set out in Article 7 of the Law; request that the operations carried out be notified to third parties to whom data has been transferred; object to any adverse result arising from the analysis of data exclusively through automated systems; and claim compensation for damages in case of unlawful processing. You may contact us through the communication channels on our website to exercise these rights.
Terms & Conditions
Terms & Conditions
1. Service Scope and Changes
BRF Tech conducts its software development, DevOps consulting, infrastructure setup and technical support services within the framework of these terms and conditions. The scope of service is determined separately for each project and finalized through mutual agreement. BRF Tech reserves the right to update the scope, pricing and technical details of its services, provided that prior notice is given.
2. Privacy Policy
Personal data collected within the scope of our services is processed in accordance with our Privacy Policy. For detailed information, please review our Privacy Policy page.
3. Service Usage and Responsibilities
Clients agree to use the provided services solely within legal and ethical boundaries. BRF Tech reserves the right to suspend or terminate services in the event of misuse, violation of third-party rights, or use for illegal activities. The client is responsible for the accuracy and currency of the information provided within the project scope.
4. Payment Terms
Payment terms are determined on a project basis and finalized through mutual agreement at the start of the project. Unless otherwise specified, invoices are payable within 15 days of project delivery. A monthly late payment interest of 2% may apply to overdue payments.
5. Cancellation and Refund Policy
Cancellation requests must be submitted in writing at least 7 days before the service start date. For projects already in progress, billing is based on the proportion of completed work. No refunds are issued for software and infrastructure components specifically developed within the project scope.