Skip to content

源码与资料下载

把资料带走离线看,或直接拿脚本去复现。

本站资料包

资料内容下载
SPIRE 源码分析(中文)整体架构 + SVID 颁发全流程 + 高可用,共 3 篇带 file:line 走读的分析文档⬇ spiffe-cn-source-analysis.zip
实战脚本与配置三节点 lab 的 server.conf / agent.conf / K3S DaemonSet / demo 脚本(已去除凭据样本)⬇ spire-lab-scripts.zip

在线阅读:源码分析 · SPIRE 实战

SPIRE 官方源码与发布版

资源链接
SPIRE 源码(GitHub)https://github.com/spiffe/spire
浅克隆命令git clone --depth 1 https://github.com/spiffe/spire
官方发布版二进制https://github.com/spiffe/spire/releases
SPIFFE 规范仓库https://github.com/spiffe/spiffe
go-spiffe 客户端库https://github.com/spiffe/go-spiffe
官方教程 spire-tutorialshttps://github.com/spiffe/spire-tutorials

快速上手命令

bash
# 拉取 SPIRE 源码(浅克隆)
git clone --depth 1 https://github.com/spiffe/spire

# 生成节点一次性 join token(实验环境)
spire-server token generate -spiffeID spiffe://example.org/host

# 创建注册条目(unix uid 选择器示例)
spire-server entry create \
  -parentID spiffe://example.org/host \
  -spiffeID spiffe://example.org/workload \
  -selector unix:uid:1000

# 工作负载获取 X.509-SVID
spire-agent api fetch x509

想要一套开箱即用的加固基线 / 部署模板(高可用、KMS 托管、监控看板、合规映射)?见 高标准交付联系我们

内容基于 SPIFFE/SPIRE 官方开源资料整理与翻译,仅供学习交流;商标与版权归各自所有者。SPIFFE 与 SPIRE 是 CNCF 项目。