prometheus-keepalived-exporter

maintainer k0ste · 0 votes · base keepalived-exporter · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The source is downloaded from a GitHub-like domain controlled by the project maintainer; building from source is standard for AUR packages, and no malicious activity is present.

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 90%): The source is downloaded from a GitHub-like domain controlled by the project maintainer; building from source is standard for AUR packages, and no malicious activity is present.

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:15 source=("${pkgbase}-${pkgver}.tar.gz::https://codeload.${_uri}/${pkgbase}/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
4pkgbase='keepalived-exporter'
5pkgname="prometheus-${pkgbase}"
6pkgver='1.7.1'
7pkgrel='2'
8pkgdesc='Prometheus exporter for Keepalived'
9arch=('x86_64' 'aarch64')
10_uri='github.com/mehdy'
11url="https://${_uri}/${pkgbase}"
12license=('GPL')
13depends=('keepalived>=2.2.7-2')
14makedepends=('go')
15source=("${pkgbase}-${pkgver}.tar.gz::https://codeload.${_uri}/${pkgbase}/tar.gz/refs/tags/v${pkgver}"
16 "${pkgname}"
17 "${pkgname}.service"
18 "${pkgname}.sysusers")
19sha256sums=('e17022c7e1e63d145e473a17702ee1023c574db06bb460f9d6e39017c3c74bb4'
20 '3a1d17478bc66f0fc76ddd83ffd4d7ff116631fec915ea444b508789e2c5e89f'
21 'e617ee53931ce5d3556c8b64e6037d96192ba0a424f508e2a91055b54e23af88'
22 'd52f807f4d965b4f8a22238013a3476a1accf941e962b9a0866e58e0ec4676f4')
23backup=("etc/conf.d/${pkgname}")
24
25prepare() {
26 export GOPATH="${srcdir}/gopath"
27 export GOBIN="${GOPATH}/bin"
28 export GOCACHE="${srcdir}/cache/go-cache"
29 export GOMODCACHE="${srcdir}/cache/go"
30 export GOTMPDIR="${srcdir}"
31 eval "$(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH")"
32 mkdir -p "${GOPATH}/src/${_uri}"
33 ln -snf "${srcdir}/${pkgbase}-${pkgver}" "${GOPATH}/src/${_uri}/${pkgbase}"
34}
35
36build() {
37 cd "${GOPATH}/src/${_uri}/${pkgbase}"
38 eval "$(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH")"
39 GOOS="${GOHOSTOS}" GOARCH="${GOHOSTARCH}" \
40 go build -x \
41 -buildmode="pie" \
42 -trimpath \
43 -mod="readonly" \
44 -modcacherw \
45 -ldflags "-linkmode external -extldflags '${LDFLAGS}' \
46 -X github.com/prometheus/common/version.Version=${pkgver} \
47 -X github.com/prometheus/common/version.Revision=$(git rev-parse HEAD) \
48 -X github.com/prometheus/common/version.Branch=tarball \
49 -X github.com/prometheus/common/version.BuildUser=$(whoami)@$(hostnamectl hostname) \
50 -X github.com/prometheus/common/version.BuildDate=$(date -u '+%Y%m%d-%H:%M:%S' --date=@${SOURCE_DATE_EPOCH})" \
51 "./cmd/${pkgbase}"
52}
53
54check() {
55 cd "${GOPATH}/src/${_uri}/${pkgbase}"
56 go test -modcacherw -x ./...
57}
58
59package() {
60 install -Dm0755 "${GOPATH}/src/${_uri}/${pkgbase}/${pkgbase}" "${pkgdir}/usr/bin/${pkgname}"
61 install -Dm0644 "${GOPATH}/src/${_uri}/${pkgbase}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
62 install -Dm0644 "${pkgname}" -t "${pkgdir}/etc/conf.d"
63 install -Dm0644 "${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system"
64 install -Dm0644 "${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
65}
66

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