pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www



Module Name:    pkgsrc
Committed By:   taca
Date:           Sun Nov 22 15:26:21 UTC 2026

Modified Files:
        pkgsrc/www/ruby-rack-protection: Makefile distinfo
        pkgsrc/www/ruby-sinatra: Makefile distinfo
        pkgsrc/www/ruby-sinatra-contrib: Makefile distinfo

Log Message:
www/ruby-sinatra: update to 4.2.2

Update www/ruby-sinatra, www/ruby-sinatra-contrib and
www/ruby-rack-protection packages to 4.2.2.

4.2.2 (2026-11-17)

* Fix: Require a dot before the domain for leading-dot permitted_hosts in
  Rack::Protection::HostAuthorization

    - .example.org no longer permits hosts that only end in example.org,
      like evilexample.org

* Fix: Do not treat a missing Referer as same-origin when Sec-Fetch-Site
  says the request is cross-site or same-site

    - Affects RemoteToken, JsonCsrf and RemoteReferrer in Rack::Protection
    - Requests with neither header are accepted as before,
      allow_empty_referrer still defaults to true

* Fix: Rack::Protection::CookieTossing no longer rejects all requests after
  one with duplicate session cookies

* Docs: Document that static files are served through symlinks pointing
  outside public_folder

* Fix: Sinatra::QuietLogger no longer hides requests that are routed outside
  the quiet prefixes

    - /images/../admin is routed to /admin, so it is now logged even with
      images as a quiet prefix

* Fix: Set Strict-Transport-Security and Referrer-Policy on responses
  rejected by other protections

    - Only for apps that use strict_transport or referrer_policy, neither is
      enabled by default

    - Responses rejected by AuthenticityToken, FormToken or CookieTossing
      now have both headers, those rejected by RemoteReferrer or
      SessionHijacking now have Strict-Transport-Security

    - Requests are accepted and rejected as before, so nothing changes with
      the drop_session reaction, the default in Sinatra, as it does not
      reject requests

    - A header already set on the response is kept

* Fix: Run Rack::Protection::PathTraversal before the other protections

    - All protections now see the normalized path, the one the app routes
      on, where some saw the path as it was sent

    - Only requests with a path that gets normalized are affected: . or
      .. segments, %2e, %2f, %5c, backslashes or repeated slashes

    - Check code written for the path as it was sent: an allow_if matching
      /webhooks/[^/]+ no longer matches /webhooks/a%2Fb, as it is called
      with /webhooks/a/b

What    Before  After

      What:     allow_if of AuthenticityToken, FormToken, HttpOrigin and JsonCsrf
      Before:   called with the path as it was sent
      After:    called with the normalized path

      What:     instrumenter of the protections that ran before PathTraversal
      Before:   notified with the path as it was sent
      After:    notified with the normalized path

      What:     Per-form tokens of AuthenticityToken and FormToken
      Before:   checked against the path as it was sent
      After:    checked against the normalized path

      What:     CookieTossing
      Before:   redirected to, and expired cookies for, the path as it was sent
      After:    uses the normalized path

      What:     RemoteToken, XSSHeader and middleware added with use
      Before:   saw the normalized path
      After:    unchanged

* Fix: rack-protection and sinatra-contrib used from a path source no longer
  fail to load after bundle cache (#2144)

* Fix: Avoid "method redefined" warnings in Sinatra::Delegator (#2139)


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/www/ruby-rack-protection/Makefile
cvs rdiff -u -r1.20 -r1.21 pkgsrc/www/ruby-rack-protection/distinfo
cvs rdiff -u -r1.34 -r1.35 pkgsrc/www/ruby-sinatra/Makefile
cvs rdiff -u -r1.28 -r1.29 pkgsrc/www/ruby-sinatra/distinfo
cvs rdiff -u -r1.22 -r1.23 pkgsrc/www/ruby-sinatra-contrib/Makefile
cvs rdiff -u -r1.21 -r1.22 pkgsrc/www/ruby-sinatra-contrib/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/ruby-rack-protection/Makefile
diff -u pkgsrc/www/ruby-rack-protection/Makefile:1.22 pkgsrc/www/ruby-rack-protection/Makefile:1.23
--- pkgsrc/www/ruby-rack-protection/Makefile:1.22       Fri Feb  6 08:36:50 2026
+++ pkgsrc/www/ruby-rack-protection/Makefile    Sun Nov 22 15:26:21 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.22 2026/02/06 08:36:50 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2026/11/22 15:26:21 taca Exp $
 
-DISTNAME=      rack-protection-4.2.1
+DISTNAME=      rack-protection-4.2.2
 CATEGORIES=    www
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/www/ruby-rack-protection/distinfo
diff -u pkgsrc/www/ruby-rack-protection/distinfo:1.20 pkgsrc/www/ruby-rack-protection/distinfo:1.21
--- pkgsrc/www/ruby-rack-protection/distinfo:1.20       Mon Nov  3 07:35:56 2025
+++ pkgsrc/www/ruby-rack-protection/distinfo    Sun Nov 22 15:26:21 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.20 2025/11/03 07:35:56 taca Exp $
+$NetBSD: distinfo,v 1.21 2026/11/22 15:26:21 taca Exp $
 
-BLAKE2s (rack-protection-4.2.1.gem) = ce94599804051673caf8456de118b76a03558ede9320817cf4bfadb9ffc65249
-SHA512 (rack-protection-4.2.1.gem) = 647852fdbddc1f5b8470f8a7d7cde9ce01c2101f9c448224a983a86718e4705a1fbf71dd93341a8c549d43681084ccaee78d7bc1ff49980b3cec74af3194fbe1
-Size (rack-protection-4.2.1.gem) = 18432 bytes
+BLAKE2s (rack-protection-4.2.2.gem) = 98c1c19528613e816c0d33d03439c35421591667e61e09a5cf5eba4ff8d6838c
+SHA512 (rack-protection-4.2.2.gem) = bcf223974d91122483ce8d0d76fd94b1bcd06c929e47633ce6abefd33325c2d9ced97352f55abcde7e54c2418028a71a30efe387f5b9355ca375638bc5520cb3
+Size (rack-protection-4.2.2.gem) = 22016 bytes

Index: pkgsrc/www/ruby-sinatra/Makefile
diff -u pkgsrc/www/ruby-sinatra/Makefile:1.34 pkgsrc/www/ruby-sinatra/Makefile:1.35
--- pkgsrc/www/ruby-sinatra/Makefile:1.34       Mon Nov  3 07:35:56 2025
+++ pkgsrc/www/ruby-sinatra/Makefile    Sun Nov 22 15:26:21 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2025/11/03 07:35:56 taca Exp $
+# $NetBSD: Makefile,v 1.35 2026/11/22 15:26:21 taca Exp $
 
-DISTNAME=      sinatra-4.2.1
+DISTNAME=      sinatra-4.2.2
 CATEGORIES=    www
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -9,7 +9,7 @@ COMMENT=        Classy web-development dressed 
 LICENSE=       mit
 
 #DEPENDS+=     ${RUBY_PKGPREFIX}-rack>=3.0.0<4:../../www/ruby-rack
-DEPENDS+=      ${RUBY_PKGPREFIX}-rack-protection>=4.2.1:../../www/ruby-rack-protection
+DEPENDS+=      ${RUBY_PKGPREFIX}-rack-protection>=4.2.2:../../www/ruby-rack-protection
 DEPENDS+=      ${RUBY_PKGPREFIX}-rack-session>=2.0.0<3:../../www/ruby-rack-session
 DEPENDS+=      ${RUBY_PKGPREFIX}-mustermann>=3.0<4:../../www/ruby-mustermann
 DEPENDS+=      ${RUBY_PKGPREFIX}-tilt>=2.0<3:../../textproc/ruby-tilt

Index: pkgsrc/www/ruby-sinatra/distinfo
diff -u pkgsrc/www/ruby-sinatra/distinfo:1.28 pkgsrc/www/ruby-sinatra/distinfo:1.29
--- pkgsrc/www/ruby-sinatra/distinfo:1.28       Mon Nov  3 07:35:56 2025
+++ pkgsrc/www/ruby-sinatra/distinfo    Sun Nov 22 15:26:21 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.28 2025/11/03 07:35:56 taca Exp $
+$NetBSD: distinfo,v 1.29 2026/11/22 15:26:21 taca Exp $
 
-BLAKE2s (sinatra-4.2.1.gem) = 19c1561bd3c6db8e1abc840df6a57edcdc8b34fa028a4ac8c1f3c6f5531b6c76
-SHA512 (sinatra-4.2.1.gem) = 4aba5941251249cb6a3e8623a88da405476302de95f6d76cd8da6f0eb45ee642b485d12d5f1f8ad54b988eb80cd0a28d2099e7d3f75205eac7340d5be54c3777
-Size (sinatra-4.2.1.gem) = 136192 bytes
+BLAKE2s (sinatra-4.2.2.gem) = a241f9247443561b33fa0a99e041e9c64aae76aacb2f0bbd4440dd96595839d9
+SHA512 (sinatra-4.2.2.gem) = c7837ac479242b7f60c0eb57ab66f9caffdace7173e5a6742c806ac4ed5fa059ae3bbb3192b48d79c953797e329fcde9050cfc9aecb204e48a9f3ad00d21fa3e
+Size (sinatra-4.2.2.gem) = 137728 bytes

Index: pkgsrc/www/ruby-sinatra-contrib/Makefile
diff -u pkgsrc/www/ruby-sinatra-contrib/Makefile:1.22 pkgsrc/www/ruby-sinatra-contrib/Makefile:1.23
--- pkgsrc/www/ruby-sinatra-contrib/Makefile:1.22       Mon Nov  3 07:35:56 2025
+++ pkgsrc/www/ruby-sinatra-contrib/Makefile    Sun Nov 22 15:26:21 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.22 2025/11/03 07:35:56 taca Exp $
+# $NetBSD: Makefile,v 1.23 2026/11/22 15:26:21 taca Exp $
 
-DISTNAME=      sinatra-contrib-4.2.1
+DISTNAME=      sinatra-contrib-4.2.2
 CATEGORIES=    www
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -8,7 +8,7 @@ HOMEPAGE=       http://www.sinatrarb.com/contr
 COMMENT=       Collection of useful Sinatra extensions
 LICENSE=       mit
 
-DEPENDS+=      ${RUBY_PKGPREFIX}-sinatra>=4.2.1:../../www/ruby-sinatra
+DEPENDS+=      ${RUBY_PKGPREFIX}-sinatra>=4.2.2:../../www/ruby-sinatra
 DEPENDS+=      ${RUBY_PKGPREFIX}-multi_json-[0-9]*:../../textproc/ruby-multi_json
 
 USE_LANGUAGES= # empty

Index: pkgsrc/www/ruby-sinatra-contrib/distinfo
diff -u pkgsrc/www/ruby-sinatra-contrib/distinfo:1.21 pkgsrc/www/ruby-sinatra-contrib/distinfo:1.22
--- pkgsrc/www/ruby-sinatra-contrib/distinfo:1.21       Mon Nov  3 07:35:56 2025
+++ pkgsrc/www/ruby-sinatra-contrib/distinfo    Sun Nov 22 15:26:21 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.21 2025/11/03 07:35:56 taca Exp $
+$NetBSD: distinfo,v 1.22 2026/11/22 15:26:21 taca Exp $
 
-BLAKE2s (sinatra-contrib-4.2.1.gem) = 2b6600e6b9c7f16c0f8f1d6aec2fa87fa81f0d86060b1e1a53ec715f3565ca53
-SHA512 (sinatra-contrib-4.2.1.gem) = 8c628f6736c5fdf5119ae7a3c7006c6800818948793c8414143dc1b6bbb2ce37963acf244393ef3525d100a087ee71c028721a4f51d6b97505f2abffd7495eb2
-Size (sinatra-contrib-4.2.1.gem) = 33792 bytes
+BLAKE2s (sinatra-contrib-4.2.2.gem) = 2eea436beaa46f0a7f1f4d443642b7b0bde242c77b5b25a15b2a1160ff3b9792
+SHA512 (sinatra-contrib-4.2.2.gem) = 388b99363202721bb2b958310b0e91a5acd542051f6ac709c8c0a81c3326645c09026ebdf2fe35388fbff4cb7d6ed9ecd9468f14076b1ac3142aa28ee712a855
+Size (sinatra-contrib-4.2.2.gem) = 34304 bytes



Home | Main Index | Thread Index | Old Index