Commit Graph

53 Commits

Author SHA1 Message Date
Francesco Giudici 43f3b00193
Bump libraries to incorporate CVE fixes (#913)
* Bump libraries to incorporate CVE fixes

Bump golang.org/x/net to cover CVE-2025-22870 and fix bsc#1238700.
Bump golang.org/x/crypto to cover CVE-2025-22869 and fix bsc#1239335.

In addition and as a requirement of the new x/crypto library go is bumped to 1.23

Signed-off-by: David Cassany <dcassany@suse.com>

* Dockerfile: bump golang container to 1.24 (#912)

Required since vendored x/crypto lib requires go ver >= 1.23

Related to #dd41431b0b2792f0fca005adf3abc3cf471877c4

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>

* CVE-2025-22872

Bump golang.org/x/net
https://github.com/advisories/GHSA-vvgc-356p-c3xw

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>

* go mod vendor

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>

---------

Signed-off-by: David Cassany <dcassany@suse.com>
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
Co-authored-by: David Cassany <dcassany@suse.com>
2025-06-16 11:01:16 +02:00
Andrea Mazzotti 0839780db8
Sanitize elemental-operator dependencies (#690)
* Update system-upgrade-controller API

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Update Fleet API

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Sanitize dependencies

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

---------

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-03-20 15:46:51 +01:00
Andrea Mazzotti 79e4fb117f
Bump go to 1.22 (#643)
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-02-23 08:58:26 +01:00
Andrea Mazzotti 6c648b6faa
Test against k8s v1.27, rancher v2.8.2, and upgrade all test dependendencies (#628)
* Test against k8s v1.27, rancher v2.8.2, and upgrade all test dependencies

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-02-15 13:02:07 +01:00
Fredrik Lönnegren c546933825
Build raw disk images in SeedImage (#557)
* feat: Add Type field to SeedImageSpec

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>

* feat: Add raw disk build generation to SeedImage

If SeedImageSpec.Type is set to 'raw' we now try to run elemental
build-disk to generate the disk image.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>

* Add elemental-toolkit to seedimage-builder

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>

* feat: Update yip to v1.4.5

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>

* feat: Reset yaml

Add yip cloud-config for raw disk-image that will extract the
elemental-register configuration to /oem/registration/config.yaml and
Start the elemental-register-install.service in the post-reset hook.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>

* feat: Use new toolkit param deploy-command

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>

---------

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-11-20 17:28:09 +01:00
Fredrik Lönnegren b27d2e6955
Update to go 1.19 (#408)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-04-04 13:55:50 +02:00
Fredrik Lönnegren fe8f53f2d2 Unify logging
Use klog for all logging and remove logrus.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-02-22 18:43:48 +01:00
Fredrik Lönnegren 2fad63435b Set default elemental-operator USER
Picked a non-conflicting uid/gid, tested on v1.24.9-k3s2 with the
recommended hardening options.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-01-20 13:10:26 +01:00
Alexander Demicev e1dc2202b6 Kubebuilder: Add machine registration controller (#206)
* Add new package to Dockerfile

* Update dependencies

* Add unit test helpers

* Add new machine registration controller

* Remove old machine registration controller

* Add rbac tag for secrets

* Fix container argument in chart

* Add labels to all created resources
2022-12-12 12:15:22 +01:00
Alexander Demicev 591c683dd4 Kubebuilder: Run new code and generate RBAC (#203)
* Add new command for running kubebuilder based code

* Add make task for generating RBAC from code

* Add new directory to makefile
2022-12-12 12:15:22 +01:00
Loic Devulder 57d36d89f1 Use BCI Golang image to build image
Because CGO is needed in elemental-register for TPM emulation, but
Alpine image uses musl-libc instead of glibc, which causes issues.

Signed-off-by: Loic Devulder <ldevulder@suse.com>
2022-09-09 11:58:28 +02:00
Loic Devulder fd3aa68bf9 register: fix CGO build in Dockerfile
Signed-off-by: Loic Devulder <ldevulder@suse.com>
2022-09-09 09:25:08 +02:00
Itxaka 3ec367fa8f
Bundle support bin with register (#124) 2022-08-08 16:24:20 +02:00
Itxaka 485ff211eb
Add CAs to docker artifact (#120) 2022-08-05 16:25:21 +02:00
Itxaka ea7884e8df
Produce 2 binaries instead of one (#99)
* Produce 2 binaries instead of one

This generates a different binary for the register command as to not
bundle it with the full operator.

On the makefile separated builds have been done for operator and
registry.

On the docker image a different container is created for the register
and pushed to a different repo as well.

For releases gorelease generates 2 different binaries.

Signed-off-by: Itxaka <igarcia@suse.com>
2022-08-01 15:08:23 +00:00
Itxaka 618d3c4da3
Log the version, commit and commit date on start (#43) 2022-07-15 09:50:18 +00:00
Itxaka 197483622d Rebase
Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:12:19 +02:00
Itxaka b7f4916cd9 Add -w to go build
Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:12:19 +02:00
Itxaka 74301fa37b Several fixes
Fix Dockerfile entrypoint
Fix some tests referring to old structs

Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:12:19 +02:00
Itxaka 66f27ebca1 Add missing Dockerfile and adapt the version passed to operator
Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:12:19 +02:00
Jacob Payne c5a5dbd77f renamed to elemental-operator and switched to system agent 2022-06-30 16:01:13 +00:00
Itxaka bcbe339e38 Use the same binary name across
There was a mix of ros-operator and rancheros-operator.

This patch fixes it so its always rancheros-operator, even
changing the repos to have the full name so everything matches

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 13:41:54 +01:00
Itxaka 26684d1888 Drop everything not needed for ros-operator
- Drops everything not needed for ros-operator
 - New simple Dockerfile
 - New jobs based on ros-operator only
 - Remove uneeded tests
 - Remove dependency on os2 images for integration tests
 - Use gorelease to release ros-operator binaries
 - Use docker to push ci images to ros-operator-ci registry on PR
 - Use docker to push master/tag images to ros-operator registry
 - Build chart indepently
 - Have a null test CI job for future integration tests

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 09:47:18 +01:00
Ettore Di Giacinto 5bb91d21f7
Disable verify (#50)
* Disable mtree

Fixes: https://github.com/rancher-sandbox/os2/issues/49
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Add installation test suite

Move the installation setup for tests to leverage ros-installer and
reworks it to be run as a suite.

At the moment only covers installation with container images, but is a
setup that would work as well for other scenarios.

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Bump cOS

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Disable mirror override

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* fix: Set 0 size for max autogrow

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-03-14 14:11:51 +01:00
Itxaka 649ad79a9d
Use ros-operator image for the ros-operator chart (#40) 2022-03-08 14:18:07 +01:00
Itxaka a7caaf1f87
Reduce framework image by copying only needed files (#39) 2022-03-04 21:07:44 +01:00
Ettore Di Giacinto b171993e27
Consume upstream cloud-init configs (#33)
* Consume upstream cloud-init configs

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Bump cOS

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* tests: Adapt to elemental-cli output changes

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-03-03 13:39:13 +01:00
Ettore Di Giacinto d496d96a02
Add openssl-devel
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-25 16:07:17 +01:00
Ettore Di Giacinto 3327b5ad53
Enable CGO on ros-installer builds
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-25 16:07:17 +01:00
Ettore Di Giacinto 30e0fe474b
Don't consume default cloud-config from cOS
They serve as example and as default. At this stage we extend them in a
way that doesn't make sense to bring them with us. Besides, they are
conflicting with our settings and pulls datasources before we actually
want.

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-23 14:57:36 +01:00
Ettore Di Giacinto 709cb9cadc
chart: generate chart image from IMAGE_REPO, use framework images
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-09 15:32:14 +01:00
Ettore Di Giacinto 66ee029ee3
Use tagged images, consume helm from repos and drop busybox workarounds 2022-02-01 11:36:01 +01:00
Ettore Di Giacinto 9dd725ab80
Update cos-toolkit, simplify framework image build
Consume rancherd from cos repos

Fixes: https://github.com/rancher-sandbox/cOS-toolkit/issues/1104
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-01-31 16:53:15 +01:00
Darren Shepherd c35d85de48 Fix pxe install again 2021-11-30 20:19:22 -07:00
Darren Shepherd f3ed288017 EC2 fixes 2021-11-22 11:40:10 -07:00
Darren Shepherd 3f899e0784 Build custom ipxe and use hostbin for ros-operator 2021-11-08 22:16:28 -07:00
Darren Shepherd ede636e2b2 Add back Azure agent 2021-11-04 08:59:09 -07:00
Darren Shepherd 2d8162277a Default to Provo mirror 2021-11-04 08:51:39 -07:00
Darren Shepherd f35b3697c3 Fix installation and trim packages 2021-11-03 22:06:28 -07:00
Darren Shepherd 901973e5f6 Add TPM and MachineRegister support 2021-10-29 23:08:26 -07:00
Darren Shepherd 8159c29d9b Update rancherd 2021-10-22 23:45:53 -07:00
Darren Shepherd 4085b2977b Rename to rancher/os2 2021-10-20 12:19:44 -07:00
Darren Shepherd 5675644d9f Add operator 2021-10-20 10:58:54 -07:00
Darren Shepherd 53295b9228 Add arm64 2021-10-13 13:36:08 -07:00
Darren Shepherd 72291094c0 Push framework image and fix rancherd 2021-10-02 23:14:04 -07:00
Darren Shepherd 5e4cfa19ab Include Harvester changes 2021-10-02 22:27:31 -07:00
Darren Shepherd 3040e886dc Refactor build 2021-10-02 16:08:48 -07:00
Ettore Di Giacinto e0b5cf9369
Cleanup after integrating changes into cOS 2021-06-30 11:02:10 +02:00
Darren Shepherd 2072aaad9c Work arounds 2021-06-27 00:14:52 -07:00
Darren Shepherd 24e676d156 Sync up with cos upstream 2021-06-25 11:43:47 -07:00