open-consul
maintainer pbazaah
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is a tarball from a personal domain, but it corresponds to a specific Git commit of the official Consul project, and the build process compiles from source using standard Go tooling, which is normal for AUR packages; the worst case of a swapped source would be untrusted code execution, but the context suggests it is a legitimate fork used for packaging, not an arbitrary remote binary.
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 a tarball from a personal domain, but it corresponds to a specific Git commit of the official Consul project, and the build process compiles from source using standard Go tooling, which is normal for AUR packages; the worst case of a swapped source would be untrusted code execution, but the context suggests it is a legitimate fork used for packaging, not an arbitrary remote binary.
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:18
source=("${pkgname}-${pkgver}.tar.gz::https://git.st8l.com/luxolus/${pkgname}/archive/${_commit}.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Paul Stemmet <aur@luxolus.com>
2
# Contributor: Thore Bödecker <foxxx0@archlinux.org>
3
# Contributor: Felix Yan <felixonmars@archlinux.org>
4
# Contributor: Justin Kromlinger <hashworks@archlinux.org>
5
6
pkgname=open-consul
7
_commit=25957a17b5eddd1b95ebda13f8a667ec3c02b4c6
8
pkgver=1.16.4
9
pkgrel=2
10
pkgdesc="A tool for service discovery, monitoring and configuration."
11
provides=('consul')
12
conflicts=('consul')
13
arch=('x86_64')
14
url="https://developer.hashicorp.com/consul/docs/v1.16.x"
15
license=('MPL2')
16
depends=('glibc')
17
makedepends=('go')
18
source=("${pkgname}-${pkgver}.tar.gz::https://git.st8l.com/luxolus/${pkgname}/archive/${_commit}.tar.gz"
19
'consul.service'
20
'consul.default'
21
'consul.sysusers'
22
'example.json')
23
install=consul.install
24
backup=('etc/default/consul')
25
sha512sums=('SKIP'
26
'c70b9d1556f6c7ecb2e915ab685f289cef0e31198bd2e50c74a0483bbfb387beec67334f539a90adbf68b61b07946e98b300ab8a8e26e53b35f4ab4894adeb04'
27
'ec5a800529a297c709fa383c094ecf106351cf0f8ac7b613b972d415d77fe001088902d7ab805e63e78a8e6360323fec1b795db5a4446df1e21b9b4ed31e7079'
28
'ef872aedb2bc022a29292b7972a792b22e684c1ccb904a2b2cfec6d8966c28fb19be1452ce060821c419f1b646b236ba2e783175595e4bb6926d164c27a15c87'
29
'c4292b8f56ee955ed7385a49843fd90d6434029891b3e1e724cb2fc841514c06e2554a26d3937c114371b18c2168c4e64319eb2cbd726ee8b35870df19089348')
30
31
export CGO_LDFLAGS="${LDFLAGS}"
32
export CGO_CFLAGS="${CFLAGS}"
33
export CGO_CPPFLAGS="${CPPFLAGS}"
34
export CGO_CXXFLAGS="${CXXFLAGS}"
35
36
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
37
38
export XC_OSARCH='linux/amd64'
39
40
prepare() {
41
cd "${srcdir}/${pkgname}"
42
43
mkdir -p build
44
45
local filename
46
for filename in "${source[@]}"; do
47
if [[ "$filename" =~ \.patch$ ]]; then
48
patch -p1 -N -l -i "$srcdir/${filename##*/}"
49
fi
50
done
51
52
go mod download
53
}
54
55
build() {
56
cd "${srcdir}/${pkgname}"
57
58
go build -o build ./...
59
}
60
61
check() {
62
cd "${srcdir}/${pkgname}"
63
64
# assert version number from commit hash matches pkgver metadata
65
./build/consul --version | head -1 | grep -qF -- "v${pkgver}"
66
}
67
68
package() {
69
cd "${srcdir}/${pkgname}"
70
71
# dirs
72
install -D -m750 -o 208 -g 208 -d "${pkgdir}/var/lib/consul"
73
install -D -m755 -o 0 -g 208 -d "${pkgdir}/etc/consul.d"
74
75
# configuration
76
install -D -m644 "${srcdir}/consul.default" "${pkgdir}/etc/default/consul"
77
install -D -m644 "${srcdir}/example.json" "${pkgdir}/usr/share/doc/${pkgname}/config.example.json"
78
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
79
80
install -D -m644 "${srcdir}/consul.service" "${pkgdir}/usr/lib/systemd/system/consul.service"
81
install -D -m644 "${srcdir}/consul.sysusers" "${pkgdir}/usr/lib/sysusers.d/consul.conf"
82
83
# binaries
84
install -Dm755 "build/consul" "${pkgdir}/usr/bin/consul"
85
}
86
87
# vim:set ts=2 sw=2 et:
88
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 |