Skip to content

feat: add proxy host access policies #28

Closed

Description

@RentnerKev

Summary

Introduce reusable, structured Access Policies for Proxy Hosts: public, authenticated, IP-restricted, and explicitly defined combinations.

Scope

Store policies in the RentnerProxy domain model with RBAC-protected CRUD and host assignment. Render typed Caddy JSON, participate in desired-state reconciliation, and reflect policy state in configuration previews and the UI.

Design extension points for Basic Auth and IP rules, with future CrowdSec, Forward Auth, and OIDC/SSO integrations in mind; do not implement all future providers here.

Security

No free-form nginx/Caddy configuration or arbitrary user-controlled Caddy expressions. Define safe combination/default semantics and ensure failed applies cannot open a protected host.

Acceptance criteria

  • Policy CRUD, RBAC, and Proxy Host assignment work.
  • Real Caddy runtime enforces policies.
  • Desired, active, and failed/pending state are understandable in the UI.
  • Failed apply preserves safe last-known-good access controls.
  • Tests cover validation, authorization, combinations, and failed apply.

Priority

P0 — foundational / release blocker

Enables

Unblocks #30, #31.

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
  3. added
    related
    on Sep 9, 2026
  4. github-actions commented on Sep 9, 2026

    @github-actions

    🔍 Similar issues found

    This issue may overlap with existing reports. Please take a look at these related items.

    Match Issue Status
    Medium #32 – feat: add proxy access logs OPEN
    Medium #30 – feat: add basic authentication to proxy hosts OPEN

    This is an automated suggestion. This issue has not been closed automatically.

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: proxyenhancementrelatedsecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions