Briefing · Video · source · published · Boston Identity
A genuine TPM does not prove the server is LinkedIn's, so its SPIRE first checks the switch port and cabinet
Two LinkedIn security infrastructure engineers, Junyuan Zeng and Wei Zhang, walk through the SPIRE deployment that took over from an internal PKI built on a basic Python server in LinkedIn's own data centres. They register each node's TPM key only after its switch port and cabinet match the asset database. Asked who reviews the rules that decide which workload gets which identity, they named no one.
CNCF [Cloud Native Computing Foundation] · Uploaded November 24, 2025 · watch on YouTube
What's happening
Finding5A genuine TPM does not prove LinkedIn owns the machine, Zeng says, so LinkedIn also checks each node against the switch port and cabinet in its asset database.
Junyuan Zeng's point is that a TPM's vendor certificate chain proves the chip is genuine, not that LinkedIn owns the machine it sits in, so an attacker with a real TPM could pass the check. One answer LinkedIn uses is its data-centre provisioning workflow, which records each node's switch port and cabinet in the asset database before the node is first powered on; changing that record, he says, would take physical access to a data centre. At first boot a bootstrap OS reads the TPM's endorsement key, hashes it and sends the hash with the serial number and location to a LinkedIn service that checks them against the asset database. On a match the hash goes into the EK database, which SPIRE's node attestation checks against. Zeng adds that the agent's private key is certified to sit inside the TPM, and names checking the node's boot integrity as future work.
flag a problem with BI-FIND-2025-0221
Figure steps
- Before a node is first powered on, data-centre provisioning records its switch port and cabinet in the asset database.
- At first boot, the bootstrap OS sends the hash of the TPM's endorsement key, the serial number and the location to a LinkedIn service.
- The service checks the location against the asset database. This is the step that ties the chip to LinkedIn's own record.
- On a match, the endorsement key hash is saved to the EK database.
- The SPIRE agent attests with the TPM, and the SPIRE server checks that the key hash is registered.
- The server issues a certificate bound to the agent's private key, which sits inside the TPM.
LinkedIn trusts a node's TPM only once its location matches a record written before the node was first powered on.
Drawn from the speakers' own walkthroughSource dated November 24, 2025Passage: 07:24
Swipe for the full figure →
Where a SPIRE agent fits badly, as on Azure or macOS, LinkedIn runs without one, and a GitHub Actions job requests an X509-SVID with its GitHub OIDC token.
Where a SPIRE agent fits badly, LinkedIn runs without one: in environments the provider secures, such as Azure, on infrastructure it has little access to, and on non-Linux machines such as macOS. A gRPC service beside the SPIRE server authenticates requests and calls the server API over a Unix domain socket. In the GitHub Actions case, image signing among them, the job sends its GitHub OIDC token with an X509-SVID request, and the service validates the token against GitHub's OIDC provider and checks that its claims match the certificate signing request. The speakers say the agentless path is also faster to a first certificate, since one request does the work. With the agent, a first fetch could take 30 seconds to a minute even after they cut the sync interval from 30 to 15 seconds.
LinkedIn signs workload certificates with a CA key held in memory, having rejected HSM or TPM signing for the overhead it adds to every certificate, Zeng says.
LinkedIn signs workload certificates with a CA key held in memory. Zeng says the team weighed signing inside the HSM or the TPM and rejected both for the overhead they add to every leaf certificate. The HSM stores the signing CA, and at startup the SPIRE server unlocks it with a PIN kept in the TPM. The servers run on fully isolated hosts where only SPIRE and the services it launches may run. Each region has its own independent SPIRE cluster with five server instances per group, and Wei Zhang says the setup supports up to 50k nodes per cluster in practice.
LinkedIn wrote its own SPIFFE ID standard for workloads and users, and Zhang says moving to SVIDs meant updating internal authentication libraries and policies.
LinkedIn wrote its own SPIFFE ID standard, covering workloads and users and carrying location information in the X.509 certificate. Each environment has its own trust domain, with a CA chain whose URI name constraint keeps certificates valid only there. LinkedIn kept its own token server rather than SPIRE's tokens and moved it to the same format, user tokens included, which the speakers call a design choice for consistent libraries. Zhang says the internal authentication and authorization libraries and policies had to be updated. His lesson is that issuing certificates is only the beginning, because switching to SVIDs changes the authentication method itself, so the related changes have to be planned and rolled out with care.
Asked who reviews the policies behind LinkedIn's registration entries, the speakers said entry creation is logged but named no reviewer.
Registration entries decide which workload may hold which identity, and at LinkedIn custom controllers write them, watching internal APIs and updating entries as objects change; the fleet-wide kubelet TLS bootstrap is their example. An audience member asked who reviews and approves the policies behind those entries. The speakers answered that the controllers are ordinary internal gRPC services built on LinkedIn's internal libraries, that requests reach the SPIRE server through them over a Unix domain socket, and that entry creation is logged. They named no reviewer. We read this as the governance question for workload identity sitting in the registration layer, and still open at a large, mature deployment.
Part by part
7showing 7 of 7
[1]Why LinkedIn replaced its internal PKI with SPIRE
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 00:02–03:58
Non-human identityStandards
Why LinkedIn replaced its internal PKI with SPIRE
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 00:02–03:58
Two LinkedIn security infrastructure engineers say the handwritten Python PKI server lacked a standard identity format, rotation and tracking. They chose SPIFFE/SPIRE for on-prem data centres for its minimal dependencies, scalability, plugin extensibility and community support.
customer prooffrom publisher captions
[2]Trust model and deployment topology
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 03:58–07:06
Non-human identity
Trust model and deployment topology
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 03:58–07:06
Each environment gets its own trust domain and signing CA chain with URI name constraints. LinkedIn defines its own SPIFFE ID standard (workload, user, location) and keeps its own token server. Each region runs an independent SPIRE cluster, with the signing CA secrets in an HSM and five servers per group, and the setup supports up to 50k nodes per cluster.
customer prooffrom publisher captions
[3]Building trust: TPM node attestation tied to asset database
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 07:24–13:24
Non-human identity
Building trust: TPM node attestation tied to asset database
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 07:24–13:24
The signing CA is held in memory, because HSM and TPM signing added too much overhead. A genuine TPM does not prove LinkedIn owns the node, so EK public key hashes are registered at first boot after the switch port and cabinet are checked against the asset database. Agent keys are certified inside the TPM.
customer prooffrom publisher captions
[4]Identity issuance: registration controllers and workload attestation
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 13:31–15:56
Non-human identity
Identity issuance: registration controllers and workload attestation
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 13:31–15:56
Workload registration entries are updated dynamically by custom controllers watching APIs; the agent matches workload properties (UID, systemd, Unix plugins) and a custom stack-based attestor covers the rest. Kubelet TLS bootstrap fleet-wide is the worked example.
customer prooffrom publisher captions
[5]Agentless SPIRE: gRPC service with GitHub OIDC
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 15:58–19:36
Non-human identity
Agentless SPIRE: gRPC service with GitHub OIDC
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 15:58–19:36
Agent-based design fits poorly for many short-lived certificate requests, provider-secured clouds, limited infrastructure access and macOS. LinkedIn put a gRPC service in front of the SPIRE server over UDS; GitHub Actions presents its OIDC token plus an X509-SVID CSR, claims are matched to CSR attributes.
customer prooffrom publisher captions
[6]Lessons learned
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 19:39–21:09
Non-human identity
Lessons learned
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 19:39–21:09
Stay flexible via plugins and API; issuing certificates is only the beginning because it changes the authentication method, so libraries and policies must roll out together; invest early in observability; align early with other teams.
customer prooffrom publisher captions
[7]Q&A: governance of registration, first-fetch latency, human identity
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 21:28–26:18
Non-human identity
Q&A: governance of registration, first-fetch latency, human identity
Junyuan Zeng, LinkedIn · Wei Zhang, LinkedIn — 21:28–26:18
Asked who governs and reviews registration policy, the speakers say the controllers are ordinary internal gRPC services with logging, without naming a review owner. First-fetch latency was 30s to 1 min even after the sync interval was cut from 30s to 15s; agentless is faster. LinkedIn also uses the SPIFFE format for user tokens, as a design choice.
customer prooffrom publisher captions
