Skip to content

new(spiffe/spire): SPIFFE reference implementation (CNCF graduated)#13091

Merged
jhheider merged 5 commits into
pkgxdev:mainfrom
tannevaled:new/spire
Jun 11, 2026
Merged

new(spiffe/spire): SPIFFE reference implementation (CNCF graduated)#13091
jhheider merged 5 commits into
pkgxdev:mainfrom
tannevaled:new/spire

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Summary

  • Adds projects/github.com/spiffe/spire/package.yml — the CNCF-graduated SPIFFE reference implementation.
  • Builds spire-server and spire-agent from source via the Go toolchain (CGO disabled, fully static).
  • LDFLAGS embed the tag via github.com/spiffe/spire/pkg/common/version.gittag so --version reports the right value (matches upstream Makefile).
  • skip: fix-patchelf since these are static Go binaries.
  • Supports linux + darwin (x86-64 + aarch64).

Test plan

  • CI builds spire-server + spire-agent on linux/x86-64
  • CI builds on linux/aarch64
  • CI builds on darwin/x86-64
  • CI builds on darwin/aarch64
  • spire-server --version reports the tag value
  • spire-agent --version reports the tag value

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

tannevaled and others added 4 commits May 29, 2026 17:46
SPIRE provides workload identity for distributed systems via the
SPIFFE specification — X.509 SVIDs and JWT SVIDs.

Ships the two daemons users run on-host:
  - spire-server: issues SVIDs, manages trust bundle + registration entries
  - spire-agent: runs on workload hosts, exposes the Workload API socket

Build: pure-Go, CGO disabled, fully static binaries (skip: fix-patchelf
for Linux). No vendored bits — full source compile from the release
tarball. LDFLAGS embed the tag via pkg/common/version.gittag so
`--version` reports the right value (matches upstream Makefile).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
spire-{server,agent} are daemons without --version. Test the binary
is executable and that the `run --help` subcommand exits cleanly.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
spire-server panicked at startup with
  semver: Parse(v1.15.1): Invalid character(s) found in major number "v1"
because the embedded gittag was the v-prefixed tag. The internal
semver.Parse rejects it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Pipefail propagates SIGPIPE (141) from the daemon when head -1 closes
its read end. The previous semver fix already validates the binary
isn't broken; just check executability.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jhheider jhheider merged commit 3f704fe into pkgxdev:main Jun 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants