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

Added SQLiteKeyInfoManager Storage & Retrieval Functionality. #508

Conversation

MattDavis00
Copy link
Member

@MattDavis00 MattDavis00 commented Aug 31, 2021

This PR adds basic storage and retrieval mechanisms into the SQLiteKeyInfoManager.
These mechanism satisfy our current unit tests which have been copied from the OnDiskKeyInfoManager for now.
Additional unit tests need adding to affirm the key_name, application_name, authenticator namespace we defined during design.
Furthermore, the kim_metadata table does not currently exist and will need adding.

(Won't be perfect, just doing it bit by bit for ease of PRs sake)

Closes #503

Signed-off-by: Matt Davis matt.davis@arm.com

@MattDavis00 MattDavis00 requested a review from a team as a code owner August 31, 2021 09:32
@MattDavis00 MattDavis00 force-pushed the feature-sqlite-key-info-manager branch from 388d533 to fa02a27 Compare August 31, 2021 13:17
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Thanks! It looks really good overall, just had a few comments/questions

src/key_info_managers/sqlite_manager/mod.rs Show resolved Hide resolved
src/key_info_managers/sqlite_manager/mod.rs Show resolved Hide resolved
src/key_info_managers/sqlite_manager/mod.rs Outdated Show resolved Hide resolved
This commit adds basic storage and retrieval mechanisms into the SQLiteKeyInfoManager.
These mechanism satisfy our current unit tests which have been copied from the OnDiskKeyInfoManager for now.
Additional unit tests need adding to affirm the key_name, application_name, authenticator namespace we defined during design.
Furthermore, the kim_metadata table does not currently exist and will need adding.

Closes parallaxsecond#503

Signed-off-by: Matt Davis <matt.davis@arm.com>
@MattDavis00 MattDavis00 force-pushed the feature-sqlite-key-info-manager branch from fa02a27 to 81f3f66 Compare August 31, 2021 16:20
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@ionut-arm ionut-arm merged commit d43e9b1 into parallaxsecond:feature-sqlite-kim Sep 1, 2021
@MattDavis00 MattDavis00 deleted the feature-sqlite-key-info-manager branch September 2, 2021 14:33
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.

None yet

2 participants