feat: reject non-manifest artifacts on system devices#1982
feat: reject non-manifest artifacts on system devices#1982danielskinstad wants to merge 1 commit into
Conversation
|
@mender-test-bot start client pipeline |
|
@danielskinstad, start a full client pipeline with:
my commands and optionsYou can prevent me from automatically starting CI pipelines:
You can trigger a client pipeline on multiple prs with:
You can trigger a client pipeline for a specific Mender Client release with:
You can trigger GitHub->GitLab branch sync with:
You can print PR statistics for a repository with:
You can deploy a review app with:
You can run e2e tests against a deployed review app with:
You can cherry pick to a given branch or branches with:
|
|
Hello 😺 I created a pipeline for you here: Pipeline-2631767080 Build Configuration Matrix
|
Changelog: On a System Device, mender-update now refuses a deployment whose artifact is not a mender-orchestrator-manifest. Ticket: MEN-9655 Signed-off-by: Daniel Skinstad Drabitzius <daniel.drabitzius@northern.tech>
|
Merging these commits will result in the following changelog entries: Changelogsmender (MEN-9655)New changes in mender since master: Features
|
rewanrashid-boop
left a comment
There was a problem hiding this comment.
From the code it looks good to me testing:
- When tier is system and attempt to install regular artifact
- When tier is standard and attempt to install regular artifact
- When tier is system and attempt to install manifest artifact
Maybe for coverage sake you could have also have a test for when tier is micro and installing a regular/manifest artifact, but i suppose it is the same 🤷. So long as pipeline fully green should be good to merge. Ping when green for approval 🚀 .
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
vpodzime
left a comment
There was a problem hiding this comment.
So there's a different tier if mender-update runs as a component interface?
No, there's a separate state machine when running in daemon mode and when running in standalone mode. Daniel did changes only to the daemon state machine. So for standalone, even though the tier is system, normal artifacts can be installed. Nice, I was wondering if rejecting non-manifest updates in daemon, but allowing them in standalone will be a problem to implement, and it turns out that this was free :D Daniel , correct me if I'm wrong here. |
Changelog: On a System Device, mender-update now refuses a deployment whose artifact is not a mender-orchestrator-manifest.
Ticket: MEN-9655