From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +DM3AZTZP2KJKgEAgWs5BA (envelope-from ) for ; Sun, 27 Mar 2022 05:27:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UNydNZPZP2KfzgAAG6o9tA (envelope-from ) for ; Sun, 27 Mar 2022 05:27:15 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A7A3825572 for ; Sun, 27 Mar 2022 05:27:15 +0200 (CEST) Received: from localhost ([::1]:60346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYJYg-0003Y0-Jv for larch@yhetil.org; Sat, 26 Mar 2022 23:27:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYJYV-0003GU-9t for guix-patches@gnu.org; Sat, 26 Mar 2022 23:27:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYJYV-00048Y-1g for guix-patches@gnu.org; Sat, 26 Mar 2022 23:27:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nYJYU-0005gL-V1 for guix-patches@gnu.org; Sat, 26 Mar 2022 23:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54590] [PATCH 3/4] gnu: Add ghc-http-client-restricted. Resent-From: Kyle Meyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Mar 2022 03:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54590 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54590@debbugs.gnu.org Received: via spool by 54590-submit@debbugs.gnu.org id=B54590.164835158221768 (code B ref 54590); Sun, 27 Mar 2022 03:27:02 +0000 Received: (at 54590) by debbugs.gnu.org; 27 Mar 2022 03:26:22 +0000 Received: from localhost ([127.0.0.1]:55019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYJXl-0005ex-Pu for submit@debbugs.gnu.org; Sat, 26 Mar 2022 23:26:22 -0400 Received: from out0.migadu.com ([94.23.1.103]:52488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYJXi-0005eV-1m for 54590@debbugs.gnu.org; Sat, 26 Mar 2022 23:26:14 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1648351572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FIAbvgRSMRgyOyaf8H6Fn10RZor3YOHgX9nUTABoo6c=; b=A+ALhgl2O3ZorFaw7EKy81HWiRvSMt4lOY2+Jxch0moaZn+BOhb/g4JjaazMUL9QaSct6s oBxBopeLz8GoLEjNIxsM6ERdKAvtdiF97XRz0KF95MM4g2cwJn18MPiItoEzUo9sJjHzdP Q5UDLKGF1n5o8PEjthTSIPx37sZugkXzBeMBOrvel89/vYpMmPASGwez7YXTWgaryyhyL9 gHytTpQtmNpQP1MDlGTwAm+bC+gxrZCR5E/9WFe7sbOoojPSMkBV/7n73NbNHtRC0IOoVQ At3xwQaKdI+3f1OzUWuRqNWuiNh6ypMM4HG1xf94JpdF/btj64yjOtA1AhSH5A== From: Kyle Meyer Date: Sat, 26 Mar 2022 23:26:03 -0400 Message-Id: <20220327032604.475598-3-kyle@kyleam.com> In-Reply-To: <20220327031210.474782-1-kyle@kyleam.com> References: <20220327031210.474782-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648351635; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FIAbvgRSMRgyOyaf8H6Fn10RZor3YOHgX9nUTABoo6c=; b=aUsEjk/GFRFoVlF8qiZ6ts7DyKqu4osm2x0WOPKU3sRwt+e+/H9syQEf97ls9RuzC9LyAc /fpdlqWz4mpOsPO9O4fSktA+DSozd57PzBIWFgcvc/tFxEBgkfN9CSYufphSDFL66iUJpn DaOxG8btLgGcr7Im4hDxcsJJuLjNVCuT/qOddjD4zU1LF3V8ICm5jz4ts0SJSJu5YPMrhQ ahhVbyQ2dfYLYvg2zlW+oNvu8lAFAHfaQlEylehK3WzQLqfLhhGiRF1lrYX0TLyiLeNVpd 8NRP55F8dltFdsq/4rNr/iHb+RqAw2vf3FwJR/lwCq2k6HRkq2mtvCRtEtiEGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648351635; a=rsa-sha256; cv=none; b=p+SGQUX1RkPWpaiOy7CJ5/aSTQqWWEL1DVfGuH97a/Rkh56AkKJFtiKzOwG/t96n3ffEpo YuPd+PKJ5D0q7iCIEfXzhlurdEVyfN8pZM7TjvVe13dwZFpwF4u/1MEV5eqr9bihkff8hG P2twyQfqVG6PZ+VKJEn1dCbulUXcxBW8cDD5cMbISwffWchg+3bCMaXpn21BpvzV3clCo5 tMKyOVb+ecrS40wzec1b4Z/jKrB6YChPxC+yHnGpdJmMoo93z4je4aiWr0W+wH53L1iPR9 WxoXEUt/ymtiP5bbnGe6kqatvLWs0EC4FkXVQJ1Jn3n526BhQklfU4pCIaYYHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=A+ALhgl2; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=A+ALhgl2; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A7A3825572 X-Spam-Score: 1.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: Pkluj7+3/f3M * gnu/packages/haskell-web.scm (ghc-http-client-restricted): New variable. --- gnu/packages/haskell-web.scm | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index cafdf5099e..1c2538b45e 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -9,7 +9,7 @@ ;;; Copyright © 2019 John Soo ;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; Copyright © 2020 Marius Bakke -;;; Copyright © 2020 Kyle Meyer +;;; Copyright © 2020, 2022 Kyle Meyer ;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; Copyright © 2020 Giacomo Leidi ;;; @@ -292,6 +292,34 @@ (define-public ghc-http-client-tls libraries, such as http-conduit.") (license license:expat))) +(define-public ghc-http-client-restricted + (package + (name "ghc-http-client-restricted") + (version "0.0.5") + (source + (origin + (method url-fetch) + (uri (hackage-uri "http-client-restricted" version)) + (sha256 + (base32 "1vfm9qc3zr0rmq2ddgyg13i67020cdk8xqhyzfc2zcn1km2p6r85")))) + (build-system haskell-build-system) + (inputs + (list ghc-http-client + ghc-http-client-tls + ghc-connection + ghc-data-default + ghc-network + ghc-network-bsd + ghc-utf8-string)) + (home-page "http://hackage.haskell.org/package/http-client-restricted") + (synopsis "Restrict the servers used by http-client") + (description + "This library makes it possible to restrict the HTTP servers that can be +used by the @code{http-client} and @code{http-client-tls} libraries. This is +useful when a security policy needs to, e.g., prevent connections to HTTP +servers on localhost or only allow connections to a specific server.") + (license license:expat))) + (define-public ghc-http-date (package (name "ghc-http-date") -- 2.34.0