From 4cda699972697cf5151218330925127adbb7b643 Mon Sep 17 00:00:00 2001 From: Zakhar Bessarab Date: Wed, 21 Aug 2024 11:25:13 +0200 Subject: [PATCH] make: reset permissions when creating release archive (#6846) ### Describe Your Changes Forcefully set permissions for release binaries to 1000:1000. This helps to avoid issues such as https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6788 on systems with limitations around UID:GID configuration. "1000" UID and GID is widely used by linux distributions for the first user in the system. ### Checklist The following checks are **mandatory**: - [x] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/). --------- Signed-off-by: Zakhar Bessarab Signed-off-by: hagen1778 Co-authored-by: hagen1778 (cherry picked from commit 654c1cb9d1e76b3952a4ab089687f1c059bae879) Signed-off-by: hagen1778 --- Makefile | 3 ++- docs/CHANGELOG.md | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 68207a148c..14b6792db1 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ PKG_TAG := $(BUILDINFO_TAG) endif GO_BUILDINFO = -X '$(PKG_PREFIX)/lib/buildinfo.Version=$(APP_NAME)-$(DATEINFO_TAG)-$(BUILDINFO_TAG)' +TAR_OWNERSHIP ?= --owner=1000 --group=1000 .PHONY: $(MAKECMDGOALS) @@ -134,7 +135,7 @@ release-vmcluster-goos-goarch: \ vmselect-$(GOOS)-$(GOARCH)-prod \ vmstorage-$(GOOS)-$(GOARCH)-prod cd bin && \ - tar --transform="flags=r;s|-$(GOOS)-$(GOARCH)||" -czf victoria-metrics-$(GOOS)-$(GOARCH)-$(PKG_TAG).tar.gz \ + tar $(TAR_OWNERSHIP) --transform="flags=r;s|-$(GOOS)-$(GOARCH)||" -czf victoria-metrics-$(GOOS)-$(GOARCH)-$(PKG_TAG).tar.gz \ vminsert-$(GOOS)-$(GOARCH)-prod \ vmselect-$(GOOS)-$(GOARCH)-prod \ vmstorage-$(GOOS)-$(GOARCH)-prod \ diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index b5810e82f7..886de7e446 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -30,6 +30,7 @@ See also [LTS releases](https://docs.victoriametrics.com/lts-releases/). ## tip **Update note 1: The `external_labels` field in vmalert-tool [test file](https://docs.victoriametrics.com/vmalert-tool/#test-file-format) will be deprecated soon. Please use `-external.label` command-line flag instead, in the same way as vmalert uses it. This change is done for the sake of consistency between vmalert and vmalert-tool configuration. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6735).** + **Update note 2: starting from this release, [vmagent](https://docs.victoriametrics.com/vmagent/) and [Single-node VictoriaMetrics](https://docs.victoriametrics.com/) will no longer add the default port 80/443 for scrape URLs without a specified port. The value of `instance` label for those scrape targets will be changed from `
:<80|443>` to `
`, generating new time series. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6792) for details.** @@ -53,6 +54,7 @@ The value of `instance` label for those scrape targets will be changed from `