Description
Posted as a comment by Matt in #570.
[[provider]]
name="mbed-crypto-provider"
I know we originally made the provider name globally optional so that existing configs would not fail with new versions of Parsec. Would it be better for it to be optional for OnDisk
KIM implementations (to ensure config stability), and required for SQLite
KIM configs? This way it forces the user to edit the config and set the provider names with their "preferred" naming scheme; preventing the (probably common) case of a user changing from the OnDisk
to SQLite
KIM without reading any of the provider naming warnings (quoted below).
In my mind, by going from OnDisk
-> SQLite
the user is "opting-in" to a new feature-set and its requirements. The only concern from the stability requirements set out is New options should be optional
. I would argue that, transitively, provider name in this case is optional as the manager_type="OnDisk"
would have to be mutated to manager_type="SQLite"
in order for provider name to become a required field.
Parsec Config Stability:
Old configuration files should still work with future stable Parsec versions, with the same default for optional options.
Configuration options should not disappear in future stable Parsec versions. Configuration defaults should remain the same. New options should be optional.
Current provider name warnings:
⚠ WARNING: Provider name cannot change.
⚠ WARNING: Choose a suitable naming scheme for your providers now.
⚠ WARNING: Provider name defaults to "mbed-crypto-provider" if not provided, you will not be able to change the provider's name from this if you decide to use the default.
⚠ WARNING: Changing provider name after use will lead to loss of existing keys.
On the note of these warnings. WARNING: Provider name cannot change.
would probably read nicer as WARNING: Provider name should not change once set.
. And maybe loss of existing keys
to LOSS OF EXISTING KEYS
to really drive the point home and draw the attention of skim readers.
Originally posted by @MattDavis00 in #570 (comment)