openvpn-auth-oauth2
maintainer k0ste
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is downloaded from GitHub via codeload.github.com, a legitimate GitHub service for tarball generation; despite the non-standard host pattern, it hosts the project's own source code, and the build process compiles from this verified source without executing untrusted binaries or exfiltrating data.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is downloaded from GitHub via codeload.github.com, a legitimate GitHub service for tarball generation; despite the non-standard host pattern, it hosts the project's own source code, and the build process compiles from this verified source without executing untrusted binaries or exfiltrating data.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:14
source=("${pkgname}-${pkgver}.tar.gz::https://codeload.${_uri}/${pkgname}/tar.gz/refs/tags/v${pkgver}")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Shalygin Konstantin <k0ste@k0ste.ru>
2
# Contributor: Shalygin Konstantin <k0ste@k0ste.ru>
3
4
pkgname='openvpn-auth-oauth2'
5
pkgver='1.28.2'
6
pkgrel='1'
7
pkgdesc='A Plugin/management interface client for OpenVPN server to handle an OIDC based single sign-on (SSO) auth flows'
8
arch=('x86_64' 'aarch64')
9
_uri="github.com/jkroepke"
10
url="https://${_uri}/${pkgname}"
11
license=('MIT')
12
makedepends=('go')
13
depends=('openvpn>=2.6.2')
14
source=("${pkgname}-${pkgver}.tar.gz::https://codeload.${_uri}/${pkgname}/tar.gz/refs/tags/v${pkgver}")
15
sha256sums=('632a1fd9998b67b0b0caa903fc55d4945c6e2ab2507bcb53bf8b2b93110d4bdc')
16
backup=("etc/conf.d/${pkgname}"
17
"etc/${pkgname}/config.yaml")
18
19
prepare() {
20
export GOPATH="${srcdir}/gopath"
21
export GOBIN="${GOPATH}/bin"
22
export GOCACHE="${srcdir}/cache/go-cache"
23
export GOMODCACHE="${srcdir}/cache/go"
24
export GOTMPDIR="${srcdir}"
25
eval "$(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH")"
26
mkdir -p "${GOPATH}/src/${_uri}"
27
ln -snf "${srcdir}/${pkgname}-${pkgver}" "${GOPATH}/src/${_uri}/${pkgname}"
28
29
sed -i \
30
-e 's|/etc/sysconfig|/etc/conf.d|g' \
31
-e 's|CapabilityBoundingSet=|CapabilityBoundingSet=CAP_NET_BIND_SERVICE|g' \
32
-e 's|AmbientCapabilities=|AmbientCapabilities=CAP_NET_BIND_SERVICE|g' \
33
-e '/PrivateUsers=true/d' \
34
"${pkgname}-${pkgver}/packaging/usr/lib/systemd/system/${pkgname}.service"
35
36
}
37
38
build() {
39
cd "${GOPATH}/src/${_uri}/${pkgname}"
40
GOOS="${GOHOSTOS}" GOARCH="${GOHOSTARCH}" BUILDTAGS="no_otel"
41
42
for e in "cmd" "lib"
43
do
44
45
if [[ "${e}" == "lib" ]]
46
then
47
mode="c-shared"
48
outname="${pkgname}.so"
49
else
50
mode="pie"
51
outname="${pkgname}"
52
fi
53
54
go build -x \
55
-buildmode="${mode}" \
56
-trimpath \
57
-mod="readonly" \
58
-modcacherw \
59
-ldflags "-linkmode external -extldflags '${LDFLAGS}' \
60
-X ${_uri}/${pkgname}/internal/version.Version=${pkgver} \
61
-X ${_uri}/${pkgname}/internal/version.Commit=$(git rev-parse HEAD) \
62
-X ${_uri}/${pkgname}/internal/version.Date=$(date -u '+%Y%m%d-%H:%M:%S' --date=@${SOURCE_DATE_EPOCH})" \
63
-o "${outname}" \
64
"./${e}/${pkgname}"
65
done
66
}
67
68
check() {
69
cd "${GOPATH}/src/${_uri}/${pkgname}"
70
go test -modcacherw -race ./...
71
}
72
73
package() {
74
cd "${pkgname}-${pkgver}"
75
install -Dm0644 "LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
76
install -Dm0755 "${pkgname}" -t "${pkgdir}/usr/bin"
77
install -Dm0755 "${pkgname}.so" -t "${pkgdir}/usr/lib/openvpn/plugins"
78
install -Dm0644 "${pkgname}.h" -t "${pkgdir}/usr/include"
79
80
pushd "packaging"
81
install -Dm0644 "etc/${pkgname}/config.yaml" -t "${pkgdir}/etc/${pkgname}"
82
install -Dm0644 "etc/sysconfig/${pkgname}" -t "${pkgdir}/etc/conf.d"
83
install -Dm0644 "usr/lib/systemd/system/${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system"
84
install -Dm0644 "usr/lib/sysusers.d/${pkgname}.conf" -t "${pkgdir}/usr/lib/sysusers.d"
85
}
86
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |