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

Reduce space taken by credentials, using a migration step #55

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sosthene-nitrokey
Copy link

For now the migration step renames the files, testing need to be done to make sure that this will not fail when only one block remains free.

@robin-nitrokey
Copy link
Member

Rebased onto v0.1.1-nitrokey.19. The old state can be found here: https://github.com/Nitrokey/fido-authenticator/tree/space-opt-migration-old

@robin-nitrokey
Copy link
Member

Rebased onto c145a45.

…hash` from `rp_id_hash/credential_id_hash`

The goal is to make credential storage more efficient, by making use of littlefs's
ability to inline file contents into the directory metadata when the file is small.
@robin-nitrokey
Copy link
Member

robin-nitrokey commented Nov 1, 2024

To be checked:

  • AFAIS the credential deletion still needs to be updated. delete_rp_dir_if_empty is no longer necessary. Theoretically, we could delete the RK dir if it is empty but that’s optional.
  • next_credential still contains a check based on rp_dir. As rp_dir is now the same for all credentials, this no longer makes sense. We should probably check the filename prefix instead (and validate the credential data?).
  • There are still some TODO comments. It’s not always clear if they are still relevant or what’s the actual todo.

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.

2 participants