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

Support SoftHSMv2 sql database format #108

Open
abbra opened this issue Oct 30, 2024 · 2 comments
Open

Support SoftHSMv2 sql database format #108

abbra opened this issue Oct 30, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@abbra
Copy link

abbra commented Oct 30, 2024

Allow reading/writing in SoftHSMv2 sql database format to provide transparent migration path.

This would help FreeIPA to migrate existing environments where we use SoftHSM for DNSSEC to use kryoptic without forcing data migration.

@simo5
Copy link
Member

simo5 commented Oct 30, 2024

@abbra do we have a spec for their format somewhere?

@abbra
Copy link
Author

abbra commented Oct 30, 2024

I'm afraid there is no a particular specification anywhere. Design for SoftHSMv2 only has this: https://wiki.opendnssec.org/softhsm2-design/#secure-object-store. The original implementation was added in 2013 by softhsm/SoftHSMv2@9d4acf2 and the interface is largely the same.

src/lib/object_store is where the code is. DB.cpp, DBObject.cpp and DBToken.cpp are implementation of the database interface, DB objects, and tokens represented as DB objects.

There is also a dump program that allows to dump existing database, SQL variant is implemented in src/bin/dump/softhsm2-dump-db.cpp. This might be interesting because it does not use the object store and operates on the SQL level directly.

@simo5 simo5 added enhancement New feature or request help wanted Extra attention is needed labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants