TL;DR: A Docker, GitHub Actions, and EKS pipeline builds hundreds of kernel-specific drivers daily across six Linux distributions and two CPU architectures, using matrix diffs and autoscaling to keep builds incremental and reproducible, according to Riptides. The deeper lesson is that workload identity platforms depend on operationally disciplined build systems, because kernel coverage, release cadence, and delivery speed are part of the trust boundary.
At a glance
What this is: This is a build-systems analysis of how kernel-level workload identity tooling can be compiled and shipped at scale across many Linux versions and architectures.
Why it matters: It matters because identity and enforcement controls that sit in the kernel inherit the reliability, velocity, and supply-chain risks of the build pipeline that produces them.
👉 Read Riptides' post on automated multi-distro kernel driver builds
Context
Kernel-level identity tools only work when the build and release path can keep pace with upstream kernel churn. In this case, the challenge is not just compilation, but producing the right driver for the right distribution, kernel release, and CPU architecture without losing reproducibility or control.
For IAM and NHI teams, this is a workload identity problem as much as an engineering problem. The build pipeline becomes part of the security posture because it determines how quickly enforcement code, telemetry hooks, and policy components can be refreshed across the fleet.
Key questions
Q: How should teams govern kernel-level workload identity build pipelines?
A: Treat the build pipeline as part of the security control plane. Lock down the matrix source, container images, runner permissions, and artifact publication path so a kernel driver release remains reproducible, auditable, and narrowly scoped to approved platform combinations.
Q: Why do kernel version and architecture changes complicate workload identity delivery?
A: Because each kernel, distribution, and CPU architecture combination can require different headers, flags, and compilation paths. That multiplication of variants increases the chance of drift between intended enforcement and what actually runs on the host.
Q: What breaks when driver builds are not incremental?
A: CI queues grow, rebuilds waste time, and patched artifacts take longer to reach the fleet. In kernel-facing identity tools, that delay matters because enforcement code and host kernel compatibility need to move together.
Q: Who should own release decisions for kernel-backed identity controls?
A: Platform engineering and identity security should share ownership, with security setting trust requirements and platform teams operating the build and delivery path. If those responsibilities are split too loosely, the organisation loses visibility into how runtime controls are produced and changed.
Technical breakdown
Multi-distro kernel matrix generation
A kernel driver matrix is the cross-product of supported distributions, kernel releases, and architectures. In practice, that means each build needs an exact header set, toolchain, and output path that matches the target runtime. The article's matrix-gen approach turns a broad compatibility problem into a structured JSON manifest, then filters it to the active support window. That is the right abstraction for at-scale kernel delivery because it separates discovery of available kernels from the build job that consumes them.
Practical implication: define support boundaries explicitly and generate build targets from a machine-readable manifest rather than ad hoc scripts.
Incremental builds and matrix diffs
Incremental builds matter because kernel ecosystems change continuously. If you rebuild every supported variant every night, CI cost and queue time explode. The pipeline described here compares the previous matrix to the newly generated one and only schedules changed entries. That is a classic release-engineering optimisation, but it has security value too: it shortens the time between kernel patch availability and compatible driver publication, which reduces exposure to drift between enforcement code and the host kernel.
Practical implication: treat matrix diffing as a release control, not just a build optimisation.
Elastic runner fleets for reproducible driver builds
Containerised builds on self-hosted runners reduce host drift, while autoscaling runners and nodes prevent the build farm from becoming a bottleneck. The architecture uses a two-tier scaling model, with runner autoscaling absorbing short-term queue spikes and cluster autoscaling adding capacity underneath. That design is especially relevant for kernel work because builds often need isolated toolchains, distro-specific dependencies, and arch-specific execution. Reproducibility comes from the container image; elasticity comes from the orchestration layer.
Practical implication: separate build reproducibility from fleet elasticity, and scale the runner layer independently from the compute layer.
NHI Mgmt Group analysis
Workload identity platforms inherit their risk posture from the build systems that ship them. When kernel modules, telemetry hooks, or enforcement binaries are updated across many distributions, the delivery chain becomes part of the identity trust boundary. If that chain is brittle, the platform can neither prove timeliness nor consistency across the estate. The practitioner conclusion is that build reliability is an identity control surface, not just an engineering convenience.
Matrix explosion is the operational form of trust fragmentation. Kernel version, distribution, and architecture changes multiply the number of artifacts that must be correct at the same time. That complexity does not create new identity semantics, but it does create more places for drift between intended policy and deployed enforcement. The practitioner conclusion is that support matrices must be governed as security scope, not simply as release scope.
Declarative, containerised builds reduce environmental variance, but they do not remove supply-chain responsibility. A reproducible image helps standardise toolchains, yet the trust model still depends on who can modify the Dockerfiles, the matrix source, and the runner configuration. That means kernel delivery should be audited like any other privileged change path. The practitioner conclusion is to treat build inputs, runner permissions, and artifact publication as governed identity-adjacent controls.
Elastic CI for kernel code is a pattern other identity teams will need as enforcement moves closer to the runtime. The same operational pressure appears in workload identity, agent policy enforcement, and kernel-backed telemetry, where delivery speed and consistency are inseparable. The broader signal is that identity programmes are becoming more infrastructure-dependent, not less. The practitioner conclusion is to align release engineering and identity governance before runtime controls outgrow manual build paths.
Kernel-level identity only scales when release engineering is disciplined enough to keep trust synchronized with platform churn. This is the named concept that sits underneath the article: the identity blast radius is no longer just a credentials problem, it is a delivery problem. When the enforcement layer is compiled per kernel and per architecture, the organisation must govern the pipeline with the same seriousness as the identity it is meant to protect. The practitioner conclusion is to make build-system governance part of workload identity strategy.
From our research:
- 97% of NHIs carry excessive privileges, increasing unauthorised access and broadening the attack surface, according to Ultimate Guide to NHIs.
- Only 5.7% of organisations have full visibility into their service accounts, which makes build and delivery governance harder to validate across runtime identity pipelines.
- For a broader view of lifecycle and trust controls, see Ultimate Guide to NHIs and Guide to SPIFFE and SPIRE.
What this signals
Kernel-backed identity is becoming a release-engineering problem as much as a security problem. Teams that operate workload enforcement at the host layer will need tighter coordination between platform, security, and CI ownership because the delivery path now determines how quickly controls adapt to kernel churn. The practical signal is to map build permissions and artifact publication into the same governance model used for privileged infrastructure changes.
Matrix-driven delivery will matter more as fleets diversify across architectures and distributions. As support footprints expand, manual rebuilds stop being viable and the build manifest becomes a policy object in its own right. That is the point where release engineering starts to look like identity governance for machines, and teams should prepare to audit the build inputs as carefully as the runtime policies they enforce.
With 97% of NHIs carrying excessive privileges, according to the Ultimate Guide to NHIs, the lesson is that runtime identity controls are only as trustworthy as the pipeline that produces them. Teams should watch for build systems that can change enforcement code faster than they can prove provenance, because that is where control assurance starts to drift.
For practitioners
- Govern the kernel support matrix as a security boundary Define the supported combinations of distro, kernel release, and architecture as an explicit policy object. Review changes to that matrix the same way you review privileged infrastructure scope, because every new target increases the number of artifacts that must remain trustworthy.
- Make matrix diffs the trigger for release work Use a machine-generated manifest and compare it against the last published state so only changed entries build again. That keeps the pipeline incremental and gives security and platform teams a clear audit trail for why a given driver was rebuilt.
- Isolate build reproducibility from runner elasticity Keep toolchains in immutable containers and scale runners separately from cluster nodes. That separation makes the build environment predictable while still letting the fleet expand and contract with demand.
- Audit the trust path from source matrix to artifact bucket Control who can modify the matrix generator, the Dockerfiles, the runner configuration, and the S3 publication path. Those inputs determine whether the published driver is a governed release or just a fast compile.
Key takeaways
- Kernel-level identity controls depend on a governed build pipeline, not just on correct code.
- Matrix explosion across distros, kernels, and architectures turns delivery speed into a security requirement.
- Platform teams should treat build inputs, runner permissions, and artifact publication as part of workload identity governance.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Covers credential and artifact handling in governed NHI delivery paths. |
| NIST CSF 2.0 | PR.AC-4 | Access control applies to runners, matrix sources, and artifact publication paths. |
| NIST Zero Trust (SP 800-207) | PR.AC-1 | Zero trust principles apply to workload enforcement and delivery pipeline trust boundaries. |
Assume the build environment is hostile and continuously verify inputs, outputs, and runner identity.
Key terms
- Kernel Driver Matrix: A kernel driver matrix is the set of supported combinations of distribution, kernel release, and CPU architecture that a build pipeline must produce. In workload identity and telemetry tooling, the matrix defines the operational scope of trust because each variant must compile, sign, and deploy correctly.
- Incremental Build Diff: An incremental build diff compares the last published artifact set with the newly generated target set and rebuilds only what changed. For kernel-backed identity controls, this reduces queue time and keeps security updates aligned with host kernel churn without rebuilding every supported variant.
- Runner Elasticity: Runner elasticity is the ability to scale CI execution capacity up and down with build demand. In security-sensitive build systems, elasticity matters because it lets teams absorb spikes without sacrificing reproducibility, while still keeping the execution environment tightly controlled.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
This post draws on content published by Riptides: Kernel Building Linux Driver at Scale. Read the original.
Published by the NHIMG editorial team on 2025-07-28.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org