Skip to content

feat: add IP allow and deny rules #31

Closed

Description

@RentnerKev

Summary

Add structured source-IP access rules for Proxy Hosts through Access Policies.

Scope

Support IPv4, IPv6, CIDR, allow rules, deny rules, and explicit defaults. Define rule ordering and allow/deny precedence, with an understandable management UI.

Security

Define client-IP semantics carefully. Never blindly trust arbitrary X-Forwarded-For headers; integrate any trusted-proxy configuration with the existing forwarded-header trust model. Protect management with RBAC.

Acceptance criteria

  • IPv4, IPv6, and CIDR rules work against the real Caddy runtime.
  • Default behavior and conflicting-rule precedence are explicit and tested.
  • Spoofed forwarding headers cannot bypass restrictions.
  • Validation rejects malformed addresses and networks.
  • UI communicates the effective access policy and apply state.

Priority

P1 — important Alpha 2 feature

Dependencies

Depends on #28.

Activity

  1. added this to the v1.0.0-alpha.2 milestone on Sep 9, 2026
  2. added
    enhancement
    security
    area: proxy
    on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: proxyenhancementsecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions