Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check root permissions in commands that need it #145

Merged
merged 3 commits into from
Sep 14, 2023
Merged

Conversation

jimmykarily
Copy link
Contributor

Otherwise the error shown is not helpful (it fails too late with confusing errors).

@jimmykarily jimmykarily requested a review from a team September 14, 2023 12:37
@jimmykarily jimmykarily self-assigned this Sep 14, 2023
@jimmykarily
Copy link
Contributor Author

pull-image already had a check:

kairos-agent/main.go

Lines 576 to 578 in 274701a

if os.Geteuid() != 0 {
return fmt.Errorf("this command requires root privileges")
}

The function I added is in a different package and not exported and I preferred not to re-use it. The alternative is to export it and use it in main.go too.

Copy link
Member

@Itxaka Itxaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer this to be done on the main go inside the cmds with the Before: stanza, as otherwise a lot of work is done on the commands sometimes (like reading and preparing config and specs) for no reason and in fact that work could as well fail due to not enough permissions.

@jimmykarily
Copy link
Contributor Author

I would prefer this to be done on the main go inside the cmds with the Before: stanza, as otherwise a lot of work is done on the commands sometimes (like reading and preparing config and specs) for no reason and in fact that work could as well fail due to not enough permissions.

good point, I'll move it there

internal/agent/upgrade.go Outdated Show resolved Hide resolved
Otherwise the error shown is not helpful (it fails too late with
confusing errors).

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #145 (b336e16) into main (417f8ce) will decrease coverage by 0.12%.
Report is 4 commits behind head on main.
The diff coverage is 43.33%.

@@            Coverage Diff             @@
##             main     #145      +/-   ##
==========================================
- Coverage   60.73%   60.62%   -0.12%     
==========================================
  Files          37       37              
  Lines        4452     4480      +28     
==========================================
+ Hits         2704     2716      +12     
- Misses       1521     1535      +14     
- Partials      227      229       +2     
Files Changed Coverage Δ
internal/agent/agent.go 42.62% <ø> (ø)
internal/agent/install.go 5.55% <ø> (ø)
internal/agent/reset.go 0.00% <0.00%> (ø)
internal/agent/upgrade.go 0.00% <ø> (ø)
pkg/utils/grub.go 66.84% <42.85%> (-4.49%) ⬇️
pkg/http/client.go 85.71% <100.00%> (+0.42%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@Itxaka Itxaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice

@jimmykarily jimmykarily merged commit 9c62ffa into main Sep 14, 2023
5 checks passed
@jimmykarily jimmykarily deleted the check-root branch September 14, 2023 13:14
jimmykarily referenced this pull request in kairos-io/provider-kairos Dec 12, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/kairos-io/kairos-agent/v2](https://togithub.com/kairos-io/kairos-agent)
| require | minor | `v2.1.11-0.20230710123948-9c5731baa2e3` -> `v2.4.5`
|

---

### Release Notes

<details>
<summary>kairos-io/kairos-agent
(github.com/kairos-io/kairos-agent/v2)</summary>

###
[`v2.4.5`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.5)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.4...v2.4.5)

#### What's Changed

- Add config permissions by
[@&#8203;mauromorales](https://togithub.com/mauromorales) in
[https://github.com/kairos-io/kairos-agent/pull/179](https://togithub.com/kairos-io/kairos-agent/pull/179)

**Full Changelog**:
kairos-io/kairos-agent@v2.4.4...v2.4.5

###
[`v2.4.4`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.4)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.3...v2.4.4)

#### What's Changed

- Bump kairos-sdk to fix the local bundle installation by
[@&#8203;jimmykarily](https://togithub.com/jimmykarily) in
[https://github.com/kairos-io/kairos-agent/pull/177](https://togithub.com/kairos-io/kairos-agent/pull/177)
- Fix unwanted reboot from install config in upgrade/reset by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/178](https://togithub.com/kairos-io/kairos-agent/pull/178)

**Full Changelog**:
kairos-io/kairos-agent@v2.4.3...v2.4.4

###
[`v2.4.3`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.3)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.2...v2.4.3)

#### Changelog

-
[`dfa5665`](https://togithub.com/kairos-io/kairos-agent/commit/dfa5665)
Don't parse userdata twice

###
[`v2.4.2`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.2)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.1...v2.4.2)

#### Changelog

-
[`c98c791`](https://togithub.com/kairos-io/kairos-agent/commit/c98c791)
Call `exec.Command` properly, splitting the cmd and args (Fixes the
setup of the systemd sysext directory)

###
[`v2.4.1`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.1)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.0...v2.4.1)

#### Changelog

-
[`02a0f48`](https://togithub.com/kairos-io/kairos-agent/commit/02a0f48)
Add regexp module to grub

###
[`v2.4.0`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.0)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.3.0...v2.4.0)

#### What's Changed

- \[uki] Lyfecycle by [@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/148](https://togithub.com/kairos-io/kairos-agent/pull/148)
- Update module github.com/onsi/ginkgo/v2 to v2.12.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/154](https://togithub.com/kairos-io/kairos-agent/pull/154)
- Update module github.com/onsi/gomega to v1.28.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/155](https://togithub.com/kairos-io/kairos-agent/pull/155)
- Update module github.com/mudler/yip to v1.4.4 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/156](https://togithub.com/kairos-io/kairos-agent/pull/156)
- Update dependency codemirror to v5.65.15 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/137](https://togithub.com/kairos-io/kairos-agent/pull/137)
- Update dependency bootstrap to v5.3.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/146](https://togithub.com/kairos-io/kairos-agent/pull/146)
- Update github.com/kairos-io/kairos-sdk digest to
[`0bb4e40`](https://togithub.com/kairos-io/kairos-agent/commit/0bb4e40)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/157](https://togithub.com/kairos-io/kairos-agent/pull/157)
- Update dependency jquery to v3.7.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/158](https://togithub.com/kairos-io/kairos-agent/pull/158)
- Update module github.com/mudler/yip to v1.4.5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/160](https://togithub.com/kairos-io/kairos-agent/pull/160)
- Update module github.com/labstack/echo/v4 to v4.11.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/162](https://togithub.com/kairos-io/kairos-agent/pull/162)
- Update module github.com/nxadm/tail to v1.4.11 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/163](https://togithub.com/kairos-io/kairos-agent/pull/163)
- Update module github.com/distribution/distribution to
v2.8.3+incompatible by [@&#8203;renovate](https://togithub.com/renovate)
in
[https://github.com/kairos-io/kairos-agent/pull/161](https://togithub.com/kairos-io/kairos-agent/pull/161)
- Stop tailing provider log by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/166](https://togithub.com/kairos-io/kairos-agent/pull/166)
- Add command to render a Go template by
[@&#8203;wyvernzora](https://togithub.com/wyvernzora) in
[https://github.com/kairos-io/kairos-agent/pull/159](https://togithub.com/kairos-io/kairos-agent/pull/159)
- Keep track of visited files for size calculation by
[@&#8203;mauromorales](https://togithub.com/mauromorales) in
[https://github.com/kairos-io/kairos-agent/pull/168](https://togithub.com/kairos-io/kairos-agent/pull/168)
- Update module github.com/kairos-io/kairos-sdk to v0.0.15 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/170](https://togithub.com/kairos-io/kairos-agent/pull/170)
- Update module github.com/mudler/yip to v1.4.5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/169](https://togithub.com/kairos-io/kairos-agent/pull/169)

#### New Contributors

- [@&#8203;wyvernzora](https://togithub.com/wyvernzora) made their first
contribution in
[https://github.com/kairos-io/kairos-agent/pull/159](https://togithub.com/kairos-io/kairos-agent/pull/159)

**Full Changelog**:
kairos-io/kairos-agent@v2.3.0...v2.4.0

###
[`v2.3.0`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.3.0)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.12...v2.3.0)

#### What's Changed

- Bump yip by [@&#8203;jimmykarily](https://togithub.com/jimmykarily) in
[https://github.com/kairos-io/kairos-agent/pull/149](https://togithub.com/kairos-io/kairos-agent/pull/149)
- Pass the install event to the collector directly by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/150](https://togithub.com/kairos-io/kairos-agent/pull/150)
- Take symlinks into account for partition size by
[@&#8203;mauromorales](https://togithub.com/mauromorales) in
[https://github.com/kairos-io/kairos-agent/pull/153](https://togithub.com/kairos-io/kairos-agent/pull/153)
- Bump yip by [@&#8203;jimmykarily](https://togithub.com/jimmykarily) in
[https://github.com/kairos-io/kairos-agent/pull/151](https://togithub.com/kairos-io/kairos-agent/pull/151)
- 1837 Add `--source` to various commands by
[@&#8203;jimmykarily](https://togithub.com/jimmykarily) in
[https://github.com/kairos-io/kairos-agent/pull/152](https://togithub.com/kairos-io/kairos-agent/pull/152)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.12...v2.3.0

###
[`v2.2.12`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.12)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.11...v2.2.12)

#### What's Changed

- Also install fonts when installing grub by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/144](https://togithub.com/kairos-io/kairos-agent/pull/144)
- Check root permissions in commands that need it by
[@&#8203;jimmykarily](https://togithub.com/jimmykarily) in
[https://github.com/kairos-io/kairos-agent/pull/145](https://togithub.com/kairos-io/kairos-agent/pull/145)
- Update goreleaser/goreleaser-action action to v5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/143](https://togithub.com/kairos-io/kairos-agent/pull/143)
- Update dependency cypress to v12.17.4 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/138](https://togithub.com/kairos-io/kairos-agent/pull/138)
- Update module github.com/erikgeiser/promptkit to v0.9.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/126](https://togithub.com/kairos-io/kairos-agent/pull/126)
- Workaround for bundle install in new /var/lib/extensions directory by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/147](https://togithub.com/kairos-io/kairos-agent/pull/147)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.11...v2.2.12

###
[`v2.2.11`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.11)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.10...v2.2.11)

#### What's Changed

- Update module github.com/mudler/yip to v1.4.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/142](https://togithub.com/kairos-io/kairos-agent/pull/142)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.10...v2.2.11

###
[`v2.2.10`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.10)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.9...v2.2.10)

#### What's Changed

- Update module golang.org/x/oauth2 to v0.12.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/127](https://togithub.com/kairos-io/kairos-agent/pull/127)
- Update dependency
[@&#8203;fortawesome/fontawesome-free](https://togithub.com/fortawesome/fontawesome-free)
to v6.4.2 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/114](https://togithub.com/kairos-io/kairos-agent/pull/114)
- Update module github.com/mudler/yip to v1.4.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/135](https://togithub.com/kairos-io/kairos-agent/pull/135)
- Update actions/checkout action to v4 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/140](https://togithub.com/kairos-io/kairos-agent/pull/140)
- Bump yip to latest by [@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/141](https://togithub.com/kairos-io/kairos-agent/pull/141)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.9...v2.2.10

###
[`v2.2.9`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.9)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.8...v2.2.9)

#### What's Changed

- Track active/passive boot for upgrade workflow by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/133](https://togithub.com/kairos-io/kairos-agent/pull/133)
- Bump to latest yip by [@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/134](https://togithub.com/kairos-io/kairos-agent/pull/134)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.8...v2.2.9

###
[`v2.2.8`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.8)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.7...v2.2.8)

#### What's Changed

- Fix manual-install reboot/poweroff flags by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/131](https://togithub.com/kairos-io/kairos-agent/pull/131)
- Fix recovery image calculation by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/132](https://togithub.com/kairos-io/kairos-agent/pull/132)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.7...v2.2.8

###
[`v2.2.7`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.7)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.6...v2.2.7)

#### What's Changed

- Adjust size to take into account upgrades by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/130](https://togithub.com/kairos-io/kairos-agent/pull/130)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.6...v2.2.7

###
[`v2.2.6`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.6)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.5...v2.2.6)

#### What's Changed

- Several improvements for size calculation by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/129](https://togithub.com/kairos-io/kairos-agent/pull/129)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.5...v2.2.6

###
[`v2.2.5`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.5)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.4...v2.2.5)

#### What's Changed

- Fix space calculation on recovery by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/128](https://togithub.com/kairos-io/kairos-agent/pull/128)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.4...v2.2.5

###
[`v2.2.4`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.4)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.3...v2.2.4)

#### Changelog

-
[`3e9befa`](https://togithub.com/kairos-io/kairos-agent/commit/3e9befa)
Add recovery upgrade flag to upgrade command + msg
([#&#8203;123](https://togithub.com/kairos-io/kairos-agent/issues/123))
-
[`4108aa9`](https://togithub.com/kairos-io/kairos-agent/commit/4108aa9)
Auto calculate image size on actions
([#&#8203;122](https://togithub.com/kairos-io/kairos-agent/issues/122))
-
[`48095b6`](https://togithub.com/kairos-io/kairos-agent/commit/48095b6)
Auto calculate partiton size on install
([#&#8203;121](https://togithub.com/kairos-io/kairos-agent/issues/121))
-
[`b5e1e7a`](https://togithub.com/kairos-io/kairos-agent/commit/b5e1e7a)
Fix goreleaser artifact names
([#&#8203;125](https://togithub.com/kairos-io/kairos-agent/issues/125))
-
[`1a72f56`](https://togithub.com/kairos-io/kairos-agent/commit/1a72f56)
Restore loading env from config file
([#&#8203;124](https://togithub.com/kairos-io/kairos-agent/issues/124))
-
[`e05c2a3`](https://togithub.com/kairos-io/kairos-agent/commit/e05c2a3)
Update .codecov.yaml
-
[`1048a5b`](https://togithub.com/kairos-io/kairos-agent/commit/1048a5b)
Update module github.com/labstack/echo/v4 to v4.11.1
([#&#8203;117](https://togithub.com/kairos-io/kairos-agent/issues/117))
-
[`7d8de3b`](https://togithub.com/kairos-io/kairos-agent/commit/7d8de3b)
Update module github.com/onsi/gomega to v1.27.10
([#&#8203;99](https://togithub.com/kairos-io/kairos-agent/issues/99))
-
[`639e787`](https://togithub.com/kairos-io/kairos-agent/commit/639e787)
Update module github.com/pterm/pterm to v0.12.65
([#&#8203;120](https://togithub.com/kairos-io/kairos-agent/issues/120))
-
[`3a6bd03`](https://togithub.com/kairos-io/kairos-agent/commit/3a6bd03)
Update unit-tests.yml

###
[`v2.2.3`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.3)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.2...v2.2.3)

#### What's Changed

- Improve error message by
[@&#8203;jimmykarily](https://togithub.com/jimmykarily) in
[https://github.com/kairos-io/kairos-agent/pull/119](https://togithub.com/kairos-io/kairos-agent/pull/119)
- Make unattended reset work by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/110](https://togithub.com/kairos-io/kairos-agent/pull/110)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.2...v2.2.3

###
[`v2.2.2`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.2)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.1...v2.2.2)

#### What's Changed

- Allow creating dirs in rootfs via cc by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/109](https://togithub.com/kairos-io/kairos-agent/pull/109)
- Extra cleanup for install partitions by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/108](https://togithub.com/kairos-io/kairos-agent/pull/108)
- Tests and improve createExtraDirsInRootfs by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/111](https://togithub.com/kairos-io/kairos-agent/pull/111)
- Drop override of message options after install by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/112](https://togithub.com/kairos-io/kairos-agent/pull/112)
- Make interactive installer use the collector as well by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/113](https://togithub.com/kairos-io/kairos-agent/pull/113)
- Update dependency cypress to v12.17.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/92](https://togithub.com/kairos-io/kairos-agent/pull/92)
- Update dependency jquery to v3.7.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/94](https://togithub.com/kairos-io/kairos-agent/pull/94)
- Update dependency codemirror to v5.65.14 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/86](https://togithub.com/kairos-io/kairos-agent/pull/86)
- Update dependency bootstrap to v5.3.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/54](https://togithub.com/kairos-io/kairos-agent/pull/54)
- Update dependency alpinejs to v3.12.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/80](https://togithub.com/kairos-io/kairos-agent/pull/80)
- Update module k8s.io/mount-utils to v0.27.4 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/93](https://togithub.com/kairos-io/kairos-agent/pull/93)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.1...v2.2.2

###
[`v2.2.1`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.1)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.0...v2.2.1)

#### What's Changed

- Drop logrusWrapper by [@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/105](https://togithub.com/kairos-io/kairos-agent/pull/105)
- Rework install workflow for event stuff by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/106](https://togithub.com/kairos-io/kairos-agent/pull/106)
- Update module github.com/kairos-io/kairos-sdk to v0.0.11 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/107](https://togithub.com/kairos-io/kairos-agent/pull/107)

**Full Changelog**:
kairos-io/kairos-agent@v2.2.0...v2.2.1

###
[`v2.2.0`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.0)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.1.12...v2.2.0)

#### What's Changed

- Update module github.com/jaypipes/ghw to v0.12.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/89](https://togithub.com/kairos-io/kairos-agent/pull/89)
- Update module github.com/kairos-io/kairos-sdk to v0.0.9 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/87](https://togithub.com/kairos-io/kairos-agent/pull/87)
- Update module github.com/pterm/pterm to v0.12.63 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/88](https://togithub.com/kairos-io/kairos-agent/pull/88)
- Update module github.com/spf13/viper to v1.16.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/50](https://togithub.com/kairos-io/kairos-agent/pull/50)
- Load elemental config/spec from cloud config by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/82](https://togithub.com/kairos-io/kairos-agent/pull/82)
- Merge data from events into reset by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/91](https://togithub.com/kairos-io/kairos-agent/pull/91)
- More config tests by [@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/97](https://togithub.com/kairos-io/kairos-agent/pull/97)
- Cleanup and simplify elementalConfig by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/98](https://togithub.com/kairos-io/kairos-agent/pull/98)
- Rework reboot/shutdown to use the hooks by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/96](https://togithub.com/kairos-io/kairos-agent/pull/96)
- Rework install a bit more by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/100](https://togithub.com/kairos-io/kairos-agent/pull/100)
- Drop runconfig in favour of config by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/101](https://togithub.com/kairos-io/kairos-agent/pull/101)
- Merge elemental config into agent config by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/102](https://togithub.com/kairos-io/kairos-agent/pull/102)
- Fix config loading, install device and call sanitize by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/103](https://togithub.com/kairos-io/kairos-agent/pull/103)
- Add tests for Platform by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/104](https://togithub.com/kairos-io/kairos-agent/pull/104)

**Full Changelog**:
kairos-io/kairos-agent@v2.1.11...v2.2.0

###
[`v2.1.12`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.1.12)

[Compare
Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.1.11...v2.1.12)

Bump SDK to v0.0.11

**Full Changelog**:
kairos-io/kairos-agent@v2.1.11...v2.1.12

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 11pm every weekday,before 7am
every weekday,every weekend" in timezone Europe/Brussels, Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/kairos-io/provider-kairos).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants