Skip to content

feat: Add DeviceTier config option description#2786

Merged
elkoniu merged 1 commit intomendersoftware:masterfrom
elkoniu:MEN-9445
Apr 13, 2026
Merged

feat: Add DeviceTier config option description#2786
elkoniu merged 1 commit intomendersoftware:masterfrom
elkoniu:MEN-9445

Conversation

@elkoniu
Copy link
Copy Markdown
Contributor

@elkoniu elkoniu commented Apr 1, 2026

Add missing DeviceTier configuration option description and refactor existing DeviceTier documentation to highlight important caveats.

Ticket: MEN-9445

Comment thread 02.Overview/17.Device-tiers/docs.md Outdated
5. **Configuration update**: The device configuration (on the device itself) must be updated to send the correct tier in future authentication requests

**Important considerations:**
!!!!! DeviceTier can't be changed via update.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure about that. I think it actually is supported (or should be supported). @frodeha , you mentioned that this is something we should have, right?

Copy link
Copy Markdown
Contributor

@frodeha frodeha Apr 7, 2026

Choose a reason for hiding this comment

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

It is supported, yes. If you deploy an update that changes the DeviceTier value in mender.conf of a device, this will work given that you accept the new authentication set created by the server (e.g what's outlined below).

##### DeviceTier

This option describes class of an authenticated device in Mender.
Depending on the value - the server will treat device different and different
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would change it to
Depending on the value, different device limitations will be applied by the Server.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agreed, but I would go one step further as we're not exclusively talking about limitations. For some tiers (e.g system) we're unlocking new capabilities (manifest updates) not limiting existing ones. I quite like this formulation as it talks about both limitations and capabilities. Just my two cents.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Rephrashed following your suggestions:)

Comment thread 02.Overview/17.Device-tiers/docs.md Outdated
Comment on lines +153 to +161
!!!!! DeviceTier can't be changed via update.

!!!!! Changing tiers requires creating a new authentication set and getting it authorized.

!!!!! Only one authentication set per device can be in the "accepted" state at a time.

- Changing tiers requires creating a new authentication set and getting it authorized
- Only one authentication set per device can be in the "accepted" state at a time
- The device must be reconfigured to send the correct tier value
- Deployments should be adjusted to account for the new tier's capabilities and restrictions
!!!!! The device must be reconfigured to send the correct tier value.

!!!! If device tier is not specified, the authentication set is treated as **Standard** device tier.
!!!!! Deployments should be adjusted to account for the new tier's capabilities and restrictions.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I found the previous formatting easier on the eyes. I would try not to overuse the notice boxes.
Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True, I reverted this change.

Comment thread 02.Overview/17.Device-tiers/docs.md Outdated
5. **Configuration update**: The device configuration (on the device itself) must be updated to send the correct tier in future authentication requests

**Important considerations:**
!!!!! DeviceTier can't be changed via update.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reading this seems to contradict the section header potentially leading the reader more confused.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The missleading line has been removed.

@elkoniu elkoniu force-pushed the MEN-9445 branch 2 times, most recently from e7b1d0d to f547e47 Compare April 13, 2026 07:06
@elkoniu elkoniu requested a review from alfrunes April 13, 2026 07:06
Comment thread 02.Overview/17.Device-tiers/docs.md Outdated
Comment on lines +154 to +157
-- Changing tiers requires creating a new authentication set and getting it authorized.
-- Only one authentication set per device can be in the "accepted" state at a time.
-- The device must be reconfigured to send the correct tier value.
-- Deployments should be adjusted to account for the new tier's capabilities and restrictions.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you mean to create an unordered list? Currently this collapse to a single paragraph:
Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, my bad - copy pasted the diff with too many - signs. Updated.

Comment thread 02.Overview/17.Device-tiers/docs.md Outdated
- Deployments should be adjusted to account for the new tier's capabilities and restrictions

!!!! If device tier is not specified, the authentication set is treated as **Standard** device tier.
- Changing tiers requires creating a new authentication set and getting it authorized.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think a new authentication set is created by the app itself. Not sure.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe the wording is a bit confusing?
What it actually means in practice is that the client must generate a new private key for authentication.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True, I clarified it following @alfrunes suggestion.

Comment thread 02.Overview/17.Device-tiers/docs.md Outdated
- Deployments should be adjusted to account for the new tier's capabilities and restrictions

!!!! If device tier is not specified, the authentication set is treated as **Standard** device tier.
- Changing tiers requires creating a new authentication set and getting it authorized.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe the wording is a bit confusing?
What it actually means in practice is that the client must generate a new private key for authentication.

Add missing DeviceTier configuration option description and refactor
existing DeviceTier documentation to highlight important caveats.

Ticket: MEN-9445

Signed-off-by: Paweł Poławski <pawel.polawski@northern.tech>
@elkoniu elkoniu merged commit 7891f6c into mendersoftware:master Apr 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants