Skip to content
IAM Insights

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

share
5 findings7 segmentsNon-human identityStandards
26 minutes of video. With Junyuan Zeng, speaker, LinkedIn; Wei Zhang, speaker, LinkedIn.
Claims draw on 6 of 7 segments. The most cited, at 21:28–26:18, backs 3.
0:02–3:58 · Why LinkedIn replaced its internal PKI with SPIRE · not cited3:58–7:06 · Trust model and deployment topology · 2 claims7:24–13:24 · Building trust: TPM node attestation tied to asset database · 2 claims13:31–15:56 · Identity issuance: registration controllers and workload attestation · 1 claim15:58–19:36 · Agentless SPIRE: gRPC service with GitHub OIDC · 1 claim19:39–21:09 · Lessons learned · 1 claim21:28–26:18 · Q&A: governance of registration, first-fetch latency, human identity · 3 claims
0:00not cited1 claim23+26:18
01

What's happening

Finding5
BI-FIND-2025-0221Lead finding

A 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.

high confidencebest source: practitionersobserved Nov 2025Evidence07:24
flag a problem with BI-FIND-2025-0221
Figure steps
  1. Before a node is first powered on, data-centre provisioning records its switch port and cabinet in the asset database.
  2. 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.
  3. The service checks the location against the asset database. This is the step that ties the chip to LinkedIn's own record.
  4. On a match, the endorsement key hash is saved to the EK database.
  5. The SPIRE agent attests with the TPM, and the SPIRE server checks that the key hash is registered.
  6. The server issues a certificate bound to the agent's private key, which sits inside the TPM.
Fig. 1

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 →

BI-FIND-2025-0224

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.

high confidencebest source: practitionersobserved Nov 2025Evidence15:5821:28
flag a problem with BI-FIND-2025-0224
BI-FIND-2025-0222

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.

medium confidencebest source: practitionersobserved Nov 2025Evidence07:2403:58
flag a problem with BI-FIND-2025-0222
BI-FIND-2025-0223

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.

medium confidencebest source: practitionersobserved Nov 2023 – Nov 2025Evidence03:5819:3921:28
Also reported in +1 briefing
flag a problem with BI-FIND-2025-0223
BI-FIND-2025-0225

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.

medium confidencebest source: practitionersobserved Nov 2023 – Nov 2025Evidence13:3121:28
Also reported in +1 briefing
flag a problem with BI-FIND-2025-0225
02

Part by part

7

showing 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

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

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

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

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

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

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

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

Terms used

PKI
The certificates, certificate authorities and key-management processes that bind public keys to identities, underpinning TLS, code signing and machine/workload identity.
TPM
A tamper-resistant chip on a device's motherboard that stores keys and signs on the device's behalf, so an identity can be tied to one physical machine.
Endorsement Key
Endorsement Key (EK): a TPM key derived from the chip's endorsement seed, whose manufacturer-issued certificate vouches that the TPM is genuine hardware.
Attestation
A signed statement that something is what it claims to be: which model an agent runs, what code it was built from, or which human owns it.
Certificate authority
An organization or service that signs digital certificates, vouching that a public key belongs to a named server, person or workload.
HSM
A dedicated hardware device that generates and stores cryptographic keys and performs signing/encryption operations inside a tamper-resistant boundary, so private keys never leave the device.
PIN
A short numeric code a person types to unlock a card, phone or security key; it proves something the person knows.
SPIFFE
Secure Production Identity Framework For Everyone: a set of standards, hosted as a graduated project of the Cloud Native Computing Foundation (CNCF), that issues short-lived cryptographic identities to workloads in place of shared secrets.

Cited in our columns

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity