Skip to content

v0.2.2: Loopback route normalisation for third-party plugins

Choose a tag to compare

@lukepoo101 lukepoo101 released this 25 Sep 11:13
· 1 commit to main since this release

Added

  • Loopback normalisation for third-party plugin routes:
    • Decorates \webServer.handle\ to normalise incoming proxy-authenticated requests to the local loopback authority (\127.0.0.1:).
    • Enables third-party plugins with strict loopback/same-origin checks (such as \dshmarket@1.65.1\ protecting /dsh-market/discovery-compatibility, /dsh-market/update, etc.) to operate seamlessly across reverse-proxied domains.
    • Strict security fence: evaluates DSH's native Host/Origin/Cross-Site checks (
      equestRejection) against real inbound headers before normalising; cross-origin CSRF attacks, cross-site fetch metadata, or untrusted Hosts are immediately rejected with HTTP 403 Forbidden.
    • Preserves incoming public authority in \X-Forwarded-Host\ and \X-Forwarded-Proto.
  • Comprehensive third-party plugin route validation suite (85 unit tests pass).

Changed

  • Cleaned up deprecated \�ttachBootstrapInjection\ stub.
  • Generalised \captureMethod\ and \installWrapper\ for uniform transactional decoration across \connection\ and \webServer.