Skip to content

atenet-egress: log access log paths without the query string - #3077

Merged
Lior Lieberman (LiorLieberman) merged 1 commit into
agent-substrate:mainfrom
git286:fix-egress-access-log-query
Oct 21, 2026
Merged

Lior Lieberman (LiorLieberman) merged 1 commit into
agent-substrate:mainfrom
git286:fix-egress-access-log-query

Conversation

@git286

@git286 Da Huang (git286) commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

The mitm and cleartext legs' access logs printed the path with %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%, which includes the query. The mitm leg logs requests the gateway has decrypted, and actor traffic can carry credentials in the query (API keys, signed URL tokens, OAuth codes). These lines go to stdout and the cluster log backend for every failed request and a 1% sample of the rest.

Use %PATH(NQ:ORIG_OR_PATH)%, the same original-or-path choice without the query, which the router's access log already does for this reason.

TestEgressManifestsLogPathsWithoutTheQuery fails if any access log format in the egress bootstrap prints the path with its query.

Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.)

Fixes #3076

AI use:

  • Tests pass
  • Docs updated

The mitm and cleartext legs' access logs printed the path with
%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%, which includes the query. The mitm
leg logs requests the gateway has decrypted, and actor traffic can carry
credentials in the query (API keys, signed URL tokens, OAuth codes).
These lines go to stdout and the cluster log backend for every failed
request and a 1% sample of the rest.

Use %PATH(NQ:ORIG_OR_PATH)%, the same original-or-path choice without
the query, which the router's access log already does for this reason.

TestEgressManifestsLogPathsWithoutTheQuery fails if any access log
format in the egress bootstrap prints the path with its query.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

Merged via the queue into agent-substrate:main with commit 8bed86d Oct 21, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Egress access logs write query strings, which can hold secrets

2 participants