Skip to content

Add device label to config - #694

Merged
robin-nitrokey merged 1 commit into
Nitrokey:mainfrom
ABuljko:device-label
Oct 21, 2026
Merged

robin-nitrokey merged 1 commit into
Nitrokey:mainfrom
ABuljko:device-label

Conversation

@ABuljko

@ABuljko ABuljko commented Aug 12, 2026

Copy link
Copy Markdown
  • Add a global config namespace with a device_label field, stored as a 32 byte heapless::String
  • Enable the serde feature of heapless
  • Raise the limit in test_config_size from 64 to 128 bytes, as a config with a maximum-length label no longer fits into 64

@ABuljko
ABuljko marked this pull request as ready for review August 12, 2026 20:56
@ABuljko
ABuljko requested a review from a team as a code owner August 12, 2026 20:56
@ABuljko
ABuljko requested review from daringer, robin-nitrokey and sosthene-nitrokey and removed request for a team August 12, 2026 20:56
@robin-nitrokey

robin-nitrokey commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

LGTM. Required before merging:

@ABuljko

ABuljko commented Aug 18, 2026

Copy link
Copy Markdown
Author

Should I then undo this commit: Temporarily patch admin-app to the config-string branch
Since my PR in the admin-app repo was merged

@robin-nitrokey

Copy link
Copy Markdown
Member

We first need to update opcard because it also depends on admin-app, then you can rebase and drop the commit.

@robin-nitrokey robin-nitrokey self-assigned this Aug 19, 2026
@ABuljko
ABuljko force-pushed the device-label branch 3 times, most recently from 22019ea to 3c3acec Compare October 13, 2026 12:16
@robin-nitrokey

robin-nitrokey commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

@ABuljko Can you please change the name to admin.label so that we consistently use application IDs as the first component of the config name? Then I’ll trigger the CI checks. (And I think we need another rebase.)

- Add an `admin` config namespace with a `label` field, stored as a 32 byte heapless::String
- Enable the serde feature of heapless
- Raise the limit in test_config_size from 64 to 128 bytes, as a config with a maximum-length label no longer fits into 64
@ABuljko

ABuljko commented Oct 21, 2026

Copy link
Copy Markdown
Author

@robin-nitrokey Done

@robin-nitrokey robin-nitrokey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@nitrokey-ci

Copy link
Copy Markdown
Collaborator

No significant changes.

Insignifcant changes
metric value change
binary-size-nk3am 1,402,541 🔴 +1,951 (+0.14%)
binary-size-nk3am-test 1,821,485 🔴 +2,295 (+0.13%)
binary-size-nk3xn 502,364 🔴 +840 (+0.17%)
binary-size-nk3xn-test 502,404 🔴 +864 (+0.17%)
binary-size-nkpk 631,345 🔴 +2,904 (+0.46%)

@robin-nitrokey
robin-nitrokey merged commit d3f7355 into Nitrokey:main Oct 21, 2026
13 checks passed
@ABuljko

ABuljko commented Oct 21, 2026

Copy link
Copy Markdown
Author

Next on the line is the SDK then :)

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.

3 participants