Skip to content

feat(proxy): add bounded proxy access log viewer - #44

Merged
RentnerKev merged 1 commit into
feat/ip-access-rulesfrom
feat/proxy-access-logs
Sep 12, 2026
Merged

RentnerKev merged 1 commit into
feat/ip-access-rulesfrom
feat/proxy-access-logs

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Add a read-only viewer for real Caddy proxy requests with host/status filters, search, pagination, and refresh. Entries include timing, source IP, response bytes and the selected upstream when available.

Store JSON logs in the existing proxy volume, rotating at 4 MiB with four archives. The viewer reads a bounded recent window of up to seven days. Headers, query strings, bodies and authenticated usernames are excluded; access requires a dedicated permission. Logs survive restarts and remain excluded from backups. The README change is one feature bullet; detailed behavior is in docs/proxy-access-logs.md.

Related issue

Closes #32. Depends on #43; this PR is stacked until its prerequisite is merged, then its base will move to main.

Type of change

  • New feature

Testing

  • Full local bun run check passed: 588 web tests and 119 controller tests; lint, types, schema checks and production builds pass.
  • Official Caddy 2.11.4 tested locally with the renderer logging options: query/header/body markers excluded, upstream captured.
  • Controller tests cover bounded reading, filters, pagination, malformed data, permissions, filesystem failures and restart behavior.
  • Web tests cover validation, transport bounds, permission denial, filters and pagination.
  • Added real-Caddy smokes for privacy, restart, 12,000 requests and bounded rotation; appliance backup verifies log exclusion.

All GitHub validation workflows passed for e8fc7e6: CI (34662508539), Production Smokes (34662507966), and CodeQL (34662508374).

Checklist

  • I tested the relevant functionality.
  • Existing tests pass.
  • I added or updated tests where appropriate.
  • This PR does not include secrets, credentials, production data, or private certificates/keys.
  • I updated documentation where necessary.
  • I linked the relevant issue.

Breaking changes

None. No database migration or snapshot-version change.

Screenshots

Viewer interactions and access restrictions are covered by automated UI tests.

@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: e06fead3-96e9-468d-b390-56008211a3ad

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@RentnerKev
RentnerKev merged commit 2419227 into feat/ip-access-rules Sep 12, 2026
15 checks passed
@RentnerKev
RentnerKev deleted the feat/proxy-access-logs branch September 12, 2026 06:32
RentnerKev added a commit that referenced this pull request Sep 12, 2026
* feat(proxy): add IP allow and deny access rules

* feat(proxy): add bounded proxy access log viewer (#44)
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