Enforce access checks for brokers in the k8s workloadattestor#1
Closed
matheuscscp wants to merge 2 commits into
Closed
Enforce access checks for brokers in the k8s workloadattestor#1matheuscscp wants to merge 2 commits into
matheuscscp wants to merge 2 commits into
Conversation
matheuscscp
force-pushed
the
sar-preview
branch
2 times, most recently
from
June 20, 2026 01:21
e49dc9a to
0701070
Compare
matheuscscp
force-pushed
the
broker-api
branch
2 times, most recently
from
June 23, 2026 21:44
b39ff10 to
cbb222f
Compare
matheuscscp
force-pushed
the
sar-preview
branch
2 times, most recently
from
June 24, 2026 00:23
b5604c2 to
730151f
Compare
matheuscscp
force-pushed
the
sar-preview
branch
2 times, most recently
from
June 24, 2026 01:34
e6a4e63 to
28c15ce
Compare
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
matheuscscp
force-pushed
the
sar-preview
branch
2 times, most recently
from
June 24, 2026 20:32
41f594a to
af85f66
Compare
kfox1111
reviewed
Jun 24, 2026
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
3 tasks
Owner
Author
|
Merged it to the main SPIRE PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preview for spiffe#7074
SPIRE PR: spiffe#6915
Adds broker-aware Kubernetes authorization checks to the k8s workload attestor. Broker-originated
Attest()/AttestReference()calls that reference Kubernetes objects now run a KubernetesSubjectAccessReviewbefore returning selectors. The SAR uses the broker SPIFFE ID as the username and no groups, and asks whether that user may use SPIRE's custom verbimpersonate-via-spireon the referenced object.For pod references, brokers can also set
pod_reference_scope. The defaultagent_nodescope only allows pods whosespec.nodeNamematches the configured agent node name (node_name/node_name_env);clusterremoves that same-node restriction, but theSubjectAccessReviewcheck still applies.