Skip to content

Release v3.165.15

Choose a tag to compare

@github-actions github-actions released this 01 Dec 03:54
05d1fda

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-passphrase first to bring it up to the current settings
  • The optional kdf argument of ProjectEnvironment.Create and PassphraseSecretsProvider.Initialize is 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-passphrase always writes the current iteration count and a fresh salt instead of copying the parameters of the existing file
  • cratis env change-passphrase checks 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