Commit Graph

84 Commits

Author SHA1 Message Date
Robin Krahl 29a48fea31 Revert "Increase timeout for reboot to bootloader"
This reverts commit 37d5437257.

I misunderstood the requirement described in
https://github.com/Nitrokey/nitrokey-3-firmware/issues/519, so this
change was unnecessary.
2024-10-10 13:19:57 +02:00
Robin Krahl 37d5437257 Increase timeout for reboot to bootloader
Previously, we had a timeout of 15 seconds for the user presence check
when rebooting to bootloader.  This can be too short in some situations,
see for example https://github.com/Nitrokey/nitrokey-3-firmware/issues/519.

This patch increases the timeout to 30 seconds.
2024-08-01 11:29:25 +02:00
sosthene-nitrokey c24149193f Merge pull request #26 from Nitrokey/test-rng
Add trait for StatusBytes and allow lazyly configuring the initialization of the RNG
2024-07-31 11:50:37 +02:00
Sosthène Guédon 914da07862 Add trait for StatusBytes and allow lazyly configuring the initialization of the RNG 2024-07-31 10:35:36 +02:00
sosthene-nitrokey 4dd16c02e9 Merge pull request #25 from Nitrokey/config-mut
Allow mutable access to the config
2024-04-12 10:20:22 +02:00
Sosthène Guédon c257432dbe Save config after factory-reset-app 2024-04-09 11:28:44 +02:00
Sosthène Guédon 779f6cb07b Implement saving the config after mutating it 2024-04-09 11:14:14 +02:00
Sosthène Guédon 054536c2b4 Reset the config on application factory-reset 2024-04-05 12:14:57 +02:00
Sosthène Guédon da6ccda351 Allow mutable access to the config 2024-04-04 17:28:43 +02:00
sosthene-nitrokey c134517557 Merge pull request #23 from Nitrokey/migrations-owned
Add migration mechanism without relying on the staging backend.
2024-04-02 17:54:47 +02:00
Sosthène Guédon 6db11c60f8 Use clientfilestore to store config after migration (migrations run before trussed is up) 2024-04-02 17:43:14 +02:00
Sosthène Guédon 8b352509e3 Add access to status 2024-04-02 17:43:14 +02:00
Sosthène Guédon 5c0f101027 Fix compilation with log-error 2024-04-02 17:43:14 +02:00
Sosthène Guédon dc8f91b85b Add migration testing utils 2024-04-02 17:43:14 +02:00
Sosthène Guédon 9f832f3b7f Add migration mechanism 2024-03-25 11:35:13 +01:00
Robin Krahl 0ba0e766cb Use extension crates instead of backends
This patch replaces the dependencies on trussed-staging and
trussed-se050-backend with the extension crates trussed-manage and
trussed-se050-manage.  See the these PRs for more information:
- https://github.com/trussed-dev/trussed-staging/pull/19
- https://github.com/Nitrokey/trussed-se050-backend/pull/13
2024-03-15 11:49:22 +01:00
Robin Krahl c6c87cfad4 Update dependencies 2024-03-04 15:00:04 +01:00
Robin Krahl 75c7c969cf Merge pull request #18 from Nitrokey/config-error
Refactor App constructors
2023-12-01 15:08:49 +01:00
Robin Krahl 7ecc984590 Return client on failure in App::load_config
This makes it possible to construct the App instance with
App::with_default_config instead using the same client.
2023-12-01 12:51:51 +01:00
Robin Krahl c25f80e5ce Refactor constructors
This patch renames App::load to App::load_config and App::without_config
to App::with_default_config.  It also extends App::with_default_config
to work with any Config implementation, not only ().
2023-12-01 12:39:03 +01:00
Robin Krahl c15d435979 Make App::load fallible
Previously, we assumed that we can always read from the IFS and panicked
if that failed.  This patch changes App::load to return an error
instead.  The runner can then decide whether it panics, skips the admin
app or uses the default config (App::without_config).
2023-12-01 10:48:35 +01:00
Robin Krahl 8d4aa588cc Merge pull request #17 from Nitrokey/config
Add App::without_config constructor
2023-11-29 18:05:59 +01:00
Robin Krahl c49c596df5 Add App::without_config constructor
For testing, e. g. in websmartcard, the config feature is not necessary.
This patch adds a without_config constructor to the App to make it
easier to setup the app in such cases.
2023-11-29 18:05:21 +01:00
sosthene-nitrokey c83c8a27c2 Merge pull request #16 from Nitrokey/factory-reset-flag
Add feature-flag for factory-reset
2023-11-21 22:00:47 +01:00
Sosthène Guédon 6ce6b9dcd9 Add feature-flag for factory-reset 2023-11-21 17:41:35 +01:00