[EPIC] Migrate to future-proof YAML libraries
Author: moioCreated Jul 21, 2026Updated Sep 30, 2026
LabelsEpic
The widely used gopkg.in/yaml.v3 YAML library for Go (https://github.com/go-yaml/yaml) has been archived and is now unmaintained.
A new security-maintained fork by the YAML organization go.yaml.in/yaml/v3 (https://github.com/yaml/go-yaml) now exists - this issue is to update our codebase to use it.
Guideline
- Focus on direct dependencies first. If it is possible to update indirect ones, that's also welcome, but not strictly required
- Focus on
mainfirst. If it is trivial to backport, that's also welcome, but not strictly required - Several maintained versions of the new library exist:
go.yaml.in/yaml/v2andv3(identical interfaces, security maintained) orgo.yaml.in/yaml/v4(with new features). Usev4for new code and transition to it where that brings advantages, otherwisev3 - If other dependencies indirectly require the old package, replacement is also a possibility
- Migrate away from the
github.com/ghodss/yamllibrary, that wrapsv2and has not seen updates since 2017. Replace withsigs.k8s.io/yamlwhich is a maintained direct replacement and usesgo.yaml.in/yamlinternally
Identified uses of the outdated modules by Team
Tool I used to compute this list. Team assignment was done manually according to my current understanding of responsibilities, apologies in advance if I misclassified any.
Any Team:
Elemental:
- https://github.com/rancher/elemental-operator/blob/058a9c042a00ce4c051ae4dcd3846c266b04b88f/go.mod#L32
- https://github.com/rancher/elemental-toolkit/blob/f04a36c6e2d2485678bcf47079d8c9b99c756c47/go.mod#L27
- https://github.com/rancher/elemental/blob/39f41752e15c87494ada7bc2ba1c9862cc83a2f3/tests/go.mod#L14
Release:
- https://github.com/rancher/charts-build-scripts/blob/c5b85c296267fa5c39d3513f8fe412a60ef6f573/go.mod#L37
- https://github.com/rancher/ecm-distro-tools/blob/a83c77d8dae825438d29f94b25b665414aa07caf/go.mod#L23
ORBS:
- https://github.com/rancher/artifact-mirror/blob/cc6a58a320f5e754b5d01198227396a40f9ebe9e/tools/go.mod#L12
- https://github.com/rancher/ob-charts-tool/blob/ca4cb38dadc693add2e835d5c3e78a87cd509e63/go.mod#L16
- https://github.com/rancher/ob-charts-tool/blob/ca4cb38dadc693add2e835d5c3e78a87cd509e63/helmtools/go.mod#L9
- https://github.com/rancher/prometheus-federator/blob/36d282ecb6972860701d0f5cba6f30bd7329dd8c/go.mod#L25
Provisioning:
- https://github.com/rancher/cluster-api-provider-rke2/blob/91c6ec0ebc5a8d7a8de5adb8db41b622d421b19c/go.mod#L24
- https://github.com/rancher/cluster-api-addon-provider-fleet/blob/3a01bb5ebe3a864bad59bfc9ddf5f4d041554d1c/hack/tools/metadataupdate/go.mod#L5
- https://github.com/rancher/rancher-turtles-e2e/blob/2f570572a9b7a071400460ad9d0861e41837a071/tests/go.mod#L11
- https://github.com/rancher/turtles/blob/01fba0b43bea3e2732c71df038689cb822540d3d/test/go.mod#L17 (done per https://github.com/rancher/turtles/pull/2674)
- https://github.com/rancher/wins/blob/7088d6a7b2b9deb9f723b774b367687810a9be2d/go.mod#L56 (done per https://github.com/rancher/wins/pull/443)
Frameworks:
- https://github.com/rancher/apiserver/blob/686f1c356f026d02c248bc1814ce7a5da89304aa/go.mod#L8
- https://github.com/rancher/wrangler/blob/1d8d0570642f7c17b236beec14c21e4dcb2b9332/go.mod#L7
- https://github.com/rancher/norman/blob/efec80ff513204a6b1ab8618f18d37542e83244b/go.mod#L8
- https://github.com/rancher/frameworks-automation/blob/ef37485f555a33b1db62770b8988707ac394305b/go.mod#L9
Security:
- https://github.com/rancher/code-scanning/blob/7671325c5bf7fc688dc0d81050da0e289ac107eb/sca-monitoring/go.mod#L8
- https://github.com/rancher/security-scan/blob/6a32b9265bf7d919a8b39c870ba326a7f5ec9564/go.mod#L10
QA:
- https://github.com/rancher/dartboard/blob/baed469f1d4740a18619248464a4734e92352977/go.mod#L79
- https://github.com/rancher/observability-e2e/blob/c31638261aeb3336b8a4df749e6a02992b9c73f2/go.mod#L31
- https://github.com/rancher/suse-security-tests/blob/8282982a850a64c427333e60b887f5d77614d6a6/sbomscanner/go.mod#L10
k3k:
- rancher/k3k#1062
@bcraft:
- https://github.com/rancher/plg-rancher/blob/e78a558efb09cbe189d432fe2ae620aeb39973f0/go.mod#L165 (might not be needed as soon as rancher/rancher is fixed)
Networking:
Collie:
- rancher/rancher#56162
RKE2/k3s:
- https://github.com/rancher/rke/blob/7159e9ad3fd5ff468f02c7f91571ce0df39118e8/go.mod#L36 - to be archived per EIO request (issue number 4304)
- https://github.com/rancher/terraform-provider-rke/blob/60bcf0f0c7015795616257724d3fbc43ad80de7f/go.mod#L40 - to be archived per EIO request (issue number 4304)
- https://github.com/rancher/terraform-provider-rancher2/blob/25e0568b09b0617abef2ee8970e5622af7b47f94/go.mod#L6
Source: rancher/rancher