From nobody Tue Oct 25 12:29:40 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 4MxWTx1J9cz4gLCD; Tue, 25 Oct 2022 12:29:41 +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 4MxWTx0p33z3gwJ; Tue, 25 Oct 2022 12:29:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666700981; 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=pGVfai8QPU5g1ZAK9aconYc7/JMygBTxouOnx6Zow88=; b=RA2Y29y/hTHc/So6uVK1p8x7qI4SUXvXhw81alvB2nLDjOdxg+SXSkbYe1goQCXhtnKTnn 3K6QN/Vi4jjcLQ843XyZCUum+ZOBedyNGUcuk1OEApKzB5fcLV9WH8Xgb3sQ02nkBci+UT LgBzq13NeE0wTGxjr0Cv7xgU39A61zcTaI0mq4rtBIacCHQ/eKqZrel2sN6md66edsiwe8 nhMy+zP9kZ6WZtnmGsqM1Bai10IPNMOBRGGd5V22LHONOUFDfPqtWAokyDVUuc9tuwEF7x lRHlkfP38lYbN4axTyFImGLMixK5KTrVsT7+U3BxL4n4JRdKv2jmep58HBQ0rg== 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 4MxWTw6z10zdVJ; Tue, 25 Oct 2022 12:29:40 +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 29PCTebY082456; Tue, 25 Oct 2022 12:29:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29PCTePj082455; Tue, 25 Oct 2022 12:29:40 GMT (envelope-from git) Date: Tue, 25 Oct 2022 12:29:40 GMT Message-Id: <202210251229.29PCTePj082455@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 0155f0a274ec - main - Add security/tfsec: Security scanner for Terraform 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: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0155f0a274ec73652bf6c99737761ab23c0af165 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666700981; 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=pGVfai8QPU5g1ZAK9aconYc7/JMygBTxouOnx6Zow88=; b=kKZISWMugzmYsPoaeYoWEP7Vxz2UomsRP6a80L6ca9cr/54r+bV94t6B2zz7gqYRA+KM7e swkKxra5Jpmqi5jE/h+Wo64KFeCwCH9Jie9bwdTTgxs8WfoRFiW9To69WGyk2I3mci/TAM ZYMVKm0EHrIsc8yuC6tbysDc2TbEFqhujpgDgL/ui42YhDWG2U2pl9L/hkGsS25VSqZxyV wMIQnuSJww63ERtqGtXuVhR5o3IuV+6TqGj8Q5XP9mACHqwFKcSnmSN8CzSi7fLYfbh+WS TvhNzPPlzWbP5NeeEvYNRcf4F7JscZh4M4xexYJB9l1d+PwHKrzMhH659cQJKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666700981; a=rsa-sha256; cv=none; b=xuaPcYDs3BJOd4WyJIZeDzyfeEX7jGUOdiVef4h9IVNTD2UzZJrO9n1SnvJnMBC1UqL7s4 OXyj0JAksOaFu8Kdp7PBMSEqrZhxzM1lky6uiRJjFeOc8ZybjTmJ02PNfVnYC1mIoMjaP6 Wv31CgYCfl82O2q1E3GcpIlOp54T7v2K10LBFKFniD+WYIizdsMWTq2fPV4c1Vg4InVF46 bl6hBDF8ZJO1f6cd+zuZZwW4BueiKCoa7S9rTzXlNPBrnUgr+a+THXx0Ovk1S5Ry2Ia/7j 9E3rjlwFrCZIKeqs9B0OmKoroCnfPvffTTym/rwYkbeKpbuJ68WnzvXUowBdcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=0155f0a274ec73652bf6c99737761ab23c0af165 commit 0155f0a274ec73652bf6c99737761ab23c0af165 Author: Gabriel M. Dutra <0xdutra@gmail.com> AuthorDate: 2022-10-25 12:28:02 +0000 Commit: Li-Wen Hsu CommitDate: 2022-10-25 12:28:02 +0000 Add security/tfsec: Security scanner for Terraform PR: 267319 --- security/Makefile | 2 ++ security/tfsec/Makefile | 22 ++++++++++++++++++++++ security/tfsec/distinfo | 5 +++++ security/tfsec/pkg-descr | 3 +++ 4 files changed, 32 insertions(+) diff --git a/security/Makefile b/security/Makefile index d032b972b3ff..a296c7eaeeba 100644 --- a/security/Makefile +++ b/security/Makefile @@ -235,6 +235,7 @@ SUBDIR += kc24 SUBDIR += kdbxviewer SUBDIR += keepass + SUBDIR += keepass-diff SUBDIR += keepass-plugin-keepassrpc SUBDIR += keepassxc SUBDIR += keybase @@ -1243,6 +1244,7 @@ SUBDIR += teleport SUBDIR += testssl.sh SUBDIR += tfhe + SUBDIR += tfsec SUBDIR += theonionbox SUBDIR += tinc SUBDIR += tinc-devel diff --git a/security/tfsec/Makefile b/security/tfsec/Makefile new file mode 100644 index 000000000000..adf212733f8f --- /dev/null +++ b/security/tfsec/Makefile @@ -0,0 +1,22 @@ +PORTNAME= tfsec +DISTVERSIONPREFIX= v +DISTVERSION= 1.28.0 +CATEGORIES= security + +MAINTAINER= 0xdutra@gmail.com +COMMENT= Security scanner for Terraform +WWW= https://aquasecurity.github.io/tfsec + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules + +GO_MODULE= github.com/aquasecurity/tfsec +GO_TARGET= ./cmd/${PORTNAME} + +GO_BUILDFLAGS= -ldflags="version.Version=${DISTVERSION}" + +PLIST_FILES= bin/${PORTNAME} + +.include diff --git a/security/tfsec/distinfo b/security/tfsec/distinfo new file mode 100644 index 000000000000..9f191a59f706 --- /dev/null +++ b/security/tfsec/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1663944299 +SHA256 (go/security_tfsec/tfsec-v1.28.0/v1.28.0.mod) = 7d4d1b7236665ee2d02aa052acc61b5afe2456ebbc3f2c014a66840469a62185 +SIZE (go/security_tfsec/tfsec-v1.28.0/v1.28.0.mod) = 5092 +SHA256 (go/security_tfsec/tfsec-v1.28.0/v1.28.0.zip) = 08cc1cbff5f2f41751d36d7a690a835fd797d25e03852c733f79cd9d831cab4c +SIZE (go/security_tfsec/tfsec-v1.28.0/v1.28.0.zip) = 6830052 diff --git a/security/tfsec/pkg-descr b/security/tfsec/pkg-descr new file mode 100644 index 000000000000..35aeae105b33 --- /dev/null +++ b/security/tfsec/pkg-descr @@ -0,0 +1,3 @@ +Tool for static analysis of your terraform code to spot misconfigurations. +Scan remote and local Terraform modules, support modules outputs formats: +JSON, SARIF, CSV, CheckStyle, JUnit, text, Gif.