Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package talosctl for openSUSE:Factory checked in at 2026-11-25 16:13:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/talosctl (Old) and /work/SRC/openSUSE:Factory/.talosctl.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "talosctl" Wed Nov 25 16:13:28 2026 rev:60 rq:1400476 version:1.14.7 Changes: -------- --- /work/SRC/openSUSE:Factory/talosctl/talosctl.changes 2026-11-13 18:38:38.480706064 +0100 +++ /work/SRC/openSUSE:Factory/.talosctl.new.1340718/talosctl.changes 2026-11-25 16:15:35.513096393 +0100 @@ -1,0 +2,8 @@ +Wed Nov 25 06:08:06 UTC 2026 - Johannes Kastl <[email protected]> + +- update to 1.14.7: + * Dependency Changes + - github.com/siderolabs/pkgs v1.14.0-59-ge6ad19d -> + v1.14.0-66-ga1a4897 + +------------------------------------------------------------------- Old: ---- talosctl-1.14.6.obscpio New: ---- talosctl-1.14.7.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ talosctl.spec ++++++ --- /var/tmp/diff_new_pack.vCrour/_old 2026-11-25 16:15:37.618185646 +0100 +++ /var/tmp/diff_new_pack.vCrour/_new 2026-11-25 16:15:37.620185731 +0100 @@ -17,7 +17,7 @@ Name: talosctl -Version: 1.14.6 +Version: 1.14.7 Release: 0 Summary: CLI to interact with Talos Linux License: MPL-2.0 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.vCrour/_old 2026-11-25 16:15:37.651187045 +0100 +++ /var/tmp/diff_new_pack.vCrour/_new 2026-11-25 16:15:37.655187215 +0100 @@ -4,7 +4,7 @@ <param name="scm">git</param> <param name="exclude">.git</param> <param name="exclude">go.work</param> - <param name="revision">refs/tags/v1.14.6</param> + <param name="revision">refs/tags/v1.14.7</param> <param name="match-tag">v*</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> ++++++ talosctl-1.14.6.obscpio -> talosctl-1.14.7.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/.disvulncheck.yaml new/talosctl-1.14.7/.disvulncheck.yaml --- old/talosctl-1.14.6/.disvulncheck.yaml 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/.disvulncheck.yaml 2026-11-24 11:50:30.000000000 +0100 @@ -3,4 +3,4 @@ ignore: - id: GO-2026-4736 reason: 'gobgp NEXT_HOP DoS (GHSA-4p9m-8gc4-rw2h). The reachable recvMessageloop symbol is real, but the advisory records no fixed version, so govulncheck flags every version. Fix commit osrg/gobgp 583080a7 is an ancestor of pinned commit 2132288c5159, whose source skips ValidateUpdateMsg when parsing has already selected error handling, so it is not affected.' - date: 2026-11-09 + date: 2026-11-23 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/CHANGELOG.md new/talosctl-1.14.7/CHANGELOG.md --- old/talosctl-1.14.6/CHANGELOG.md 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/CHANGELOG.md 2026-11-24 11:50:30.000000000 +0100 @@ -1,3 +1,59 @@ +## [Talos 1.14.7](https://github.com/siderolabs/talos/releases/tag/v1.14.7) (2026-11-24) + +Welcome to the v1.14.7 release of Talos! + + + +Please try out the release binaries and report any issues at +https://github.com/siderolabs/talos/issues. + +### Component Updates + +Linux: 6.18.65 +etcd: 3.7.4 +Flannel CNI: 0.28.11 + +Talos is built with Go 1.26.11. + + +### Contributors + +* Andrey Smirnov +* Fred Heinecke +* GitBluub +* Noel Georgi + +### Changes +<details><summary>4 commits</summary> +<p> + +* [`ad14bbb0d`](https://github.com/siderolabs/talos/commit/ad14bbb0d258c40e50dd59131e030e19fa52318f) feat: update Flannel to 0.28.11 +* [`4fdb745d4`](https://github.com/siderolabs/talos/commit/4fdb745d4c77ad6bfaf22b6e53d1a08cfdeca245) feat: update etcd to 3.7.4 +* [`82a8ef3ed`](https://github.com/siderolabs/talos/commit/82a8ef3edcacbe2bc16bf00a184fe6572fdc7b73) fix: serve logind D-Bus broker clients independently +* [`68d5c6332`](https://github.com/siderolabs/talos/commit/68d5c6332cca14da090cf07c9ef4e4489e44c661) feat: update Linux 6.18.65 +</p> +</details> + +### Changes from siderolabs/pkgs +<details><summary>7 commits</summary> +<p> + +* [`a1a4897`](https://github.com/siderolabs/pkgs/commit/a1a4897db70d69ca5b2d8466668b5d3f7d405840) feat: update Linux to 6.18.65 +* [`62c1972`](https://github.com/siderolabs/pkgs/commit/62c197207a2501d20b4744f85433780abde60571) feat: update libseccomp to 2.6.2 +* [`e5ea794`](https://github.com/siderolabs/pkgs/commit/e5ea7940e5b8453747e27018dc2afad1061616a3) feat: enable MEMORY_FAILURE +* [`d81814b`](https://github.com/siderolabs/pkgs/commit/d81814b9eaa585b5ae3b2a6538d9bb5a51440de4) feat: enable DCB support in the i40e driver +* [`ecf0095`](https://github.com/siderolabs/pkgs/commit/ecf0095ee91eb2c0cc35204485021422fdd9029c) feat: update DRBD to 9.3.5 +* [`9c51ef6`](https://github.com/siderolabs/pkgs/commit/9c51ef6aeb3144b9dd702b17fb4cf8b4e29770b3) fix: add azure nvme udev rules +* [`ef78851`](https://github.com/siderolabs/pkgs/commit/ef7885153f7142f35377d998e6c4cfdf5bb26ebb) fix: backport virtio UDP tunnel GSO outer protocol validation +</p> +</details> + +### Dependency Changes + +* **github.com/siderolabs/pkgs** v1.14.0-59-ge6ad19d -> v1.14.0-66-ga1a4897 + +Previous release can be found at [v1.14.6](https://github.com/siderolabs/talos/releases/tag/v1.14.6) + ## [Talos 1.14.6](https://github.com/siderolabs/talos/releases/tag/v1.14.6) (2026-11-11) Welcome to the v1.14.6 release of Talos! diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/Makefile new/talosctl-1.14.7/Makefile --- old/talosctl-1.14.6/Makefile 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/Makefile 2026-11-24 11:50:30.000000000 +0100 @@ -28,7 +28,7 @@ TOOLS_PREFIX ?= ghcr.io/siderolabs/tools TOOLS ?= v1.14.0-12-g5959f76 PKGS_PREFIX ?= ghcr.io/siderolabs -PKGS ?= v1.14.0-59-ge6ad19d +PKGS ?= v1.14.0-66-ga1a4897 GENERATE_VEX_PREFIX ?= ghcr.io/siderolabs/generate-vex GENERATE_VEX ?= latest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/go.mod new/talosctl-1.14.7/go.mod --- old/talosctl-1.14.6/go.mod 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/go.mod 2026-11-24 11:50:30.000000000 +0100 @@ -408,9 +408,10 @@ go.opentelemetry.io/auto/sdk v1.2.1 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.70.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 // indirect - go.opentelemetry.io/otel v1.45.0 // indirect - go.opentelemetry.io/otel/metric v1.45.0 // indirect - go.opentelemetry.io/otel/trace v1.45.0 // indirect + go.opentelemetry.io/otel v1.47.0 // indirect + go.opentelemetry.io/otel/log v1.47.0 // indirect + go.opentelemetry.io/otel/metric v1.47.0 // indirect + go.opentelemetry.io/otel/trace v1.47.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.yaml.in/yaml/v2 v2.4.4 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/go.sum new/talosctl-1.14.7/go.sum --- old/talosctl-1.14.6/go.sum 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/go.sum 2026-11-24 11:50:30.000000000 +0100 @@ -1005,20 +1005,22 @@ go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.70.0/go.mod h1:DqEFwLumhzMBDQv9PcWbyoDxHI/4lAk6CM4nJBH39sc= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 h1:LMuyCAyfalSjDyjdC65nK6N0zoTT63+E/u95X0JovZI= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0/go.mod h1:085m8qbm4hgc8rZWGDEa4vmyyo2c3nPxUslYUKUIU04= -go.opentelemetry.io/otel v1.45.0 h1:pdrWmLHofpubmArBv1LgFSv1Z0Ie/ppdZzu+kUN5EeU= -go.opentelemetry.io/otel v1.45.0/go.mod h1:XZxIqPapzEYnhNSScF5DIqXhm/rYi0FzCe2XddAwZfQ= +go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM= +go.opentelemetry.io/otel v1.47.0/go.mod h1:8wS9O2qfXrYrzp6hIF/HOYJJf/wIhFPhR2xLuP+iXQU= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0 h1:QRefszxJmfPdjXUUm3j6iDzY03mTPXMjqErFqQ67vUg= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0/go.mod h1:Tiz03lTBVBrm7eWZBOidzEaYaJa8tjwGUGv6d8mlTyk= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0 h1:fG5MCxGz8+2VtrN/WgqSpJFctVz24gpxj8CxkKmc8Ww= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0/go.mod h1:BmAYTn+3ysbRe+IU2msxmf5Rx3g6DHvex+tWI3LdhYI= -go.opentelemetry.io/otel/metric v1.45.0 h1:7Eg1uH7CJ5cXv9is6tnBe1FI6rj1nwUdbFypRm3br/M= -go.opentelemetry.io/otel/metric v1.45.0/go.mod h1:HAPbm1nd3p1PmFH7v2dR+6BjXxw+Lq4a2+pndMAm08s= +go.opentelemetry.io/otel/log v1.47.0 h1:cOTS1CcLbSQeZKanGJ+0JpF/+t4PELi3O3bbl2lqCcI= +go.opentelemetry.io/otel/log v1.47.0/go.mod h1:9byitSQ5pLC6PpqwGXjqdMKya6ZTswHRZh2vvXT33nw= +go.opentelemetry.io/otel/metric v1.47.0 h1:4PptaldXx3Eat1XjMZ68pPJEs5wrhlemctZE9a3UdWY= +go.opentelemetry.io/otel/metric v1.47.0/go.mod h1:ADGSXxRrXM6bjbvLo535EstVFlPpPYZm4LBKixjDHwU= go.opentelemetry.io/otel/sdk v1.45.0 h1:4VVSMgQ83dUgW2aoX5f6JgLvHwIvzcuLnF9lUdCSpCw= go.opentelemetry.io/otel/sdk v1.45.0/go.mod h1:Sr40LgXV7DsKMMJMKOhUWOgMWTfAaqvm2kF0g7ilwuA= go.opentelemetry.io/otel/sdk/metric v1.45.0 h1:oVFszMfyj1Am6s24Vtc7wBb8BKLcwepJjNEYILuiE3o= go.opentelemetry.io/otel/sdk/metric v1.45.0/go.mod h1:vUWUxDZvu1WVRj8JA8S0AdhsPrZoDpA2DdZauIh4mDA= -go.opentelemetry.io/otel/trace v1.45.0 h1:l/mP6Uv7oNO7/TblbhpbgMidxhq1uO/rPsikOyVhxag= -go.opentelemetry.io/otel/trace v1.45.0/go.mod h1:qoJJA2xNMnxRrdISU/kLtfUH2wNeQbiv+jhs/CxI8bc= +go.opentelemetry.io/otel/trace v1.47.0 h1:JOjX/Oci8K94QHddo+bbfya/Ai/nf6/dt9ZfrFNWSrM= +go.opentelemetry.io/otel/trace v1.47.0/go.mod h1:jNaSLa2PZEYFG6fRjJABAu+bw4FS08uDmPg28lTghu0= go.opentelemetry.io/proto/otlp v1.11.0 h1:5rrYs0Ykyj50sdU/JU0x8etU+LubXWb+gED6TbEdMIk= go.opentelemetry.io/proto/otlp v1.11.0/go.mod h1:SmVizdCOAm3XBtG1g1NnOdhW6jtddT72hLMhv8VwA8E= go.step.sm/crypto v0.87.0 h1:+u0pDz1OV9M/SswA6KtcQ3GSrYMMelbL//0W/ceJVYI= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/hack/release.sh new/talosctl-1.14.7/hack/release.sh --- old/talosctl-1.14.6/hack/release.sh 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/hack/release.sh 2026-11-24 11:50:30.000000000 +0100 @@ -4,9 +4,22 @@ RELEASE_TOOL_IMAGE="ghcr.io/siderolabs/release-tool:latest" +# In a git worktree, .git is a file pointing into the main checkout, so the repository has to be mounted separately. +function git_common_dir_mount { + local git_dir + + git_dir=$(git rev-parse --path-format=absolute --git-common-dir 2>/dev/null || true) + + case "${git_dir}" in + ""|"${PWD}"|"${PWD}"/*) ;; + *) echo "-v ${git_dir}:${git_dir}:ro" ;; + esac +} + function release-tool { docker pull "${RELEASE_TOOL_IMAGE}" >/dev/null - docker run --net=host --rm -w /src -v "${PWD}":/src:ro "${RELEASE_TOOL_IMAGE}" -l -d -n ${2} -t "${1}" ./hack/release.toml + # shellcheck disable=SC2046 + docker run --rm -w /src -v "${PWD}":/src:ro $(git_common_dir_mount) "${RELEASE_TOOL_IMAGE}" -l -d -n -t "${1}" ./hack/release.toml } function changelog { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/hack/release.toml new/talosctl-1.14.7/hack/release.toml --- old/talosctl-1.14.6/hack/release.toml 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/hack/release.toml 2026-11-24 11:50:30.000000000 +0100 @@ -7,7 +7,7 @@ ignore_deps = ["github.com/coredns/coredns"] # previous release -previous = "v1.14.5" +previous = "v1.14.6" pre_release = false @@ -18,8 +18,9 @@ [notes.updates] title = "Component Updates" description = """\ -Linux: 6.18.63 -Flannel CNI: 0.28.10 +Linux: 6.18.65 +etcd: 3.7.4 +Flannel CNI: 0.28.11 Talos is built with Go 1.26.11. """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_dbus.go new/talosctl-1.14.7/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_dbus.go --- old/talosctl-1.14.6/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_dbus.go 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_dbus.go 2026-11-24 11:50:30.000000000 +0100 @@ -11,6 +11,7 @@ "path/filepath" "time" + "github.com/siderolabs/talos/internal/pkg/cgroup" "github.com/siderolabs/talos/internal/pkg/logind" "github.com/siderolabs/talos/pkg/machinery/constants" ) @@ -38,7 +39,7 @@ ctx, dbus.cancel = context.WithCancel(context.Background()) - dbus.broker, err = logind.NewBroker(ctx, constants.DBusServiceSocketPath, constants.DBusClientSocketPath) + dbus.broker, err = logind.NewBroker(ctx, constants.DBusServiceSocketPath, constants.DBusClientSocketPath, filepath.Join("/", cgroup.Path(constants.CgroupKubelet))) if err != nil { return err } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/internal/pkg/cgroup/membership.go new/talosctl-1.14.7/internal/pkg/cgroup/membership.go --- old/talosctl-1.14.6/internal/pkg/cgroup/membership.go 1970-01-01 01:00:00.000000000 +0100 +++ new/talosctl-1.14.7/internal/pkg/cgroup/membership.go 2026-11-24 11:50:30.000000000 +0100 @@ -0,0 +1,48 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +package cgroup + +import ( + "errors" + "fmt" + "os" + "strings" +) + +// CheckMembership returns an error unless the process whose cgroup membership is listed at procCgroup +// runs in cgroupPath, or in a cgroup below it. +// +// Each line is hierarchy-ID:controllers:path: a single one on the unified hierarchy, and one per +// hierarchy with cgroup v1, where any hierarchy placing the process there will do. +func CheckMembership(procCgroup, cgroupPath string) error { + // every path is below an empty one + if cgroupPath == "" { + return errors.New("no cgroup to check against") + } + + contents, err := os.ReadFile(procCgroup) + if err != nil { + return err + } + + var found []string + + for line := range strings.Lines(string(contents)) { + fields := strings.SplitN(strings.TrimSpace(line), ":", 3) + if len(fields) != 3 { + continue + } + + path := fields[2] + + if path == cgroupPath || strings.HasPrefix(path, cgroupPath+"/") { + return nil + } + + found = append(found, path) + } + + return fmt.Errorf("it runs in cgroup %q, not %q", strings.Join(found, ", "), cgroupPath) +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/internal/pkg/cgroup/membership_test.go new/talosctl-1.14.7/internal/pkg/cgroup/membership_test.go --- old/talosctl-1.14.6/internal/pkg/cgroup/membership_test.go 1970-01-01 01:00:00.000000000 +0100 +++ new/talosctl-1.14.7/internal/pkg/cgroup/membership_test.go 2026-11-24 11:50:30.000000000 +0100 @@ -0,0 +1,69 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +package cgroup_test + +import ( + "os" + "path/filepath" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/siderolabs/talos/internal/pkg/cgroup" +) + +// TestCheckMembership covers telling a process apart by the cgroups procfs lists for it. +func TestCheckMembership(t *testing.T) { + t.Parallel() + + const cgroupPath = "/taloscontainers/web" + + for _, test := range []struct { + name string + contents string + cgroupPath *string + wantErr string + }{ + {name: "unified", contents: "0::/taloscontainers/web\n"}, + {name: "unified below", contents: "0::/taloscontainers/web/nested\n"}, + {name: "cgroup v1", contents: "12:pids:/system\n4:memory:/taloscontainers/web\n"}, + { + name: "other container", + contents: "0::/taloscontainers/web2\n", + wantErr: `it runs in cgroup "/taloscontainers/web2", not "/taloscontainers/web"`, + }, + { + name: "other process", + contents: "0::/system/runtime\n", + wantErr: `it runs in cgroup "/system/runtime", not "/taloscontainers/web"`, + }, + { + name: "no cgroup", + contents: "0::/system/runtime\n", + cgroupPath: new(""), + wantErr: "no cgroup to check against", + }, + } { + t.Run(test.name, func(t *testing.T) { + t.Parallel() + + path := filepath.Join(t.TempDir(), "cgroup") + require.NoError(t, os.WriteFile(path, []byte(test.contents), 0o600)) + + want := cgroupPath + if test.cgroupPath != nil { + want = *test.cgroupPath + } + + err := cgroup.CheckMembership(path, want) + if test.wantErr == "" { + assert.NoError(t, err) + } else { + assert.EqualError(t, err, test.wantErr) + } + }) + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/internal/pkg/logind/broker.go new/talosctl-1.14.7/internal/pkg/logind/broker.go --- old/talosctl-1.14.6/internal/pkg/logind/broker.go 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/internal/pkg/logind/broker.go 2026-11-24 11:50:30.000000000 +0100 @@ -19,22 +19,30 @@ "time" "golang.org/x/sync/errgroup" + "golang.org/x/sys/unix" + "github.com/siderolabs/talos/internal/pkg/cgroup" "github.com/siderolabs/talos/internal/pkg/selinux" "github.com/siderolabs/talos/pkg/machinery/constants" ) +const authTimeout = 10 * time.Second + // DBusBroker implements simplified D-Bus broker which allows to connect // kubelet D-Bus connection with Talos logind mock. // // Broker doesn't actually implement auth, and it is supposed that service // connects on one socket, while a client connects on another socket. +// The service must be this process, and the client must run in clientCgroup. type DBusBroker struct { listenService, listenClient net.Listener + clientCgroup string } // NewBroker initializes new broker. -func NewBroker(ctx context.Context, serviceSocketPath, clientSocketPath string) (*DBusBroker, error) { +// +// clientCgroup is the cgroup of the client as /proc/<pid>/cgroup shows it. +func NewBroker(ctx context.Context, serviceSocketPath, clientSocketPath, clientCgroup string) (*DBusBroker, error) { // remove socket paths as with Docker mode paths might persist across container restarts for _, socketPath := range []string{serviceSocketPath, clientSocketPath} { if err := os.RemoveAll(socketPath); err != nil { @@ -42,7 +50,9 @@ } } - broker := &DBusBroker{} + broker := &DBusBroker{ + clientCgroup: clientCgroup, + } var err error @@ -85,13 +95,62 @@ mu sync.Mutex ) - eg.Go(func() error { return broker.run(ctx, broker.listenService, &mu, &connService, &connClient) }) - eg.Go(func() error { return broker.run(ctx, broker.listenClient, &mu, &connClient, &connService) }) + eg.Go(func() error { + return broker.run(ctx, broker.listenService, checkService, &mu, &connService, &connClient) + }) + eg.Go(func() error { + return broker.run(ctx, broker.listenClient, broker.checkClient, &mu, &connClient, &connService) + }) return eg.Wait() } -func (broker *DBusBroker) run(ctx context.Context, l net.Listener, mu *sync.Mutex, ours, theirs *net.Conn) error { +func checkService(pid int32) error { + if int(pid) != os.Getpid() { + return errors.New("it is not the logind mock") + } + + return nil +} + +func (broker *DBusBroker) checkClient(pid int32) error { + return cgroup.CheckMembership(fmt.Sprintf("/proc/%d/cgroup", pid), broker.clientCgroup) +} + +// verifyPeer runs checkPeer on the PID of the process which connected conn, in the PID namespace of this process. +func verifyPeer(conn *net.UnixConn, checkPeer func(pid int32) error) error { + raw, err := conn.SyscallConn() + if err != nil { + return err + } + + var ( + cred *unix.Ucred + credErr error + ) + + if err = raw.Control(func(fd uintptr) { + cred, credErr = unix.GetsockoptUcred(int(fd), unix.SOL_SOCKET, unix.SO_PEERCRED) + }); err != nil { + return err + } + + if credErr != nil { + return credErr + } + + if err = checkPeer(cred.Pid); err != nil { + return fmt.Errorf("PID %d: %w", cred.Pid, err) + } + + return nil +} + +func (broker *DBusBroker) run(ctx context.Context, l net.Listener, checkPeer func(pid int32) error, mu *sync.Mutex, ours, theirs *net.Conn) error { + var wg sync.WaitGroup + + defer wg.Wait() + for ctx.Err() == nil { conn, err := l.Accept() if err != nil { @@ -102,7 +161,7 @@ return err } - handleConn(ctx, conn.(*net.UnixConn), mu, ours, theirs) + wg.Go(func() { handleConn(ctx, conn.(*net.UnixConn), checkPeer, mu, ours, theirs) }) } return nil @@ -131,19 +190,42 @@ } //nolint:gocyclo -func handleConn(ctx context.Context, conn *net.UnixConn, mu *sync.Mutex, ours, theirs *net.Conn) { +func handleConn(ctx context.Context, conn *net.UnixConn, checkPeer func(pid int32) error, mu *sync.Mutex, ours, theirs *net.Conn) { defer conn.Close() //nolint: errcheck + if err := verifyPeer(conn, checkPeer); err != nil { + log.Printf("rejected D-Bus peer: %s", err) + + return + } + + // unblock the reads below on shutdown + stop := context.AfterFunc(ctx, func() { conn.Close() }) //nolint:errcheck + defer stop() + r := bufio.NewReader(conn) + if err := conn.SetDeadline(time.Now().Add(authTimeout)); err != nil { + return + } + if err := handleAuth(r, conn); err != nil { log.Printf("auth failed: %s", err) return } + if err := conn.SetDeadline(time.Time{}); err != nil { + return + } + mu.Lock() + // the newest connection wins, so a restarted kubelet replaces a peer which never disconnected + if *ours != nil { + (*ours).Close() //nolint:errcheck + } + *ours = conn mu.Unlock() @@ -151,7 +233,9 @@ defer func() { mu.Lock() - *ours = nil + if *ours == net.Conn(conn) { + *ours = nil + } mu.Unlock() }() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/internal/pkg/logind/logind_test.go new/talosctl-1.14.7/internal/pkg/logind/logind_test.go --- old/talosctl-1.14.6/internal/pkg/logind/logind_test.go 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/internal/pkg/logind/logind_test.go 2026-11-24 11:50:30.000000000 +0100 @@ -5,8 +5,12 @@ package logind_test import ( + "bufio" "context" + "net" + "os" "path/filepath" + "strings" "testing" "github.com/stretchr/testify/assert" @@ -22,7 +26,7 @@ socketPathService := filepath.Join(dir, "system_bus_service") socketPathClient := filepath.Join(dir, "system_bus_client") - broker, err := logind.NewBroker(t.Context(), socketPathService, socketPathClient) + broker, err := logind.NewBroker(t.Context(), socketPathService, socketPathClient, selfCgroup(t)) require.NoError(t, err) ctx, cancel := context.WithCancel(t.Context()) @@ -92,7 +96,7 @@ socketPathService := filepath.Join(dir, "system_bus_service") socketPathClient := filepath.Join(dir, "system_bus_client") - broker, err := logind.NewBroker(t.Context(), socketPathService, socketPathClient) + broker, err := logind.NewBroker(t.Context(), socketPathService, socketPathClient, selfCgroup(t)) require.NoError(t, err) ctx, cancel := context.WithCancel(t.Context()) @@ -124,3 +128,121 @@ assert.NoError(t, <-errCh) } + +func TestIntegrationStuckClients(t *testing.T) { + dir := t.TempDir() + + socketPathService := filepath.Join(dir, "system_bus_service") + socketPathClient := filepath.Join(dir, "system_bus_client") + + broker, err := logind.NewBroker(t.Context(), socketPathService, socketPathClient, selfCgroup(t)) + require.NoError(t, err) + + ctx, cancel := context.WithCancel(t.Context()) + defer cancel() + + errCh := make(chan error, 1) + + go func() { + errCh <- broker.Run(ctx) + }() + + serviceConn, err := logind.NewServiceMock(socketPathService) + require.NoError(t, err) + + defer serviceConn.Close() //nolint:errcheck + + t.Log("connecting a client which never finishes auth") + + stuckConn, err := (&net.Dialer{}).DialContext(t.Context(), "unix", socketPathClient) + require.NoError(t, err) + + defer stuckConn.Close() //nolint:errcheck + + _, err = stuckConn.Write([]byte("\x00AUTH\r\n")) + require.NoError(t, err) + + reply, err := bufio.NewReader(stuckConn).ReadString('\n') + require.NoError(t, err) + assert.Equal(t, "REJECTED EXTERNAL\r\n", reply) + + t.Log("connecting a client which never disconnects") + + staleConn, err := NewDBusCon("unix:path=" + socketPathClient) + require.NoError(t, err) + + defer staleConn.Close() //nolint:errcheck + + t.Log("connecting kubelet") + + kubeletConn, err := NewDBusCon("unix:path=" + socketPathClient) + require.NoError(t, err) + + defer kubeletConn.Close() //nolint:errcheck + + d, err := kubeletConn.CurrentInhibitDelay() + require.NoError(t, err) + + assert.Equal(t, 40*constants.KubeletShutdownGracePeriod, d) + + _, err = staleConn.CurrentInhibitDelay() + assert.Error(t, err) + + assert.NoError(t, stuckConn.Close()) + assert.NoError(t, serviceConn.Close()) + assert.NoError(t, kubeletConn.Close()) + assert.NoError(t, broker.Close()) + + cancel() + + assert.NoError(t, <-errCh) +} + +func TestIntegrationOtherCgroup(t *testing.T) { + dir := t.TempDir() + + socketPathService := filepath.Join(dir, "system_bus_service") + socketPathClient := filepath.Join(dir, "system_bus_client") + + broker, err := logind.NewBroker(t.Context(), socketPathService, socketPathClient, selfCgroup(t)+"/kubelet") + require.NoError(t, err) + + ctx, cancel := context.WithCancel(t.Context()) + defer cancel() + + errCh := make(chan error, 1) + + go func() { + errCh <- broker.Run(ctx) + }() + + serviceConn, err := logind.NewServiceMock(socketPathService) + require.NoError(t, err) + + defer serviceConn.Close() //nolint:errcheck + + t.Log("connecting a client outside of the kubelet cgroup") + + _, err = NewDBusCon("unix:path=" + socketPathClient) + require.Error(t, err) + + assert.NoError(t, serviceConn.Close()) + assert.NoError(t, broker.Close()) + + cancel() + + assert.NoError(t, <-errCh) +} + +// selfCgroup returns the cgroup of the test process on the unified hierarchy. +func selfCgroup(t *testing.T) string { + t.Helper() + + contents, err := os.ReadFile("/proc/self/cgroup") + require.NoError(t, err) + + path, ok := strings.CutPrefix(strings.TrimSpace(string(contents)), "0::") + require.True(t, ok, "not on the unified hierarchy: %q", contents) + + return path +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/pkg/machinery/constants/constants.go new/talosctl-1.14.7/pkg/machinery/constants/constants.go --- old/talosctl-1.14.6/pkg/machinery/constants/constants.go 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/pkg/machinery/constants/constants.go 2026-11-24 11:50:30.000000000 +0100 @@ -20,7 +20,7 @@ const ( // DefaultKernelVersion is the default Linux kernel version. - DefaultKernelVersion = "6.18.63-talos" + DefaultKernelVersion = "6.18.65-talos" // KernelParamConfig is the kernel parameter name for specifying the URL. // to the config. @@ -440,7 +440,7 @@ // DefaultEtcdVersion is the default target version of etcd. // renovate: datasource=docker depName=registry.k8s.io/etcd - DefaultEtcdVersion = "v3.7.3" + DefaultEtcdVersion = "v3.7.4" // EtcdRootTalosKey is the root etcd key for Talos-specific storage. EtcdRootTalosKey = "talos:v1" @@ -1335,7 +1335,7 @@ // And sign the image using image-signer. // // renovate: datasource=github-releases depName=flannel-io/flannel - FlannelVersion = "v0.28.10" + FlannelVersion = "v0.28.11" // FlannelDefaultBackend is the default backend for flannel. FlannelDefaultBackend = "vxlan" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/pkg/machinery/gendata/data/pkgs new/talosctl-1.14.7/pkg/machinery/gendata/data/pkgs --- old/talosctl-1.14.6/pkg/machinery/gendata/data/pkgs 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/pkg/machinery/gendata/data/pkgs 2026-11-24 11:50:30.000000000 +0100 @@ -1 +1 @@ -v1.14.0-59-ge6ad19d \ No newline at end of file +v1.14.0-66-ga1a4897 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/pkg/machinery/gendata/data/tag new/talosctl-1.14.7/pkg/machinery/gendata/data/tag --- old/talosctl-1.14.6/pkg/machinery/gendata/data/tag 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/pkg/machinery/gendata/data/tag 2026-11-24 11:50:30.000000000 +0100 @@ -1 +1 @@ -v1.14.6 \ No newline at end of file +v1.14.7 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/pkg/machinery/version/os-release new/talosctl-1.14.7/pkg/machinery/version/os-release --- old/talosctl-1.14.6/pkg/machinery/version/os-release 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/pkg/machinery/version/os-release 2026-11-24 11:50:30.000000000 +0100 @@ -1,7 +1,7 @@ NAME="Talos" ID=talos -VERSION_ID=v1.14.6 -PRETTY_NAME="Talos (v1.14.6)" +VERSION_ID=v1.14.7 +PRETTY_NAME="Talos (v1.14.7)" HOME_URL="https://www.talos.dev/" BUG_REPORT_URL="https://github.com/siderolabs/talos/issues" VENDOR_NAME="Sidero Labs" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/website/content/v1.14/reference/cli.md new/talosctl-1.14.7/website/content/v1.14/reference/cli.md --- old/talosctl-1.14.6/website/content/v1.14/reference/cli.md 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/website/content/v1.14/reference/cli.md 2026-11-24 11:50:30.000000000 +0100 @@ -134,7 +134,7 @@ --bad-rtc launch VM with bad RTC state --cidr string CIDR of the cluster network (IPv4, ULA network for IPv6 is derived in automated way) (default "10.5.0.0/24") --cni-bin-path strings search path for CNI binaries (default [/home/user/.talos/cni/bin]) - --cni-bundle-url string URL to download CNI bundle from (default "https://github.com/siderolabs/talos/releases/download/v1.14.6/talosctl-cni-bundle-${ARCH}.tar.gz") + --cni-bundle-url string URL to download CNI bundle from (default "https://github.com/siderolabs/talos/releases/download/v1.14.7/talosctl-cni-bundle-${ARCH}.tar.gz") --cni-cache-dir string CNI cache directory path (default "/home/user/.talos/cni/cache") --cni-conf-dir string CNI config directory path (default "/home/user/.talos/cni/conf.d") --config-injection-method string a method to inject machine config: default is HTTP server, 'metal-iso' to mount an ISO @@ -2336,8 +2336,8 @@ ``` --coredns-version semver CoreDNS semantic version (default v1.14.7) - --etcd-version semver ETCD semantic version (default v3.7.3) - --flannel-version semver Flannel CNI semantic version (default v0.28.10) + --etcd-version semver ETCD semantic version (default v3.7.4) + --flannel-version semver Flannel CNI semantic version (default v0.28.11) -h, --help help for k8s-bundle --k8s-version semver Kubernetes semantic version (default v1.37.1) --kube-network-policies-version semver kube-network-policies semantic version (default v1.1.2) @@ -3476,7 +3476,7 @@ --drain-timeout duration timeout for draining the Kubernetes node (default 5m0s) -e, --endpoints strings override default endpoints in Talos configuration -h, --help help for upgrade - -i, --image string the container image to use for performing the install (default "factory.talos.dev/metal-installer/376567988ad370138ad8b2698212367b8edcb69b5fd68c80be1f2ec7d603b4ba:v1.14.6") + -i, --image string the container image to use for performing the install (default "factory.talos.dev/metal-installer/376567988ad370138ad8b2698212367b8edcb69b5fd68c80be1f2ec7d603b4ba:v1.14.7") --legacy force use of legacy upgrade method --namespace string namespace to use: "system" (etcd and kubelet images), "cri" for all Kubernetes workloads, "inmem" for in-memory containerd instance (default "system") --no-reboot do not reboot the node after upgrade (skip reboot and drain) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talosctl-1.14.6/website/content/v1.14/reference/configuration/v1alpha1/config.md new/talosctl-1.14.7/website/content/v1.14/reference/configuration/v1alpha1/config.md --- old/talosctl-1.14.6/website/content/v1.14/reference/configuration/v1alpha1/config.md 2026-11-11 18:39:22.000000000 +0100 +++ new/talosctl-1.14.7/website/content/v1.14/reference/configuration/v1alpha1/config.md 2026-11-24 11:50:30.000000000 +0100 @@ -226,7 +226,7 @@ {{< /highlight >}}</details> | | |`etcd` |<a href="#Config.cluster.etcd">EtcdConfig</a> |Etcd specific configuration options. <details><summary>Show example(s)</summary>{{< highlight yaml >}} etcd: - image: registry.k8s.io/etcd:v3.7.3 # The container image used to create the etcd service. + image: registry.k8s.io/etcd:v3.7.4 # The container image used to create the etcd service. # The `ca` is the root certificate authority of the PKI. ca: crt: LS0tIEVYQU1QTEUgQ0VSVElGSUNBVEUgLS0t @@ -264,7 +264,7 @@ {{< highlight yaml >}} cluster: etcd: - image: registry.k8s.io/etcd:v3.7.3 # The container image used to create the etcd service. + image: registry.k8s.io/etcd:v3.7.4 # The container image used to create the etcd service. # The `ca` is the root certificate authority of the PKI. ca: crt: LS0tIEVYQU1QTEUgQ0VSVElGSUNBVEUgLS0t @@ -282,7 +282,7 @@ | Field | Type | Description | Value(s) | |-------|------|-------------|----------| |`image` |string |The container image used to create the etcd service. <details><summary>Show example(s)</summary>{{< highlight yaml >}} -image: registry.k8s.io/etcd:v3.7.3 +image: registry.k8s.io/etcd:v3.7.4 {{< /highlight >}}</details> | | |`ca` |PEMEncodedCertificateAndKey |The `ca` is the root certificate authority of the PKI.<br>It is composed of a base64 encoded `crt` and `key`. <details><summary>Show example(s)</summary>{{< highlight yaml >}} ca: ++++++ talosctl.obsinfo ++++++ --- /var/tmp/diff_new_pack.vCrour/_old 2026-11-25 16:15:38.921240894 +0100 +++ /var/tmp/diff_new_pack.vCrour/_new 2026-11-25 16:15:38.926241106 +0100 @@ -1,5 +1,5 @@ name: talosctl -version: 1.14.6 -mtime: 1794418762 -commit: ede45c42da9b1aee0fbc6dcfda7c028c9db43954 +version: 1.14.7 +mtime: 1795517430 +commit: 55021d7c274f6bc207bf18efa2a684a31a35cd9f ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/talosctl/vendor.tar.gz /work/SRC/openSUSE:Factory/.talosctl.new.1340718/vendor.tar.gz differ: char 24, line 2
