From nobody Mon Oct 6 08:29:43 2025 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 4cgCB02CLPz6B2Wm; Mon, 06 Oct 2025 08:29:44 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cgCB00nfMz3ZXY; Mon, 06 Oct 2025 08:29:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759739384; 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=h+hDx3pwOXLsPzlnIrs1gamQc8gEpjqOvSzczwXIjrM=; b=MV8U11L1kCsrj9sb55Wg6UUV6NwYXoUTh2995V9l0I7iWc+xDkMH8FWPtIO8vyHCbwYMZz YkNwpgSxhb2G65CB/zL/cNUPIh+rV88WaDQ2ElFQQxxAUNdbDXZQ8Zm2xKmtWTybSFRQXJ P1Fe/DK5AJIc0yqjI0v+hrGjTLKnLVNqxpvka2nav52ous/y0WMi9gKEDmJbPsvRFrAXfl Wq//9VpHn6TEAbfgEDk3nx4Pj5kN+13q1zwJZKbEp2O9aAa9yK0hUff3ElgERJFz6u+BDE ZZTHRSpnvDOucYolnixMUPYw5rR+ny7s6ti2KvyRxrgU1qZMlkIMJbTg4oSifA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759739384; 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=h+hDx3pwOXLsPzlnIrs1gamQc8gEpjqOvSzczwXIjrM=; b=g44emMuyPjmD5T3QuAMj9Sjeu8Ak4MnKyv0V3BW9q43lCBKE7MJ0vGZqwR7Y9bvGvXb8mm CRMJpBS4tqMXITYY8ioLT7QWN/izbP+7TwdaoXpYy9AZb9kyd7xD4+wLYNF/6lpyINNcgr ckHGqUKe4jlMphGZt8P+1jfEMu8ly7S/LY0DWKNVpT5OZrV9dcb6pcb2MRI0nt9kYYUuLu bobdKhJtD09ow9Rdt3WoE8dm1Y4j7KLV0QRwK9pIyI5cZvyX8h12DphjmhJhRK0goNObc+ kt0QAUz1myEIHL/ADmsIvOV9+3pyLRUrPUKscc5wQs6u6Rz08zTPKJUdRWMMNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759739384; a=rsa-sha256; cv=none; b=L4xUAH5WuCT1YuH6HRG1cdPhklv46JXH2S71xqpX868i7ZVbo5+QgDrCYql+4MiU5iYyTN Jj8nXr22LfYnc7UMFSaQjBzx67Dyn6CjqquqlLeroPHlclEqW/PhSk15buXVRn1KWfw/Wm AxcBw25btXMziI2ui1h1wnDRflv7NcR+/4NHxEjBRohQ8qvHUKSuZSVjNudgJGybgiTrP9 nVZ9/Gt485dvJL37A/Z2f0IlhWtVIkgA3LVb8zscG1CfTnO9yv+C9OoeXj8NXexlH8frhj I//Npa0b50ajS+GjcN9h12wvuAw5Z3mDcUzrK6CL4ca8fO+FEl/PLLHBIX+lhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cgCB004DwzrBv; Mon, 06 Oct 2025 08:29:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5968Thgj042764; Mon, 6 Oct 2025 08:29:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5968ThoJ042761; Mon, 6 Oct 2025 08:29:43 GMT (envelope-from git) Date: Mon, 6 Oct 2025 08:29:43 GMT Message-Id: <202510060829.5968ThoJ042761@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: e30addd9fc1a - main - security/py-guardpost: New port: Framework to handle authentication and authorization 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e30addd9fc1a0df89d77f7e83536cbcfe9ca9fd3 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=e30addd9fc1a0df89d77f7e83536cbcfe9ca9fd3 commit e30addd9fc1a0df89d77f7e83536cbcfe9ca9fd3 Author: Yuri Victorovich AuthorDate: 2025-10-06 07:46:16 +0000 Commit: Yuri Victorovich CommitDate: 2025-10-06 08:25:51 +0000 security/py-guardpost: New port: Framework to handle authentication and authorization --- security/Makefile | 1 + security/py-guardpost/Makefile | 31 +++++++++++++++++++++++++++++++ security/py-guardpost/distinfo | 3 +++ security/py-guardpost/pkg-descr | 14 ++++++++++++++ 4 files changed, 49 insertions(+) diff --git a/security/Makefile b/security/Makefile index 2574d50691c8..44333c31f3b1 100644 --- a/security/Makefile +++ b/security/Makefile @@ -956,6 +956,7 @@ SUBDIR += py-gpsoauth SUBDIR += py-greenbone-feed-sync SUBDIR += py-gssapi + SUBDIR += py-guardpost SUBDIR += py-gvm-tools SUBDIR += py-hkdf SUBDIR += py-htpasswd diff --git a/security/py-guardpost/Makefile b/security/py-guardpost/Makefile new file mode 100644 index 000000000000..311b25c6fd70 --- /dev/null +++ b/security/py-guardpost/Makefile @@ -0,0 +1,31 @@ +PORTNAME= guardpost +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.3 +CATEGORIES= security python +#MASTER_SITES= PYPI # no tests +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Framework to handle authentication and authorization +WWW= https://github.com/Neoteroi/GuardPost + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rodi>=2.0.0:devel/py-rodi@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyjwt>0:www/py-pyjwt@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= Neoteroi +GH_PROJECT= GuardPost + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +# tests as of 1.0.3: 101 passed, 1 failed (test_jwt_validator_fetches_tokens_again_for_unknown_kid) in 11.37s + +.include diff --git a/security/py-guardpost/distinfo b/security/py-guardpost/distinfo new file mode 100644 index 000000000000..3c6f3c2b4fc4 --- /dev/null +++ b/security/py-guardpost/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1759700648 +SHA256 (Neoteroi-GuardPost-v1.0.3_GH0.tar.gz) = 8d040697f6d540bfb386f6bd8c122090b474ab8a447ed2f402fcd5d73a05e4bf +SIZE (Neoteroi-GuardPost-v1.0.3_GH0.tar.gz) = 38518 diff --git a/security/py-guardpost/pkg-descr b/security/py-guardpost/pkg-descr new file mode 100644 index 000000000000..a1800c67e953 --- /dev/null +++ b/security/py-guardpost/pkg-descr @@ -0,0 +1,14 @@ +GuardPost is a Python framework designed to handle authentication and +authorization in web applications. It provides a flexible and extensible +system for managing user permissions, roles, and access control. + +Key features: +* Authentication and authorization framework +* Support for role-based access control (RBAC) +* Extensible permission system +* Integration with dependency injection +* JWT token support with optional cryptography +* Clean API for defining access policies + +GuardPost is particularly useful for building secure web APIs and +applications that require fine-grained access control.