-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Nitrokey/dat-migrations-admin
Add migration for data
- Loading branch information
Showing
7 changed files
with
344 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Filesystem layout resulting from the use of the backend | ||
|
||
- The directory for the backend `BACKEND_DIR=se050-bak` | ||
- The directory for per-client auth data: `AUTH_DIR=auth` | ||
- The directory for the core keys `CORE_DIR=se050-core` | ||
|
||
## Trussed auth impl: | ||
|
||
``` | ||
/ | ||
|- opcard | ||
| | | ||
| |- dat | ||
| |- sec | ||
| |- pub | ||
| |- BACKEND_DIR | ||
| | |- AUTH (`let fs = once(|resources, _| resources.raw_filestore(backend_path))`) | ||
| | | |- pin.XX | ||
| | | |- pin.XX | ||
| | | |- application_salt | ||
| | ||
|- BACKEND_DIR (`let global_fs = once(|resources, _| resources.raw_filestore(PathBuf::from(BACKEND_DIR)))`) | ||
| |- salt | ||
``` | ||
|
||
## Core API impl | ||
|
||
``` | ||
/ | ||
|- opcard | ||
| |- dat | ||
| |- sec | ||
| |- pub | ||
| |- BACKEND_DIR | ||
| | |- CORE_DIR | ||
| | | |- sec | ||
| | | |- pub | ||
``` | ||
|
||
## TOTAL: | ||
|
||
``` | ||
/ | ||
|- opcard | ||
| | | ||
| |- dat | ||
| |- sec | ||
| |- pub | ||
| |- BACKEND_DIR | ||
| | |- CORE_DIR | ||
| | | |- sec | ||
| | | |- pub | ||
| | |- AUTH (`let fs = once(|resources, _| resources.raw_filestore(backend_path))`) | ||
| | | |- pin.XX | ||
| | | |- pin.XX | ||
| | | |- application_salt | ||
| | ||
|- BACKEND_DIR (`let global_fs = once(|resources, _| resources.raw_filestore(PathBuf::from(BACKEND_DIR)))`) | ||
| |- salt | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.