prometheus-keepalived-exporter
LOW
maintainer k0ste
0 votes
base
keepalived-exporter
scanned 2026-09-17 00:27:14.276658
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
4
pkgbase='keepalived-exporter'
5
pkgname="prometheus-${pkgbase}"
6
pkgver='1.7.1'
7
pkgrel='2'
8
pkgdesc='Prometheus exporter for Keepalived'
9
arch=('x86_64' 'aarch64')
10
_uri='github.com/mehdy'
11
url="https://${_uri}/${pkgbase}"
12
license=('GPL')
13
depends=('keepalived>=2.2.7-2')
14
makedepends=('go')
15
source=("${pkgbase}-${pkgver}.tar.gz::https://codeload.${_uri}/${pkgbase}/tar.gz/refs/tags/v${pkgver}"
16
"${pkgname}"
17
"${pkgname}.service"
18
"${pkgname}.sysusers")
19
sha256sums=('e17022c7e1e63d145e473a17702ee1023c574db06bb460f9d6e39017c3c74bb4'
20
'3a1d17478bc66f0fc76ddd83ffd4d7ff116631fec915ea444b508789e2c5e89f'
21
'e617ee53931ce5d3556c8b64e6037d96192ba0a424f508e2a91055b54e23af88'
22
'd52f807f4d965b4f8a22238013a3476a1accf941e962b9a0866e58e0ec4676f4')
23
backup=("etc/conf.d/${pkgname}")
24
25
prepare() {
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
36
build() {
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
54
check() {
55
cd "${GOPATH}/src/${_uri}/${pkgbase}"
56
go test -modcacherw -x ./...
57
}
58
59
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |