Skip to content

feat(cli): openlock logs — surface in-container proxy egress log (openlock-dlv Tier 1)#68

Merged
vessux merged 2 commits into
mainfrom
feat/openshell-egress-observability
Jun 13, 2026
Merged

feat(cli): openlock logs — surface in-container proxy egress log (openlock-dlv Tier 1)#68
vessux merged 2 commits into
mainfrom
feat/openshell-egress-observability

Conversation

@vessux

@vessux vessux commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

openlock logs <name> surfaces the in-container openshell proxy's OCSF egress log — per-request L7 allow/deny decisions (method, URL, policy, engine, calling binary) from /var/log/openshell.<date>.log. This is the data-plane visibility neither the host gateway log (control-plane only) nor echo mode provided; surfaced during the openlock-ndb e2e where we repeatedly struggled to see what the proxy did with a request.

Changes

  • New openlock logs [name] [-f] [-n N] session command (mirrors exec/shell): resolves the session, tails the date-globbed proxy log; --follow to stream, --lines (default 200). Pure buildProxyLogCmd is unit-tested.
  • Wired into cli.ts dispatch + help, _commands.ts (COMMAND_FLAGS + SESSION_COMMANDS), _descriptions.ts; coverage tests updated.

Scope / follow-ups (openlock-dlv)

Tier 1 only. Tier 2 (debug-gated request/response header logging — oauth-2025-04-20, overage-status) is authored on the fork branch feat/l7-egress-debug-logging but needs a log-level activation knob (raise the supervisor to debug) + a fork release before it's usable; tracked on openlock-dlv.

Testing

lint / typecheck / test (798) / knip green. openlock logs live-verified against a running session.

@vessux vessux merged commit 48f26da into main Jun 13, 2026
5 checks passed
@vessux vessux deleted the feat/openshell-egress-observability branch June 13, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant