Skip to content

Commit 034617c

Browse files
committed
fix(sandbox): only indicate credential injection in log when resolver is present
1 parent be66d82 commit 034617c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/openshell-sandbox/src/l7/relay.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,15 @@ where
264264
request_count += 1;
265265

266266
// Log for observability.
267+
let has_creds = resolver.is_some();
267268
info!(
268269
host = %ctx.host,
269270
port = ctx.port,
270271
method = %req.action,
271272
path = %req.target,
273+
credentials_injected = has_creds,
272274
request_num = request_count,
273-
"HTTP relay (credential injection)"
275+
"HTTP_REQUEST",
274276
);
275277

276278
// Forward request with credential rewriting.

0 commit comments

Comments
 (0)