Open-source project
spiffe/spire avatar
spiffe/spire

SPIRE attests workloads so they can authenticate each other, and its last audit is from 2021

The SPIFFE Runtime Environment

2,633 stars709 forksGoApache-2.0

At a glance

What is it?
SPIRE is the SPIFFE Runtime Environment: it attests running software and hands out SPIFFE IDs and SVIDs so two workloads can authenticate each other over mTLS or a signed JWT. It is a graduated CNCF project with three container images, a scratch based image with no shell, a dependency list covering every major cloud, and a third party audit dated February 2021.
Who is it for?
SPIRE is the right shape of answer when the question is which workload is allowed to talk to which, and your platform already speaks container orchestration or cloud identity.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • spiffe/spire2,633 ★ · +72
Star history
Repository2026-09-302026-11-22
spiffe/spire2.6k2.6k

72 Stars in the last 53 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The newest third party audit on record is from February 2021

The security section is specific about dates, and the dates are old. Cure53 completed a security audit of SPIFFE and SPIRE in February of 2021. The CNCF Technical Advisory Group for Security ran two earlier assessments, in 2018 and in 2020. All of those are linked as a set: the Cure53 report as a PDF in the tree, a summary and a full self assessment hosted in the CNCF tag-security repository, and a blog post about scrutinizing the security design.

Compare that with the release line. The recent tags are v1.15.1, v1.15.2 and v1.15.3, the last one dated 2026-08-21, and the repository itself was pushed to on 2026-10-02. So the most recent external audit predates the current code by more than five years, and the project is candid enough to keep pointing at it rather than replacing the links.

Reporting has a defined shape too. Vulnerabilities go to a single security mailbox, the acknowledgement is a confirmation email, and a second email follows once the issue has been identified as real or not real. There is no bounty mentioned and no disclosure timeline stated, which is normal but worth knowing if you are the one reporting.

Attestation is the mechanism, and identity is the output

The core loop is short. SPIRE exposes the SPIFFE Workload API, that API can attest running software systems, and attestation is what produces a SPIFFE ID and one or more SVIDs. Two workloads holding identities from the same trust domain can then establish trust with each other, by opening an mTLS connection or by signing and verifying a JWT.

That second use is the one that makes SPIRE more than a certificate service. The same mechanism is what lets a workload authenticate to a secret store, a database, or a cloud provider service, so the identity issued by attestation is reusable against systems that know nothing about SPIRE.

The vocabulary has two layers and they are easy to blur. SPIFFE is the specification and the identity format, SPIRE is the runtime environment that implements it, and an SVID is the credential itself. The project is careful about the split: the specification, its IDs and its Workload API standard live in the separate `spiffe/spiffe` repository, and governance for both sits there too rather than in the implementation tree.

Maturity is published rather than asserted. The badge row links to a MATURITY document inside the specification repository, anchored at its production section, so the production claim is a document you can read rather than a sentence in a readme.

One release, two binaries, three images

The distribution story is deliberately dull. Pre-built releases are published on the project's releases page, and each one contains both the SPIRE Server and the SPIRE Agent binaries. There is no separate download for the agent and no separate download for the server, which means a deployment that only needs an agent still pulls a release with both in it.

Container images are a different arrangement and there are three of them: `spire-server`, `spire-agent` and `oidc-discovery-provider`, all published on ghcr.io. That third image is the one that is easy to miss. Nothing in the description explains it, so a reader has to infer that if they need to hand out OIDC discovery documents, it is not part of the server image.

There is a third path, which is to build from source. The tree carries three Dockerfiles rather than one, a plain `Dockerfile`, a `Dockerfile.dev` and a `Dockerfile.windows`, which lines up with a project that supports Kubernetes, Linux and macOS quickstart guides. The images are the normal path, and the Dockerfile is the thing to read when you need to know what is inside them.

The dependency list is a map of every cloud it can federate with

The module is `github.com/spiffe/spire` and it declares Go 1.27.1. The require block is long, and reading it tells you more about SPIRE's integration surface than any feature list would.

Google appears four times over: IAM, KMS, Secret Manager, Storage and Security. Azure brings in the identity client, key vault keys, blob storage, and the resource manager packages for compute, network, resources and resource groups. AWS is the widest: the v2 SDK with config and credentials, the EC2 instance metadata service, EKS, IAM, KMS, autoscaling, Organizations, resource group tagging, an RDS auth token package, and a private certificate authority service. Those two last entries are the ones that matter conceptually, because a private CA client is how an external trust domain gets signed by your own authority.

Then the long tail, which is where the project's actual integrations live. A Keyfactor EJBCA client SDK for another CA, the Cloud SQL proxy, sprig for templating configuration, Windows named pipes through `go-winio`, and a clock library pinned to a commit from 2016. Nothing in that list is optional decoration; each one is a federation or a platform path that would fail to build without it.

The module also sits under a working directory called `.data/` in the tree and carries a `.spire-tool-versions` file at the root, which is a pinned tool version list for the CLI tooling rather than for the binaries.

The runtime image is scratch, and every binary is checked for static linkage

The Dockerfile pins by digest and the comments explain why. The cross compilation helper is referenced with a lookup line and a real pin:

code
# crane digest tonistiigi/xx:1.3.0
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0@sha256:010d4b66aed389848b0694f91c7aaee9df59a6f20be7f5d12e53663a37bd14e2 AS xx

The comment above it says that when the version is bumped it should be analyzed for security issues and then looked up with crane so the pin is immutable. The lookup line still names 1.3.0 while the pin is 1.7.0, so the documented procedure has drifted from the thing it documents.

The build itself enables cgo, then selects a musl cross compiler per architecture, and finishes by verifying every executable it produced:

