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
6pkgname=open-consul
7_commit=25957a17b5eddd1b95ebda13f8a667ec3c02b4c6
8pkgver=1.16.4
9pkgrel=2
10pkgdesc="A tool for service discovery, monitoring and configuration."
11provides=('consul')
12conflicts=('consul')
13arch=('x86_64')
14url="https://developer.hashicorp.com/consul/docs/v1.16.x"
15license=('MPL2')
16depends=('glibc')
17makedepends=('go')
18source=("${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')
23install=consul.install
24backup=('etc/default/consul')
25sha512sums=('SKIP'
26 'c70b9d1556f6c7ecb2e915ab685f289cef0e31198bd2e50c74a0483bbfb387beec67334f539a90adbf68b61b07946e98b300ab8a8e26e53b35f4ab4894adeb04'
27 'ec5a800529a297c709fa383c094ecf106351cf0f8ac7b613b972d415d77fe001088902d7ab805e63e78a8e6360323fec1b795db5a4446df1e21b9b4ed31e7079'
28 'ef872aedb2bc022a29292b7972a792b22e684c1ccb904a2b2cfec6d8966c28fb19be1452ce060821c419f1b646b236ba2e783175595e4bb6926d164c27a15c87'
29 'c4292b8f56ee955ed7385a49843fd90d6434029891b3e1e724cb2fc841514c06e2554a26d3937c114371b18c2168c4e64319eb2cbd726ee8b35870df19089348')
30
31export CGO_LDFLAGS="${LDFLAGS}"
32export CGO_CFLAGS="${CFLAGS}"
33export CGO_CPPFLAGS="${CPPFLAGS}"
34export CGO_CXXFLAGS="${CXXFLAGS}"
35
36export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
37
38export XC_OSARCH='linux/amd64'
39
40prepare() {
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
55build() {
56 cd "${srcdir}/${pkgname}"
57
58 go build -o build ./...
59}
60
61check() {
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
68package() {
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)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion