From nobody Sun Feb 27 12:15:19 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 370B519E061A; Sun, 27 Feb 2022 12:15:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K62X75pBgz3hqj; Sun, 27 Feb 2022 12:15:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645964119; 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; bh=XsdTMkzJovCqPF8oHQIjXun1SzTONogWa9kHz/kYPfU=; b=UbAv/P3/imwBQOiUQT/dO70bWTeVfUCRm7sR/b1Q4pjIH2kT2MMatuHzzWLI1gClybgfP5 0vqQT1GyA69DmbuaazjDchEYMQ1+9IH14CXYCx+WTag+pS5RoGFtE3kbj7EWmKuzreFbkm FclGXrNaUqHYGl5HNytm5YiwzH8yNTTtCsWq+BwUmCfghk+y4D+vDXGH+zd64nUEXN97Tz EBahdgVmALHF1fQqzGZ7q1aO4Lsu7PwtX6t08v6iVt+kOSjLa/UqgJvrRWurOOvblGOB2Q QysuY4TXfqKptwjd5Fde3xDqWrwWBQyBWbcv4gQEvq7Y9bupHt8WjSB/jEZvHg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8F89227192; Sun, 27 Feb 2022 12:15:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21RCFJiE073982; Sun, 27 Feb 2022 12:15:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21RCFJWJ073981; Sun, 27 Feb 2022 12:15:19 GMT (envelope-from git) Date: Sun, 27 Feb 2022 12:15:19 GMT Message-Id: <202202271215.21RCFJWJ073981@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jimmy Olgeni Subject: git: d45350b69572 - main - net/nats-nkeys: add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olgeni X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d45350b6957216324fed102a6731d423cef5d83e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645964119; 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; bh=XsdTMkzJovCqPF8oHQIjXun1SzTONogWa9kHz/kYPfU=; b=QunbtFMEajmmkCsM38z+FF2PhP9/kDnCR2Un4Qq9nlm7Mfdj1iFClPl0/cEFMF0ouea9Vq rbAhPXbmcnEXOdotIYsm7okVaH6SaRZuBndvQoDQfWa8CdUj5g6zqjult6vApasqt7zA8F I2Orq570KoeCjt7Jols7HUPwCgbUH34dLA0DbaV7chJvA1kj+DRfe7OzbM4WFgw0bLncob UaTXhFTB0+qFiSHM0oFR5MBeyGxM+im/AUToX7FWNRL2tmBIEQ2Mm4M8kPS6Tp3dQIpITb s5nSNnFrn2Q2SJWM1H1A1eX0dGZsDFybX9NUfSUjBAnBsq4ev5rhNwZAMXVF0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645964119; a=rsa-sha256; cv=none; b=PqgZVayu0pgY5gfDV2zEsXh2cV8yla5hX49hrYFAhusKkl2DkSVtSFafX+fBgUY5zNOj/p XkHiUYc3Ikjemixs7lNIufExyU7KXgLcCO/UC0oXT3U+KbvDFVws7V0p4u93PImcJeJX/v wp9WsMl8YxXLg1Z/7vl7Tm+9aGwoFrHGb16gHHhQ/dWKeBWWp/HWblnc5ssNksSqnEYTe9 WZ31d8VF0R7QFRVTuGsoMXhlHH/k1W0cvREPZkAmTemR93pEaXWRaQNweQD/8X2YN+OSNa vTDqPBR8FioFJAoI1CMNzYljOmL5RDS3O/vjoKPy7B95uoksh9MiFzfQrEjt1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by olgeni: URL: https://cgit.FreeBSD.org/ports/commit/?id=d45350b6957216324fed102a6731d423cef5d83e commit d45350b6957216324fed102a6731d423cef5d83e Author: Jimmy Olgeni AuthorDate: 2022-02-26 17:12:04 +0000 Commit: Jimmy Olgeni CommitDate: 2022-02-27 12:13:37 +0000 net/nats-nkeys: add new port This is a command line utility to manage NATS Ed25519 keys. --- net/Makefile | 1 + net/nats-nkeys/Makefile | 27 +++++++++++++++++++++++++++ net/nats-nkeys/distinfo | 5 +++++ net/nats-nkeys/pkg-descr | 17 +++++++++++++++++ 4 files changed, 50 insertions(+) diff --git a/net/Makefile b/net/Makefile index f6c064f2ccdd..da4bee57f9e8 100644 --- a/net/Makefile +++ b/net/Makefile @@ -485,6 +485,7 @@ SUBDIR += nakenchat SUBDIR += nanomsg SUBDIR += nast + SUBDIR += nats-nkeys SUBDIR += nats-server SUBDIR += nats-streaming-server SUBDIR += nats-top diff --git a/net/nats-nkeys/Makefile b/net/nats-nkeys/Makefile new file mode 100644 index 000000000000..8a45ce069c3d --- /dev/null +++ b/net/nats-nkeys/Makefile @@ -0,0 +1,27 @@ +PORTNAME= nkeys +PORTVERSION= 0.3.0 +DISTVERSIONPREFIX= v +CATEGORIES= net +PKGNAMEPREFIX= nats- + +MAINTAINER= olgeni@FreeBSD.org +COMMENT= Public-key signature system based on Ed25519 for the NATS ecosystem + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules +GO_TARGET= ./nk +GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} +USE_GITHUB= yes +GH_ACCOUNT= nats-io +GH_TUPLE= golang:crypto:e6e6c4f2bb5b:golang_crypto/vendor/golang.org/x/crypto + +PLIST_FILES= bin/nk \ + share/doc/${PORTNAME}/README.md + +post-install: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +.include diff --git a/net/nats-nkeys/distinfo b/net/nats-nkeys/distinfo new file mode 100644 index 000000000000..2091e5af8c43 --- /dev/null +++ b/net/nats-nkeys/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1645893896 +SHA256 (nats-io-nkeys-v0.3.0_GH0.tar.gz) = ea281df5dc380b84f61c3712b367f02957cff4cb7802e73b2b0b7588e4f6b809 +SIZE (nats-io-nkeys-v0.3.0_GH0.tar.gz) = 19986 +SHA256 (golang-crypto-e6e6c4f2bb5b_GH0.tar.gz) = 06bad34612d7bc2c5ce03762571e55095959f6f725f3e6419051d0fe4aa6a518 +SIZE (golang-crypto-e6e6c4f2bb5b_GH0.tar.gz) = 1726200 diff --git a/net/nats-nkeys/pkg-descr b/net/nats-nkeys/pkg-descr new file mode 100644 index 000000000000..a0912954fe48 --- /dev/null +++ b/net/nats-nkeys/pkg-descr @@ -0,0 +1,17 @@ +NATS is an open-source, cloud-native messaging system. + +This is a command line utility to manage NATS Ed25519 keys. + +The NATS ecosystem will be moving to Ed25519 keys for identity, +authentication and authorization for entities such as Accounts, +Users, Servers and Clusters. + +Ed25519 is fast and resistant to side channel attacks. Generation +of a seed key is all that is needed to be stored and kept safe, as +the seed can generate both the public and private keys. + +The NATS system will utilize Ed25519 keys, meaning that NATS systems +will never store or even have access to any private keys. Authentication +will utilize a random challenge response mechanism. + +WWW: https://github.com/nats-io/nkeys