[AAP-64061] Add nginx log markers for direct API access detection#2100
Merged
jamesmarshall24 merged 1 commit intoansible:develfrom Feb 17, 2026
Merged
Conversation
jamesmarshall24
approved these changes
Feb 13, 2026
Add map directives for X-Trusted-Proxy and X-DAB-JW-TOKEN headers to log the presence of these headers as trusted_proxy_present and dab_jwt_present fields in the nginx access log. These markers enable the detection tool (aap-detect-direct-component-access) to identify direct API access that bypasses AAP Gateway. Also add explicit error_log /dev/stderr warn; instead of relying on container base image symlinks. Part of ANSTRAT-1840: Remove direct API access to platform components. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9121753 to
75b6678
Compare
dsavineau
approved these changes
Feb 17, 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
mapdirectives forX-Trusted-ProxyandX-DAB-JW-TOKENheaderslog_formatto append$trusted_proxy_presentand$dab_jwt_presentfieldserror_log /dev/stderr warn;These markers enable the CLI detection tool (aap-detect-direct-component-access) to identify direct API access that bypasses AAP Gateway by scanning nginx logs from SOSReport or must-gather.
Jira
ISSUE TYPE
Test plan
trusted-proxy/dab-jwtor-fields appended to existing formattrusted-proxy dab-jwt- -- dab-jwt(JWT without Trusted-Proxy)🤖 Generated with Claude Code