Files
cozystack/packages/system/observability-proxy/Makefile
T
ZverGuy 7ec648d863 feat(observability-proxy): add the chart and image build
Tenants read their logs, and later their metrics, through an
authorizing proxy that sits in front of the VictoriaLogs and
VictoriaMetrics read paths, so the proxy needs a deployable package
before the console or tenant Grafana can reach it.

The proxy reviews every token and access decision against the API
server, so its own role is limited to creating TokenReviews and
SubjectAccessReviews and reading ApplicationDefinitions and namespaces.
The namespace logs root is authorized as list on cozystack.io logs,
which no API server serves; the rule is aggregated into the tenant view
role so that a namespace viewer passes that review, as upstream grants
pods/log at view.

The image ref lands without a digest until the first build stamps it,
and the package joins the root build list so every build path refreshes
it.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
2026-11-09 15:48:57 +07:00

21 lines
705 B
Makefile

NAME=observability-proxy
NAMESPACE=cozy-observability-proxy
include ../../../hack/common-envs.mk
include ../../../hack/package.mk
test:
helm unittest .
image: image-observability-proxy
image-observability-proxy:
docker buildx build -f images/observability-proxy/Dockerfile ../../.. \
$(call image-tags,observability-proxy,v$(COZYSTACK_VERSION)) \
$(call cache-args,observability-proxy) \
--metadata-file images/observability-proxy.json \
$(BUILDX_ARGS)
IMAGE="$(REGISTRY)/observability-proxy:$(IMAGE_TAG)@$$(yq e '."containerimage.digest"' images/observability-proxy.json -o json -r)" \
yq -i '.observabilityProxy.image = strenv(IMAGE)' values.yaml
rm -f images/observability-proxy.json