Repository navigation
Release v3.165.15
Environment secrets now validate their encryption parameters, and new or rotated passphrase stores always use the current settings.
Changed
- Environments created with an older, lower iteration count still open, but storing a new secret in one asks you to run
cratis env change-passphrasefirst to bring it up to the current settings - The optional
kdfargument ofProjectEnvironment.CreateandPassphraseSecretsProvider.Initializeis no longer used; stores are always created with the current settings, and stores created through the library with fewer than 100,000 iterations can no longer be opened
Fixed
- Key derivation parameters read from an environment file are checked before use: only
pbkdf2-sha256, a 32-byte salt and between 100,000 and 10,000,000 iterations are accepted, and anything else is refused without changing the file - Creating an environment or running
cratis env change-passphrasealways writes the current iteration count and a fresh salt instead of copying the parameters of the existing file cratis env change-passphrasechecks the current passphrase even when the environment has no secrets yet- An empty passphrase, including an empty or blank passphrase file, is refused when creating an environment or choosing a new passphrase