Skip to content

security: complete v1 beta security review #72

Closed

Description

@RentnerKev

Summary

Perform the final comprehensive security review and remediation before RentnerProxy enters Beta.
This is a review and evidence gate, not a compliance certification.

The authoritative baseline is v1.0.0-alpha.6, plus the exact Beta features and fixes that will
ship.

Sequencing

Preparatory review may run earlier, but this issue must remain open until the final implementations
or explicit deferrals of CrowdSec #64, Forward Auth #65, and the NPM importer #66 are known.

Do not mark #72 complete before the final shipped forms of those features, upgrade/compatibility
#67/#68, and backup/restore #71 have been reviewed. Release-blocking findings must be remediated
and retested before #75 closes.

Review areas

Authentication and authorization

  • setup, login, password reset, invitations, TOTP, recovery codes, passkeys, sessions, disabled
    users, and rate limiting
  • RBAC, permission synchronization/enforcement, custom roles, last-owner protection, and
    transaction-time authorization
  • server-side enforcement for every new Beta operation

Proxy runtime and trust boundary

  • Caddy Admin API isolation and controller authentication
  • typed snapshot validation, revision/application boundary, rollback, and failed-apply behavior
  • unknown hosts, force HTTPS, WebSockets, HTTP/1.1, HTTP/2, and HTTP/3
  • trusted proxy/client-IP and original-scheme behavior, including forged Forwarded,
    X-Forwarded-For, X-Real-IP, and X-Forwarded-Proto
  • Alpha 6 live administration/reconciliation state

Access policies and Beta features

  • Basic Auth and IPv4/IPv6 rules
  • CrowdSec decision, credential, cache/staleness, failure, and custom-Caddy-module behavior if
    shipped
  • Forward Auth URL/header/credential/redirect/SSRF/failure behavior if shipped
  • NPM importer parsing, uploads, certificates/private keys, conflict handling, transactions, and
    result state if shipped

Certificates and secrets

  • private key and certificate upload/import
  • certificate candidates, durable operations/events, retry state, binding jobs, and restart
    recovery
  • ACME accounts, HTTP-01, DNS provider credentials, trusted CAs, and upstream TLS verification
  • application encryption key handling and contextual authenticated encryption

Web/API and files

  • CSRF, XSS, injection, redirects, SSRF, security headers, secret exposure, and error sanitization
  • path traversal, archive extraction, file permissions, restore validation, interruption, and
    backup disclosure
  • access/audit log privacy, pagination, retention, and redaction

GitHub and supply chain

  • workflow permissions, Actions pinning, PR-preview trust boundary, release automation, dependency
    review, CodeQL, Gitleaks, container scanning, SBOM/provenance, and residual signing/reproducibility
    limitations
  • Caddy/custom module source, version pinning, license, maintainer activity, advisories,
    transitive dependencies, and upgrade path

Finding handling

  • classify findings by severity and release impact
  • use the private SECURITY.md process for exploitable details or sensitive evidence
  • keep public issue/PR text sanitized
  • add regression tests for remediations
  • do not create a repository security-report document unless project policy is deliberately changed

Acceptance criteria

  • Final review covers Alpha 6 and every shipped Beta feature.
  • Findings are severity-classified and release-blocking findings are fixed and retested.
  • No known P0/P1 security blocker remains.
  • Required CI, CodeQL, Gitleaks, dependency, container, and production-smoke checks are green on
    the final reviewed heads.
  • Trusted client-IP, credentials, failure behavior, backup/restore, and supply-chain decisions
    have explicit evidence.
  • Residual risks and unsupported guarantees are documented without overstating certification.

Priority

P0 / final security gate for #75.

Activity

  1. added this to the v1.0.0-beta.1 milestone on Sep 12, 2026
  2. added
    security
    area: auth
    area: runtime
    on Sep 12, 2026
  3. RentnerKev commented on Oct 6, 2026

    @RentnerKev
    MemberAuthor

    Final Beta source-review pass — October 6, 2026

    Reviewed main at ca99c6c, using the shipped Beta implementation and the Alpha 6 baseline contracts. The review followed RentnerRules and SECURITY.md. No production source, database, branch, deployment or release was changed.

    Findings recorded

    • security(ci): audit deployed Rust, Go, and container dependencies #186 — P2 public hardening: audit the complete deployed Rust, custom-Caddy Go and container dependency inventory. Existing Bun audit, dependency review, Dependabot, CodeQL and SBOM/provenance controls do not establish that complete recurring/release gate. This is not a claim that a current package is vulnerable.
    • Three medium private security findings were recorded as separate draft GitHub Security Advisories, with affected code, prerequisites, impact, validation limits and remediation criteria. Exploitable details and synthetic proof-of-concept source remain private, following SECURITY.md.
    • No P0/P1 finding was confirmed in this pass. This does not clear the release gate: the medium findings need remediation/retest or an explicit maintainer risk decision.

    Areas examined

    • Setup/owner serialization, password login/reset, invitations, sessions and disabled users, TOTP/recovery/passkeys, rate limits, recent authentication, custom role assignment, last-owner protection and transaction-time authorization.
    • Controller authentication/isolation, typed desired state, Caddy activation/probing/rollback/recovery, Basic Auth, IP rules, trusted client-IP/scheme, Forward Auth headers and fail-closed behavior, unknown/default hosts and TLS routing.
    • CrowdSec configuration/credential boundaries and its documented availability-first behavior; NPM/portable/Zoraxy import, synthetic SQLite and archive fixtures, conflict/transaction rules and safe configuration export; host duplication and drafts.
    • Certificate import and private-key transport, certificate jobs/leases/binding, candidate activation/recovery, ACME/DNS secrets, trusted CAs, upstream TLS, encrypted records and sanitized metadata/DTOs.
    • Web/server-function CSRF, raw API origin checks, bounded uploads/queries/responses, live/WebSocket authorization, avatar normalization/access, CSP/security headers, escaped mail templates, redirects and access/audit log privacy/retention.
    • Docker/service ownership and secret paths, backup/restore archive validation/interruption boundaries, trusted PR preview publishing, release identity, Actions pinning/permissions, dependency auditing and supply-chain evidence limits.

    Evidence and remaining verification

    • Focused successful runs: 59 Auth/Web tests, 136 Beta/import/duplication test executions, and 43 canonical backup-format/preview tests. All returned zero failures.
    • Two private findings have independently rerun synthetic service probes: 3 authentication tests / 20 assertions and 2 controller transport tests / 8 assertions. Their passing result demonstrates the current undesired behavior; it is not a remediation result. External dependencies and side effects were mocked.
    • Bun audit returned no vulnerabilities for 449 packages using copied manifests/lockfile in an isolated temporary directory. This result covers JavaScript dependencies only.
    • The reviewed head's required source CI, CodeQL, Gitleaks and Production Smokes are successful. Metadata-triage reruns are separate from these source checks.
    • No live PostgreSQL/Valkey, migrations, mail, production backup/restore/deployment or long-running tests were executed for this review. Import tests used synthetic temporary SQLite/archive fixtures only.
    • The recovery finding is supported by independently checked activation, persistence and startup paths. A complete Linux storage-failure/restart regression was not executed on this Windows host; it is explicitly required for remediation. Existing Unix-only blocked-snapshot coverage does not establish that full sequence.
    • Complete Cargo/Go/runtime-image advisory assessment and exact release-candidate evidence remain required under security(ci): audit deployed Rust, Go, and container dependencies #186/#75. SBOM generation and green source CI alone are insufficient.
    • bug(scale): concurrent Caddy configuration updates reset proxy traffic #171 remains the separately tracked upstream Caddy investigation, deferred by the maintainer; it was not counted as a new finding or silently treated as fixed.

    #72 remains open. Remediate and retest the private findings, address the dependency/container evidence gap, then rerun the relevant checks on the final release candidate before closing this gate. This is evidence-based review work, not a security certification.

  4. RentnerKev commented on Oct 6, 2026

    @RentnerKev
    MemberAuthor

    The original remediation work is split into dedicated pull requests:

    The merged code and final main checks have been verified on f0cb944: all 13 associated workflow runs succeeded, including CI, Production Smokes, and complete dependency assessment. The new Cargo/image assessment contexts are now required checks on main; all existing protections are preserved.

    Beta remains blocked. Complete assessments identify unresolved upstream OS/compiled-Go dependency findings, tracked in private security advisory drafts with exact source/digest evidence and maintainer follow-up. A complete green assessment-coverage check does not grant publication approval. An additional historical Alpha 6 JavaScript finding is tracked privately; the corresponding package version is already corrected on current main.

    Keep this review and #75 open until the remaining release-candidate findings are remediated or receive justified, advisory-specific exposure decisions. No release has been published as part of this remediation.

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: autharea: runtimesecurity

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions