From patchwork Thu Jul 4 11:10:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 65911 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3341627BBE9; Thu, 4 Jul 2024 12:13:55 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BBD6027BBEA for ; Thu, 4 Jul 2024 12:13:53 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPKOd-0002BX-VZ; Thu, 04 Jul 2024 07:13:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPKOc-00029c-8z for guix-patches@gnu.org; Thu, 04 Jul 2024 07:13:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPKOc-00038P-0W for guix-patches@gnu.org; Thu, 04 Jul 2024 07:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPKOe-00033E-9l for guix-patches@gnu.org; Thu, 04 Jul 2024 07:13:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70684] [PATCH v2 7/9] gnu: Add go-github-com-go-webauthn-webauthn. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Jul 2024 11:13:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70684 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70684@debbugs.gnu.org Cc: Sharlatan Hellseher , Rodion Goritskov Received: via spool by 70684-submit@debbugs.gnu.org id=B70684.172009155411617 (code B ref 70684); Thu, 04 Jul 2024 11:13:04 +0000 Received: (at 70684) by debbugs.gnu.org; 4 Jul 2024 11:12:34 +0000 Received: from localhost ([127.0.0.1]:41628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPKOA-00031C-3z for submit@debbugs.gnu.org; Thu, 04 Jul 2024 07:12:34 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:49292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPKNt-0002zs-UT for 70684@debbugs.gnu.org; Thu, 04 Jul 2024 07:12:19 -0400 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4256788e13bso3273905e9.2 for <70684@debbugs.gnu.org>; Thu, 04 Jul 2024 04:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720091474; x=1720696274; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E5Z/RIOumVzbrlJ8h3G4fy4v02ororVlFGy5ICT0Jkw=; b=DeelaQcloBsE3Y6ga9O0EKuVqTxo/WsT83C2YYiaz4qN7STjkOyk8nLQ9VGsO0U6XD BSl6lW7GR/rrPdUo3rKav3v9w1vHbgdV68NRiQ2q28CUZxUBfVl0qcmttVZGToDs8kY2 t+D4JXzt1HXkehvaucLCcIwmNlmFRbI+6JsMoqGwxZXqrgwemzQzB5PwqjUXBFjuzRdd kjs4ywyAZeGnzZ/kZQwgBTbD2rde839cx+3LfylnDzPBTCamnCisdEZtltjqc3XRP0Va NRWDhfCGV1jUWefJd/TSKpoiwtqVxOGouVXLxNmZJN8lxyBSY3tPPENiQnzVNCmA4KzL Wk1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720091474; x=1720696274; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E5Z/RIOumVzbrlJ8h3G4fy4v02ororVlFGy5ICT0Jkw=; b=ctTghbKZ29m0HLySHI5t6llRSxDpGDds01PXQoME3ho2JPepdrkI7RNhz0U1lGxUPV 0T5SWos1rxKzdoUhZjMmyEqriLg+I/+9BC86PfNadPNTb2XqOK4yIMgfGNPEoR40TCsb kihKMk7dBtBpHjDeOyS8GuZdwM3/0T5rKJ+Xt9Mw+ceHl4M2FnPJDALtpGsChS8u+CsY 4jWz9V0qCWbkjIyfGuMifQpYpP1Edz0nVMvTbpu6qLT9tmhzzBQ9etvUzCmq5/cEOa6i fOFTyYU19/2rm7PyXA4qmFqzNd9CwetJ6rQyV/SR5hI6EPOHiAtCYAmTMNymx7gSxxKY UAPQ== X-Gm-Message-State: AOJu0YzC1HQubL2zJ8OfqLIxZI7bdLaLjJ0Pb/22n8/fCtf53E7RCi9q GZOdaF3X6BnyjgyOBX6WMX8e0dv+We3xpEBuYaFeabv3DUUULOM5e8myKmYb X-Google-Smtp-Source: AGHT+IGU4NmelJ4SZThb0tGfrYH3c32pjywbKVn3Z51sGYJZ0ra8X5eWT3CRZ0j8TuHCkFpc8dVeag== X-Received: by 2002:adf:eccd:0:b0:367:9988:84a0 with SMTP id ffacd0b85a97d-3679de95ec9mr980298f8f.58.1720091473854; Thu, 04 Jul 2024 04:11:13 -0700 (PDT) Received: from guxtil.incerto.xyz (bagu-15-b2-v4wan-170076-cust245.vm21.cable.virginm.net. [77.98.0.246]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3679508ff26sm3698486f8f.111.2024.07.04.04.11.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 04:11:13 -0700 (PDT) From: Sharlatan Hellseher Date: Thu, 4 Jul 2024 12:10:57 +0100 Message-ID: <1f4d880bd33b28ed6dbe9562e3051abdf591b03c.1720090727.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Rodion Goritskov * gnu/packages/golang-web.scm (go-github-com-go-webauthn-webauthn): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I990f088c5d3b8dd360f26e953e6d2c0d01f1c808 --- gnu/packages/golang-web.scm | 72 +++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index bd7d88be6d..588fa4b681 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2848,6 +2848,78 @@ (define-public go-github-com-valyala-fasthttp replacement for native @code{net/http} module.") (license license:expat))) +(define-public go-github-com-go-webauthn-webauthn + (package + (name "go-github-com-go-webauthn-webauthn") + (version "0.10.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-webauthn/webauthn") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jbx3cd8cr4aaqq9s1x4sd1rlcs3lmam5aavpl08s5rj18m7rivf")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.22 + #:import-path "github.com/go-webauthn/webauthn" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-failing-tests + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file + (list + ;; It tryes to access outbound network: + ;; + ;; Get "https://mds.fidoalliance.org": dial tcp: + ;; lookup mds.fidoalliance.org on [::1]:53: read udp + ;; [::1]:52300->[::1]:53: read: connection refused + ;; + ;; Post "https://mds3.fido.tools/getEndpoints": dial + ;; tcp: lookup mds3.fido.tools on [::1]:53: read udp + ;; [::1]:46703->[::1]:53: read: connection refused + "metadata/metadata_test.go" + ;; Get "https://mds.fidoalliance.org": dial tcp: + ;; lookup mds.fidoalliance.org on [::1]:53: read udp + ;; [::1]:37459->[::1]:53: read: connection refused + "protocol/attestation_androidkey_test.go" + "protocol/attestation_apple_test.go" + "protocol/attestation_packed_test.go" + "protocol/attestation_safetynet_test.go" + "protocol/attestation_test.go" + "protocol/attestation_tpm_test.go" + "protocol/attestation_u2f_test.go"))))) + ;; XXX: Run all tests, workaround for go-build-system's lack of Go + ;; modules support. + (delete 'build) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-fxamacker-cbor-v2 + go-github-com-go-webauthn-x + go-github-com-golang-jwt-jwt-v5 + go-github-com-google-go-tpm + go-github-com-google-uuid + go-github-com-mitchellh-mapstructure)) + (home-page "https://github.com/go-webauthn/webauthn") + (synopsis "Webauthn/FIDO2 library for Golang") + (description + "This library is meant to handle @url{https://www.w3.org/TR/webauthn,Web +Authentication} for Go apps that wish to implement a passwordless solution for +users. This library conforms as much as possible to the guidelines and +implementation procedures outlined by the document. It's a successor of not +maintained https://github.com/duo-labs/webauthn library.") + (license license:bsd-3))) + (define-public go-github-com-go-webauthn-x (package (name "go-github-com-go-webauthn-x")