1
0
mirror of https://github.com/coreos/ignition.git synced 2026-02-06 00:47:49 +01:00
Commit Graph

4367 Commits

Author SHA1 Message Date
Yasmin Valim
195fe2e090 resource: add tests for dual-stack fetching 2025-12-04 12:13:12 -03:00
yasminvalim
8d8047fe90 resource: add unit tests for FetchConfigDualStack 2025-12-04 12:13:12 -03:00
Yasmin Valim
f8927b3b1e openstack: add IPv6 metadata service support
openstack.go: add FetchConfigDualStackin openstack

openstack: implement parallel IPv6 interface discovery with fan-out pattern using goroutines and waitgroups

Replacing providersUtil with util and removing the duplicate import
2025-12-04 12:12:57 -03:00
Mathieu Tortuyaux
fc2ea14945 url: add dual-stack IPv4/IPv6 support
url: try local port on both IP stacks

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>

url: support both IPv4 and IPv6

This defines a wrapper that will try in paralell both IPv4 and IPv6 when
the provider declares those two IPs.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>

url: support both IPv4 and IPv6

This defines a wrapper that will try in paralell both IPv4 and IPv6 when
the provider declares those two IPs.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>

resource: add race condition fix using sync.Mutex
2025-12-04 12:07:59 -03:00
Steven Presti
555ac7c861 Merge pull request #2152 from prestist/add-oem-scheme
Add `oem` to accepted url schemes
2025-11-12 08:45:45 -05:00
Steven Presti
7a03aaec18 Add oem to accepted url schemes
Flatcar docs talk about `oem` url add it so ignition-validate
does not fail.

see: https://github.com/coreos/butane/issues/634
2025-11-07 09:56:16 -05:00
Steven Presti
177693fa36 Merge pull request #2153 from prestist/update-to-f43
Dockerfile.validate: update to Fedora 43
2025-11-07 07:20:37 -05:00
Steven Presti
0b7776adba Dockerfile.validate: update to Fedora 43 2025-11-06 16:44:47 -05:00
Steven Presti
29861e8baf Merge pull request #2144 from coreos/dependabot/go_modules/build-95eefe7f7f
build(deps): bump the build group with 6 updates
2025-10-21 15:13:34 -04:00
dependabot[bot]
ac64791fb1 build(deps): bump the build group with 6 updates
Bumps the build group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/Azure/azure-sdk-for-go/sdk/storage/azblob](https://github.com/Azure/azure-sdk-for-go) | `1.6.2` | `1.6.3` |
| [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) | `1.39.2` | `1.39.3` |
| [github.com/aws/aws-sdk-go-v2/credentials](https://github.com/aws/aws-sdk-go-v2) | `1.18.16` | `1.18.17` |
| [github.com/aws/aws-sdk-go-v2/feature/ec2/imds](https://github.com/aws/aws-sdk-go-v2) | `1.18.9` | `1.18.10` |
| [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) | `1.19.12` | `1.19.13` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.88.4` | `1.88.5` |


Updates `github.com/Azure/azure-sdk-for-go/sdk/storage/azblob` from 1.6.2 to 1.6.3
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/sdk-breaking-changes-guide-migration.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/storage/azblob/v1.6.2...sdk/storage/azblob/v1.6.3)

Updates `github.com/aws/aws-sdk-go-v2` from 1.39.2 to 1.39.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.39.2...v1.39.3)

Updates `github.com/aws/aws-sdk-go-v2/credentials` from 1.18.16 to 1.18.17
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.16...config/v1.18.17)

Updates `github.com/aws/aws-sdk-go-v2/feature/ec2/imds` from 1.18.9 to 1.18.10
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.9...config/v1.18.10)

Updates `github.com/aws/aws-sdk-go-v2/feature/s3/manager` from 1.19.12 to 1.19.13
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/efs/v1.19.12...service/efs/v1.19.13)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.88.4 to 1.88.5
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.88.4...service/s3/v1.88.5)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/storage/azblob
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-version: 1.39.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/credentials
  dependency-version: 1.18.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
  dependency-version: 1.18.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-version: 1.19.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-version: 1.88.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 12:53:22 +00:00
Steven Presti
1d34db97ba Merge pull request #2142 from prestist/new-upstream-release
docs/release-notes: update for 2.24.0
v2.24.0
2025-10-14 15:27:14 -04:00
Steven Presti
c605d341a4 docs/release-notes: update for 2.24.0 2025-10-14 13:27:14 -04:00
Steven Presti
900b66866e Merge pull request #2141 from coreos/dependabot/go_modules/build-f174a20686
build(deps): bump the build group across 1 directory with 8 updates
2025-10-14 11:54:00 -04:00
Steven Presti
9afee6c17e Merge pull request #2140 from prestist/fan-out-configs
kubevirt: config race cidata & config-2
2025-10-14 10:33:13 -04:00
dependabot[bot]
86790c051c build(deps): bump the build group across 1 directory with 8 updates
Bumps the build group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) | `1.12.0` | `1.13.0` |
| [github.com/aws/aws-sdk-go-v2/credentials](https://github.com/aws/aws-sdk-go-v2) | `1.18.15` | `1.18.16` |
| [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) | `1.19.9` | `1.19.12` |
| [golang.org/x/net](https://github.com/golang/net) | `0.43.0` | `0.46.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.31.0` | `0.32.0` |
| [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.247.0` | `0.252.0` |



Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/sdk-breaking-changes-guide-migration.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.12.0...sdk/azcore/v1.13.0)

Updates `github.com/aws/aws-sdk-go-v2/credentials` from 1.18.15 to 1.18.16
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.15...config/v1.18.16)

Updates `github.com/aws/aws-sdk-go-v2/feature/s3/manager` from 1.19.9 to 1.19.12
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/m2/v1.19.9...service/efs/v1.19.12)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.88.3 to 1.88.4
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.88.3...service/s3/v1.88.4)

Updates `golang.org/x/net` from 0.43.0 to 0.46.0
- [Commits](https://github.com/golang/net/compare/v0.43.0...v0.46.0)

Updates `golang.org/x/oauth2` from 0.31.0 to 0.32.0
- [Commits](https://github.com/golang/oauth2/compare/v0.31.0...v0.32.0)

Updates `golang.org/x/sys` from 0.35.0 to 0.37.0
- [Commits](https://github.com/golang/sys/compare/v0.35.0...v0.37.0)

Updates `google.golang.org/api` from 0.247.0 to 0.252.0
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.247.0...v0.252.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-version: 1.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/credentials
  dependency-version: 1.18.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-version: 1.19.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-version: 1.88.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: golang.org/x/net
  dependency-version: 0.46.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: golang.org/x/oauth2
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: golang.org/x/sys
  dependency-version: 0.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: google.golang.org/api
  dependency-version: 0.252.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 13:44:40 +00:00
Steven Presti
2e515372a9 Merge pull request #2138 from nikita-dubrovskii/fix_cex_key_removal
luks: fix occasional cex.key file removal
2025-10-10 15:37:10 -04:00
Steven Presti
7f422d6870 kubevirt: config race cidata & config-2
Since we cannot know which one will be present, try both at the same time.
Once we have valid data, assume nothing else is needed, cancel other options.
2025-10-10 10:31:55 -04:00
Nikita Dubrovskii
008fe5a160 luks: fix occasional cex.key file removal
1df2238519 broke CEX:
```
[   30.496802] ignition-ostree-growfs[1118]: + cryptsetup resize root --key-file /etc/luks/cex.key
[   30.501834] ignition-ostree-growfs[1257]: Failed to open key file.
```

Issue: https://github.com/coreos/rhel-coreos-config/issues/76
2025-10-10 10:37:46 +02:00
Steven Presti
cc16ececf2 Merge pull request #2134 from qinqon/kubevirt-nocloud
kubevirt: Support nocloud user-data
2025-10-07 09:30:29 -04:00
Enrique Llorente
04aefada0c kubevirt: Support nocloud user-data
At kubevirt one can configure the cloud init as config drive or nocloud,
with config drive is the current approch, this change add the nocloud
that spect a device mount with "cidata" label and tue user data file at
/user-data there, also the main different if that on those cases the
network data follows the netplan v1 or v2 that's is better format than
the openstack meta data network service one.

Signed-off-by: Enrique Llorente <ellorent@redhat.com>
2025-10-06 15:37:05 +02:00
Tiago Bueno
55943e77ad Merge pull request #2129 from tlbueno/tb_fix_mpath
#2128 - Fix device mapper partitioning
2025-10-03 17:19:45 -03:00
Tiago Bueno
2d04de325c Fix device mapper partitioning
When run ignition on a device mapper, ie, multipath, it fails because
the function blockDevHeld returns true as the block device
contains holders. A block device with holders do not necessary means
the block device is in use (like mounted).
The function blockDevInUse will not check if it is a device mapper
and if so, do not check for blockDevHeld.

Signed-off-by: Tiago Bueno <tiago.bueno@gmail.com>
2025-10-01 16:46:06 -03:00
Steven Presti
e614985be6 Merge pull request #2125 from coreos/dependabot/go_modules/build-7a5164509d
build(deps): bump the build group across 1 directory with 16 updates
2025-10-01 14:13:52 -04:00
dependabot[bot]
c258124bdf build(deps): bump the build group across 1 directory with 16 updates
Bumps the build group with 11 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [cloud.google.com/go/compute/metadata](https://github.com/googleapis/google-cloud-go) | `0.7.0` | `0.8.0` |
| [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) | `1.56.0` | `1.56.1` |
| [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) | `1.10.1` | `1.11.0` |
| [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) | `1.38.2` | `1.39.0` |
| [github.com/aws/aws-sdk-go-v2/credentials](https://github.com/aws/aws-sdk-go-v2) | `1.18.8` | `1.18.11` |
| [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) | `1.19.2` | `1.19.5` |
| [github.com/beevik/etree](https://github.com/beevik/etree) | `1.5.1` | `1.6.0` |
| [github.com/coreos/go-systemd/v22](https://github.com/coreos/go-systemd) | `22.5.0` | `22.6.0` |
| [github.com/spf13/pflag](https://github.com/spf13/pflag) | `1.0.7` | `1.0.10` |
| [github.com/stretchr/testify](https://github.com/stretchr/testify) | `1.10.0` | `1.11.1` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.30.0` | `0.31.0` |



Updates `cloud.google.com/go/compute/metadata` from 0.7.0 to 0.8.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/v0.7.0...v0.8.0)

Updates `cloud.google.com/go/storage` from 1.56.0 to 1.56.1
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/spanner/v1.56.0...storage/v1.56.1)

Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.10.1 to 1.11.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/sdk-breaking-changes-guide-migration.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azidentity/v1.10.1...sdk/azcore/v1.11.0)

Updates `github.com/aws/aws-sdk-go-v2` from 1.38.2 to 1.39.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.38.2...v1.39.0)

Updates `github.com/aws/aws-sdk-go-v2/credentials` from 1.18.8 to 1.18.11
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.8...config/v1.18.11)

Updates `github.com/aws/aws-sdk-go-v2/feature/ec2/imds` from 1.18.5 to 1.18.7
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/config/v1.18.7/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.5...config/v1.18.7)

Updates `github.com/aws/aws-sdk-go-v2/feature/s3/manager` from 1.19.2 to 1.19.5
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/m2/v1.19.2...service/pi/v1.19.5)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.87.2 to 1.88.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.87.2...service/s3/v1.88.0)

Updates `github.com/beevik/etree` from 1.5.1 to 1.6.0
- [Release notes](https://github.com/beevik/etree/releases)
- [Changelog](https://github.com/beevik/etree/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/beevik/etree/compare/v1.5.1...v1.6.0)

Updates `github.com/coreos/go-systemd/v22` from 22.5.0 to 22.6.0
- [Release notes](https://github.com/coreos/go-systemd/releases)
- [Commits](https://github.com/coreos/go-systemd/compare/v22.5.0...v22.6.0)

Updates `github.com/spf13/pflag` from 1.0.7 to 1.0.10
- [Release notes](https://github.com/spf13/pflag/releases)
- [Commits](https://github.com/spf13/pflag/compare/v1.0.7...v1.0.10)

Updates `github.com/stretchr/testify` from 1.10.0 to 1.11.1
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.10.0...v1.11.1)

Updates `golang.org/x/net` from 0.42.0 to 0.43.0
- [Commits](https://github.com/golang/net/compare/v0.42.0...v0.43.0)

Updates `golang.org/x/oauth2` from 0.30.0 to 0.31.0
- [Commits](https://github.com/golang/oauth2/compare/v0.30.0...v0.31.0)

Updates `golang.org/x/sys` from 0.34.0 to 0.35.0
- [Commits](https://github.com/golang/sys/compare/v0.34.0...v0.35.0)

Updates `google.golang.org/api` from 0.243.0 to 0.247.0
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.243.0...v0.247.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/compute/metadata
  dependency-version: 0.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: cloud.google.com/go/storage
  dependency-version: 1.56.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-version: 1.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-version: 1.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/credentials
  dependency-version: 1.18.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
  dependency-version: 1.18.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-version: 1.19.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-version: 1.88.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: github.com/beevik/etree
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: github.com/coreos/go-systemd/v22
  dependency-version: 22.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: github.com/spf13/pflag
  dependency-version: 1.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: golang.org/x/net
  dependency-version: 0.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: golang.org/x/oauth2
  dependency-version: 0.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: golang.org/x/sys
  dependency-version: 0.35.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
- dependency-name: google.golang.org/api
  dependency-version: 0.247.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 16:36:12 +00:00
Steven Presti
d4ff84b2c2 Merge pull request #2124 from coreosbot-releng/repo-templates
Sync repo templates ⚙
2025-09-26 15:49:46 -04:00
Steven Presti
2bcc596cc8 Merge pull request #2127 from prestist/update-for-release
docs/release-notes: update for 2.23.0
v2.23.0
2025-09-10 12:48:30 -04:00
Steven Presti
a070ac478d docs/release-notes: update for 2.23.0
Update release notes for release.
2025-09-10 09:37:46 -04:00
Timothée Ravier
58de122fe4 Merge pull request #2121 from jepio/aws-sdk-go-v2-upgrade
internal: Upgrade to aws-sdk-go-v2
2025-09-09 14:28:56 +02:00
CoreOS Bot
d6716b8cb5 Sync repo templates ⚙
Sync with coreos/repo-templates@feda6e6e1f.
2025-09-08 22:51:20 +00:00
Yasmin de Souza
16401275c0 Merge pull request #2123 from coreos/dependabot/github_actions/actions/setup-go-6
build(deps): bump actions/setup-go from 5 to 6
2025-09-08 11:58:02 -03:00
dependabot[bot]
763eada7a3 build(deps): bump actions/setup-go from 5 to 6
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 12:31:48 +00:00
Jeremi Piotrowski
eebe249b25 docs/release-notes: Add entry for aws-sdk-go-v2 upgrade
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2025-09-04 15:57:17 +02:00
Jeremi Piotrowski
05b8a77328 url: Retry s3 fetch only when EC2 role fetch fails
This aligns the aws-sdk-go-v2 version with what we used to do for aws-sdk-go,
although the error matching is string-based now because the SDK changed its
error reporting.

When we're not on EC2 we directly fetch with anonymous credentials, so there is
no point retrying. On errors other than EC2 role fetch, such as when key is
invalid, it also doesn't make sense to retry.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2025-09-03 13:35:22 +02:00
Jeremi Piotrowski
917e51d7c3 url: Distinguish case of missing bucket in error reporting
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2025-09-03 13:35:22 +02:00
Jeremi Piotrowski
1ba3876e5d internal/providers/aws: Apply a 15s timeout to imds region fetch
There is already a check for networking being up earlier in the function, so
treat the timeout as a last resort.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2025-09-03 13:35:22 +02:00
Jeremi Piotrowski
59336bdc99 vendor: get new deps for aws-sdk-go-v2
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2025-09-03 13:34:54 +02:00
Jeremi Piotrowski
a976abc09b internal: Upgrade to aws-sdk-go-v2
Update the code from aws-sdk-go to aws-sdk-go-v2, aws-sdk-go is out-of-support
since July 2025. I've tried to preserve the existing behavior as best I could:
- if we're running on EC2 we use ec2rolecreds first, with a fallback to anonymous
  credentials
- use anonymous credentials when outside EC2
- use IMDS for region hints

One subtle change appears to be that the S3 code does not tolerate leading
slashes in key names any more, so we need to strip it out explicitly.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2025-09-03 13:34:33 +02:00
Steven Presti
46ddd7198c Merge pull request #2118 from coreos/dependabot/github_actions/actions/checkout-5
build(deps): bump actions/checkout from 4 to 5
2025-08-19 11:46:05 -04:00
dependabot[bot]
8c70e77430 build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 19:48:33 +00:00
Timothée Ravier
b98238a6fa Merge pull request #2114 from travier/main-split-pr-2100
Re-split #2100
2025-08-08 17:54:26 +02:00
yasminvalim
2a3366778a internal/providers/qemu/qemu_fwcfg: Reformating
No code change.
2025-08-07 12:37:44 +02:00
yasminvalim
03abc6440c internal/providers/packet: Ignore close error on answer to POST
This error would be triggered after the POST request had been
successfully posted with a non error response code, so ignore it.

Fixes lint:
```
Error return value of `respPost.Body.Close` is not checked (errcheck)
```
2025-08-07 12:37:44 +02:00
yasminvalim
8be427bb40 internal/providers: Log temp dir cleanup failure
Do not fail on those as we are not failing on those right now.

Fixes lint:
```
Error return value of `os.Remove` is not checked (errcheck)
```
2025-08-07 12:37:44 +02:00
yasminvalim
cb60a7b950 internal/providers: Ignore close() errors
Fixes lint:
```
Error return value of `device.Close` is not checked (errcheck)
```
2025-08-07 12:37:44 +02:00
yasminvalim
dcee9cfd29 internal/exec/stages/disks/luks: Wrap inner loop to trigger defer
Wrap the inner loop code in an anonymous function to make sure that
defer calls are triggered for each iteration of the loop and join all
errors as needed.

Diff best viewed with whitespace changes hidden.
2025-08-07 12:37:44 +02:00
yasminvalim
1df2238519 internal/exec/stages/disks/luks: Log previously ignored errors
Those errors are unlikely to happen and neither is fatal nor a bug as
the file is written in a temporary folder in the initramfs that is
removed before moving to the real root.

Thus log them and ignore them for as we don't want to start failing on
those if we did not before.

Fixes lint:
```
Error return value of `keyFile.Close` is not checked (errcheck)
Error return value of `os.Remove` is not checked (errcheck)
```
2025-08-07 12:37:44 +02:00
yasminvalim
199404a78b internal/exec/util/user_group_lookup_test: Log errors
Log errors in test code.

Fixes lint:
```
Error return value of `os.RemoveAll` is not checked (errcheck)
Error return value of `os.RemoveAll` is not checked (errcheck)
```
2025-08-07 12:37:44 +02:00
yasminvalim
688e502aa1 internal/exec/util: Ignore cleanup/close errors
Keep the current behavior as we likely don't have test verifying that
and we don't want to start failing on things that were passing before.

Fixes lint:
```
internal/exec/util/file.go:210:17: Error return value of `tmp.Close` is not checked (errcheck)
internal/exec/util/file.go:219:17: Error return value of `os.Remove` is not checked (errcheck)
internal/exec/util/file.go:247:25: Error return value of `targetFile.Close` is not checked (errcheck)
internal/exec/util/file.go:302:17: Error return value of `dfd.Close` is not checked (errcheck)
internal/exec/util/passwd.go:178:10: Error return value of `f.Close` is not checked (errcheck)
internal/exec/util/selinux.go:45:19: Error return value of `file.Close` is not checked (errcheck)
internal/exec/util/unit.go:195:18: Error return value of `file.Close` is not checked (errcheck)
```
2025-08-07 12:37:44 +02:00
yasminvalim
f5f563eed7 internal/exec/engine: Ignore close() error
At this point, the file has been created without error, so the execution
can continue and the logic will not change if we ignore this error.
Failure here seams unlikely.

Fixes lint:
```
Error return value of `f.Close` is not checked (errcheck)
```
2025-08-07 12:37:44 +02:00
yasminvalim
2e28ba6b96 internal/resource: Ignore close() errors for http/url
Those errors would be triggered after processing already happened so
they are unlikely and we should not act on them.

Fixes lint:
```
Error: internal/resource/http.go:319:19: Error return value of `resp.Body.Close` is not checked (errcheck)
Error: internal/resource/url.go:340:12: Error return value of `l.Close` is not checked (errcheck)
Error: internal/resource/url.go:380:24: Error return value of `dataReader.Close` is not checked (errcheck)
Error: internal/resource/url.go:620:33: Error return value of `downloadStream.Body.Close` is not checked (errcheck)
Error: internal/resource/url.go:654:26: Error return value of `decompressor.Close` is not checked (errcheck)
```
2025-08-07 12:37:44 +02:00