EV-6557: grant tigera-noncluster-host SA create access to Linseed policyactivity#4725
Merged
rene-dekker merged 1 commit intotigera:masterfrom Apr 22, 2026
Merged
Conversation
1 task
c1d8544 to
b1aa229
Compare
…icyactivity Non-cluster host fluent-bit ships policy activity logs to Linseed via voltron's /ingestion/api/v1/policy_activity/logs/bulk route. Without 'create' on linseed.tigera.io/policyactivity, voltron returns 401 Unauthorized from the per-target RBAC authorizer and records never reach Linseed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
b1aa229 to
ad5897e
Compare
rene-dekker
approved these changes
Apr 22, 2026
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.
Summary
policyactivityto thelinseed.tigera.iocreaterule on thetigera-noncluster-hostClusterRole.Why
Non-cluster host (NCH) fluent-bit posts policy activity records to voltron at
/ingestion/api/v1/policy_activity/logs/bulk. Voltron's proxy authorizes each request against the caller's k8s RBAC with resourcepolicyactivityin grouplinseed.tigera.io(see voltronmain.goNCH routeAuthorizationAttributesFunc). Without this permission, voltron returns 401 Unauthorized and NCH policy activity logs never reach Linseed.The in-cluster fluentd-node SA already has this permission (
pkg/render/fluentd.go:1012). This patch brings the NCH SA to parity for the NCH ingestion path.This is the NCH counterpart of #4712, which granted the calico-manager SA
geton the same resource for the query-side path.Test plan
go test ./pkg/render/nonclusterhost/...passes.calicoctl get sgnps --show-policy-activitiesreturns fresh timestamps for HEP-tier SGNPs.Release Note