auth-yes/spire/templates/agent.conf
google-labs-jules[bot] 4360d67064 feat: Package generic SPIRE images and simplify compose volume
This implements custom Alpine-based Smart SPIRE Server and Agent Docker
images with self-seeding configuration entrypoints. It also updates
the docker-compose configuration to utilize a single host storage volume
and a dedicated named socket volume. Setup build pipelines are expanded to
compile and push these custom SPIRE images.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-23 17:20:11 +00:00

52 lines
1.9 KiB
Plaintext

# ==============================================================================
# SPIRE Agent Configuration
# Auth-Yes Identity & Access Management Fabric
# ==============================================================================
# The SPIRE Agent runs as a local node daemon, attesting workloads (e.g. Docker
# containers) and serving the Workload API UNIX domain socket.
# ==============================================================================
agent {
# Directory where the SPIRE agent caches SVIDs, bundles, and keys.
data_dir = "/opt/spire/data/agent"
# Logging verbosity: DEBUG, INFO, WARN, ERROR
log_level = "INFO"
# Address and port of the SPIRE Server container within the internal network.
server_address = "spire-server"
server_port = "8081"
# UNIX Domain Socket Path exposed to workloads for zero-trust identity fetching.
socket_path = "/var/run/spire/agent.sock"
# Must match the SPIRE Server's trust_domain.
trust_domain = "system.local"
}
plugins {
# ----------------------------------------------------------------------------
# NodeAttestor Plugin: Authenticates this agent with the SPIRE Server.
# ----------------------------------------------------------------------------
NodeAttestor "join_token" {
plugin_data {}
}
# ----------------------------------------------------------------------------
# KeyManager Plugin: Stores node-level private keys on disk.
# ----------------------------------------------------------------------------
KeyManager "disk" {
plugin_data {
directory = "/opt/spire/data/agent"
}
}
# ----------------------------------------------------------------------------
# WorkloadAttestor Plugin: Inspects running containers on Docker / Podman
# to grant SPIFFE SVIDs based on container image, labels, or names.
# ----------------------------------------------------------------------------
WorkloadAttestor "docker" {
plugin_data {}
}
}