RANGER-5723: Plugin SPIFFE outbound auth for audit-server destination - #1139
Merged
Conversation
ramackri
force-pushed
the
RANGER-5723-patch
branch
from
August 6, 2026 02:30
d0194d2 to
aa1a2e3
Compare
Add PluginHeaderAuthConfig, SpiffeIdentityResolver, and RangerRESTClient.setTrustedAuthHeaders(); wire SPIFFE headers into RangerAuditServerDestination when audit XML authn.header.enabled=true.
ramackri
pushed a commit
to ramackri/ranger
that referenced
this pull request
Aug 6, 2026
…uting Add agents-common partition plan model, allocator, validator, routing helpers, and PolicyDownloadAuthUsersUtil for RANGER-5655. SPIFFE header utilities move to RANGER-5723 (apache#1139).
ramackri
force-pushed
the
RANGER-5723-patch
branch
from
August 6, 2026 03:15
aa1a2e3 to
143fa62
Compare
added 2 commits
August 6, 2026 14:11
Drop configPrefixForServiceType, resolveEnabledConfigPrefix, and RANGER_CONFIG_PREFIX; audit destination passes an explicit config prefix to buildSpiffeAuthHeaders.
arnabnandy7
suggested changes
Aug 8, 2026
Remove redundant SPIFFE ID trim, add misconfiguration and REST client header tests, and document that SPIFFE header auth is additive to authn.type.
ramackri
force-pushed
the
RANGER-5723-patch
branch
from
August 15, 2026 04:53
373af25 to
242d31b
Compare
Add blank line between javax and java import groups required by dev-support/checkstyle.xml ImportOrder rule.
arnabnandy7
approved these changes
Aug 15, 2026
mneethiraj
reviewed
Aug 15, 2026
Fix SpiffeIdentityResolver checkstyle violations, rename buildSpiffeAuthHeaders to buildTrustedAuthHeaders, and add generic authn.header.headers slot-based configuration with file:/env: value resolution.
Expand PluginHeaderAuthConfig Javadoc for legacy SPIFFE and generic slot configuration, including file:/env:/literal value spec examples.
mneethiraj
reviewed
Aug 16, 2026
Address PR review: configure outbound trusted headers as
authn.header.{Header-Name}=value specs (file:/env:/literal) instead
of slot-based or legacy SPIFFE properties.
ramackri
force-pushed
the
RANGER-5723-patch
branch
2 times, most recently
from
August 16, 2026 17:23
1b9ff79 to
23f4e51
Compare
mneethiraj
reviewed
Aug 16, 2026
Address PR review: trusted outbound headers pass resolved values through without SPIFFE format checks; remove SpiffeIdentityResolver and obsolete tests for the old authn.spiffe.* resolution model.
mneethiraj
approved these changes
Aug 21, 2026
…config. HTTP header order does not affect auth; iterate props directly per review feedback.
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
Plugin outbound SPIFFE authentication for RANGER-5655 audit delivery.
JIRA: RANGER-5723
Split from closed #1135. Self-contained — compiles and tests against
masterwithout #1137.Changes (7 files)
common-utils)PluginHeaderAuthConfig,SpiffeIdentityResolver, testsagents-common)RangerRESTClient.javasetTrustedAuthHeaders()— applyX-Spiffe-Idon every outbound requestRangerAuditServerDestination.java, test,pom.xmlauthn.header.enabled=trueAligned with RANGER-5700 / #1096: auth is configured on the audit destination prefix, not per-plugin security XML.
Audit XML properties (plugin → ingestor)
Prefix:
xasecure.audit.destination.auditserverauthn.header.enabledfalseauthn.header.spiffeX-Spiffe-Idauthn.spiffe.valueauthn.spiffe.file/var/run/secrets/spiffe.io/identity/spiffeResolution order:
authn.spiffe.value→authn.spiffe.file→SPIFFE_IDenv.Minimum enable:
Also required (unchanged):
xasecure.audit.destination.auditserver=trueand.url.Safety: defaults to disabled; no install-template changes. E2E ingestor validation requires RANGER-5722 (
AuditHeaderAuthFilter).Related PRs
Test plan
mvn -pl agents-audit/dest-auditserver -am test -Dtest=RangerAuditServerDestinationTestmvn -pl common-utils test -Dtest=PluginHeaderAuthConfigTestbuild-17,plugins-docker-build