WebAuthn and workload identities
Human and machine identity
WebAuthn authenticates a person using a public-key credential scoped to a relying party (RP). Passkeys are discoverable FIDO credentials that can be synced or device-bound. A workload identity represents a running service or job rather than a person. Both reduce dependence on reusable secrets, but they have different registration, recovery and revocation processes.
Registration and authentication
During registration the authenticator creates a credential key pair; the RP stores the public key and credential identifier after validation. At authentication the RP issues a fresh challenge and the authenticator produces signed evidence. The server verifies the challenge, origin, RP ID binding, signature and required user-presence or user-verification flags through a maintained library. The private key is not sent to the RP. User verification, such as a local PIN or biometric, is not the same as user presence.
Workload federation
A fictional invoice job receives short-lived identity evidence from its approved runtime identity provider. A target service or credential broker validates the issuer, audience and subject binding before granting a narrow role. SPIFFE is one model for giving workloads cryptographic identity documents (SVIDs) within trust domains. Short lifetimes reduce the duration of exposure but renewal must be monitored and compromised identities still require containment.
Worked comparison
A finance analyst registers a passkey and uses it to sign in; a nightly export job obtains a credential for the export API without an interactive human login. The analyst needs a verified recovery route for a lost device. The job needs an owner, a restricted runtime binding, automated renewal and a disable switch. Neither identity should share the other’s credential. Log identity identifiers and decisions rather than credential material.
Practice: lifecycle mapping
For a mock employee and a build job, write down issuance, storage, renewal or registration, recovery and removal steps. Mark who approves each action. If an employee leaves, disable account access and retire credentials under policy. If a job is retired, revoke its runtime entitlement and stop renewal. Do not assume a passkey eliminates all recovery risks or that short-lived credentials eliminate authorization checks.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
WebAuthn and workload identities — knowledge check
Apply federation and token validation principles to fictional scenarios.
What does a WebAuthn RP retain?
Why is a fresh challenge needed?
What does workload identity represent?
What does short credential lifetime reduce?
What should a retired job lose?