code
if [ "$TARGETARCH" = "arm64" ]; then CC=aarch64-alpine-linux-musl; elif [ "$TARGETARCH" = "s390x" ]; then CC=s390x-alpine-linux-musl; fi && \
make build-static git_tag=$TAG git_dirty="" && \
for f in $(find bin -executable -type f); do xx-verify --static $f; done

arm64 and s390x get named cross compilers, and the loop fails the build on anything that turns out not to be static. The final stage is `FROM scratch`, and the only thing copied into it is the CA certificate bundle plus a working directory of `/opt/spire`. A prep stage on alpine builds the whole `/spireroot` tree, including a private run directory and a temporary directory. So the shipped image has no shell, no package manager and no configuration files of its own, which is the right default for something holding trust material.

The Makefile stays quiet until you pass V=1

The first thing the Makefile does is unset a variable on purpose. GOROOT is exported empty if it was set, with a comment saying there is no reason it should be set anymore and that leaving it in the way breaks go toolchain detection. Then there is the echo flag, which is why a build is silent by default:

code
E:=@
ifeq ($(V),1)
	E=
endif

Every recipe prefixes its commands with that variable, so `make V=1` is how you see what is being run. Colour is handled the same defensive way, with `tput` probed and an empty fallback if it is missing, which is the difference between a Makefile that works in a minimal container and one that does not.

The help text is unusually informative. `build` is the default target and builds all SPIRE binaries, `all` chains build, lint and test, and there is a `race-test` for unit tests with race detection. The integration targets need Docker images and accept environment variables rather than flags: `SUITES` selects specific suites, `IGNORE_SUITES` skips them, and the documented example is `SUITES='suites/join-token suites/k8s' make integration`. A separate `integration-windows` target takes the same variables with a windows suite name.

An examples directory that holds one file

The tree has an `examples/` directory and its entire contents are a single README. The working examples live elsewhere, in a separate `spire-examples` repository and a separate `spire-tutorials` repository, both linked from the front page.

The same split runs through the documentation. Design goals and architecture are on the site rather than in the tree, and the quickstart guides for Kubernetes, Linux and macOS are hosted there too. What stays in the repository is the operational layer: `doc/supported_integrations.md` for the versions SPIRE is tested against, `doc/scaling_spire.md` for scaling guidelines and deployment models, plus `ADOPTERS.md` listing production adopters and use cases, `ROADMAP.md` for planned work, `SECURITY.md`, `RELEASING.md` and `MAINTAINERS.md`.

So the repository you clone gives you the server, the agent and the process for producing releases, and it expects you to pick up usage from somewhere else. That is a defensible split for a foundation project with a documentation site, and it does mean the first hour with SPIRE is spent in a browser rather than in the source.

Official client libraries stop at Go and Java

Client libraries for the Workload API are officially maintained in exactly two languages, Go and Java. Everything else appears on a separate usage examples page that collects official and community libraries along with code samples, which means a team writing in any other language is reading community code for a security critical call.

The Envoy path is the one integration described in enough detail to plan around. SPIRE implements the Envoy Secret Discovery Service, and SDS is used to install and rotate TLS certificates and trust bundles in Envoy transparently, so a sidecar picks up rotated material without a restart. Supported integration versions are tracked in a document rather than implied by the release number, which is the file to check before you pin.

Beyond integrations, the plugin framework is where extension work happens, and the project describes it as highly extensible with its own documentation page. There is also a comparisons page that positions SPIRE against secret stores, identity providers, authorization policy engines and service meshes, which is the fastest way to decide whether you need this at all, and a free book about SPIFFE and SPIRE that the front page links by name.

Editorial conclusion

SPIRE is the right shape of answer when the question is which workload is allowed to talk to which, and your platform already speaks container orchestration or cloud identity. Before you rely on it, check four things: the newest third party audit on record is Cure53 from February 2021, and the CNCF security assessments are from 2018 and 2020, so those documents describe an older codebase than the v1.15.x line you would install; a release ships two binaries, the server and the agent, so both halves have to be deployed; officially maintained client libraries exist for Go and Java only, and everything else is community maintained; and supported integration versions are tracked in a separate document rather than implied by the release. Anyone who needs audited evidence for a compliance review should budget for a fresh assessment rather than cite the 2021 report.

Frequently asked questions

What does SPIRE actually do?

It is the SPIFFE Runtime Environment, a toolchain of APIs for establishing trust between software systems. It exposes the SPIFFE Workload API, which attests running systems and issues SPIFFE IDs and SVIDs, so two workloads can authenticate each other with mTLS or by signing and verifying a JWT.

What comes in a SPIRE release, and what container images exist?

Each release contains both the SPIRE Server and SPIRE Agent binaries. Container images are published separately for spire-server, spire-agent and oidc-discovery-provider, and the project can also be built from source with three Dockerfiles in the tree.

When was SPIRE last audited by a third party?

Cure53 completed a security audit of SPIFFE and SPIRE in February of 2021, and the CNCF Technical Advisory Group for Security ran two assessments in 2018 and 2020. Vulnerabilities are reported to [email protected] with an acknowledgement email and a second email once the issue is identified.

Which client libraries for SPIRE are maintained by the project?

Go and Java are the officially maintained client libraries for the SPIFFE Workload API. A usage examples page collects the official and community libraries together with code samples.

How does SPIRE work with Envoy?

It implements the Envoy Secret Discovery Service, which installs and rotates TLS certificates and trust bundles in Envoy transparently. A separate document in the tree lists the supported integration versions.

Official sources

  1. License: Apache-2.0
  2. Project website
  3. README
  4. Releases
  5. spiffe/spire on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/spiffe-spire.svg)](https://hysenlabs.com/projects/spiffe-spire)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/spiffe-spire.svg)](https://hysenlabs.com/projects/spiffe-spire)

Was this useful?