Repository navigation
Releases
Releases Β· str4d/rage
rage v0.12.1
rage
Fixed
- Armored files that contain an empty final line are now correctly rejected.
age
Fixed
age::armor::ArmoredReader:- It now correctly implements the intended strict parsing profile (initially implemented in 0.9.0) by rejecting an empty final line.
- The async API now correctly rejects some classes of truncated files that previously would cause it to hang.
rage v0.11.4
rage
Fixed
- Armored files that contain an empty final line are now correctly rejected.
age 0.11.5
Fixed
age::armor::ArmoredReader:- It now correctly implements the intended strict parsing profile (initially implemented in 0.9.0) by rejecting an empty final line.
- The async API now correctly rejects some classes of truncated files that previously would cause it to hang.
rage v0.12.0
rage
Added
- Support for the new native age recipient types:
age1tag1..age1tagpq1..
Changed
- MSRV is now 1.74.0.
age
Added
- Support for new native age recipient types:
age::tag::Recipient(encryption-only)age::tagpq::Recipient(encryption-only)
age::encrypted::EncryptedIdentityage::plugin::ResolveError
Changed
- MSRV is now 1.74.0.
- Migrated to
base64 0.22,i18n-embed 0.16. age::IdentityFile::into_identitiesnow returnsResult<Vec<Box<dyn crate::Identity + Send + Sync>>, DecryptError>instead ofResult<Vec<Box<dyn crate::Identity>>, DecryptError>. This re-enables cross-thread uses ofIdentityFile, which were unintentionally disabled in 0.11.0.age::plugin:- The following methods now returns
Result<Self, ResolveError>:Identity::default_for_pluginRecipientPluginV1::newIdentityPluginV1::new
- The following methods now returns
- All existing error enums nameable in the public API are now non-exhaustive:
age::{EncryptError, DecryptError}age::IdentityFileConvertErrorage::armor::ArmoredReadErrorage::cli_common::ReadErrorage::ssh::ParseRecipientKeyError
- Removed the following error enum variants:
age::DecryptError::MissingPluginage::EncryptError::MissingPluginage::cli_common::ReadError::MissingPlugin
age-plugin 0.7.0
Changed
- MSRV is now 1.74.0.
- Migrated to
age-core 0.12.
age-core
Added
age_core::primitives:bech32_encodebech32_encode_to_fmtbech32_decodehpke_sealhpke_open
Changed
- MSRV is now 1.74.0.
New Contributors
- @mkfmnn made their first contribution in #567
- @jeffs made their first contribution in #604
- @holtrop made their first contribution in #620
Full Changelog: v0.11.3...v0.12.0
rage v0.11.3
Fixed
- Parsing of recipient and identity files now returns an error if the input is larger than the limit, instead of silently truncating.
rage v0.11.2
Changed
- Recipient and identity files are now limited to at most 16 MiB, and SSH keys are now limited to at most 16 kiB, matching the Go implementation.
Fixed
- Plugin encryption and decryption no longer panic when a plugin sends certain invalid responses.
- Decryption with an encrypted SSH key no longer panics when given an empty passphrase.
rage v0.11.1
Security
Fixed a security vulnerability that could allow an attacker to execute an arbitrary binary under certain conditions. See GHSA-4fg7-vxc8-qx5w. Plugin names are now required to only contain alphanumeric characters or the four special characters +-._. Thanks to ⬑-49016 for reporting this issue.
rage v0.10.1
Security
Backport of the fix for GHSA-4fg7-vxc8-qx5w.
rage v0.9.3
Security
Backport of the fix for GHSA-4fg7-vxc8-qx5w.
rage v0.11.0
rage
Added
- Partial French translation!
Fixed
- [Unix] Files can now be encrypted with
rage --passphrasewhen piped over stdin, without requiring an explicit-argument asINPUT.
age
Added
- New streamlined APIs for use with a single recipient or identity and a small amount of data (that can fit entirely in memory):
age::encryptage::encrypt_and_armorage::decrypt
age::Decryptor::{decrypt, decrypt_async, is_scrypt}age::IdentityFile::to_recipientsage::IdentityFile::with_callbacksage::IdentityFile::write_recipients_fileage::IdentityFileConvertErrorage::NoCallbacksage::scrypt, providing recipient and identity types for passphrase-based encryption.- Partial French translation!
Changed
- Migrated to
i18n-embed 0.15,secrecy 0.10. age::Encryptor::with_recipientsnow takes recipients by reference instead of by value. This aligns it withage::Decryptor(which takes identities by reference), and also means that errors with recipients are reported earlier. This causes the following changes to the API:Encryptor::with_recipientstakesimpl Iterator<Item = &'a dyn Recipient>instead ofVec<Box<dyn Recipient + Send>>.- Verification of recipients and generation of stanzas now happens in
Encryptor::with_recipientsinstead ofEncryptor::wrap_outputandEncryptor::wrap_async_output. Encryptor::with_recipientsreturnsResult<Self, EncryptError>instead ofOption<Self>, andEncryptor::{wrap_output, wrap_async_output}returnio::Result<StreamWriter<W>>instead ofResult<StreamWriter<W>, EncryptError>.age::EncryptErrorhas a new variantMissingRecipients, taking the place of theNonethatEncryptor::with_recipientscould previously return.
age::Decryptoris now an opaque struct instead of an enum withRecipientsandPassphrasevariants.age::IdentityFilenow has aC: Callbacksgeneric parameter, which defaults toNoCallbacks.age::IdentityFile::into_identitiesnow returnsResult<Vec<Box<dyn crate::Identity>>, DecryptError>instead ofVec<IdentityFileEntry>.age::Recipient::wrap_file_keynow returns(Vec<Stanza>, HashSet<String>): a tuple of the stanzas to be placed in an age file header, and labels that constrain how the stanzas may be combined with those from other recipients.age::plugin::RecipientPluginV1now supports the labels extension.
Fixed
age::cli_common::read_identitiesonce again correctly parses identity files that are a single line without a trailing newline. This broke in 0.10.0 due to an unrelated refactor.
Removed
age::decryptor::PassphraseDecryptor(useage::Decryptorwithage::scrypt::Identityinstead).age::decryptor::RecipientsDecryptor(useage::Decryptorinstead).age::IdentityFileEntry
age-plugin 0.6.0
Added
age_plugin::PluginHandlerimpl age_plugin::identity::IdentityPluginV1 for std::convert::Infallibleimpl age_plugin::recipient::RecipientPluginV1 for std::convert::Infallible
Changed
- Migrated to
age-core 0.11. age_plugin::recipient::RecipientPluginV1has a newlabelsmethod. Existing implementations of the trait should either returnHashSet::new()to maintain existing compatibility, or return labels that apply the desired constraints.age_plugin::run_state_machinenow supports therecipient-v1labels extension.
Fixed
age_plugin::run_state_machinenow takes animpl age_plugin::PluginHandlerargument, instead of its previous arguments.- This fixes the change from the previous release, because the type parameters were basically impossible to set correctly when attempting to pass
None.
- This fixes the change from the previous release, because the type parameters were basically impossible to set correctly when attempting to pass
age-core
Added
age_core::format:FileKey::newFileKey::init_with_mutFileKey::try_init_with_mutis_arbitrary_string
Changed
- Migrated to
secrecy 0.10. age::plugin::Connection::unidir_receivenow takes an additional argument to enable handling an optional fourth command.
New Contributors
- @AnomalRoil made their first contribution in #499
- @pavelzw made their first contribution in #492
- @BoostCookie made their first contribution in #513
Full Changelog: v0.10.0...v0.11.0
rage v0.10.0
rage
Added
- Russian translation!
rage-keygen -y IDENTITY_FILEto convert identity files to recipients.- Elvish completions to the Debian package. These are not automatically discovered; Elvish users will need to manually import them.
- Localized manpages to the Debian package.
Changed
- MSRV is now 1.65.0.
- Migrated from
gumdroptoclapfor argument parsing. -R/--recipients-fileand-i/--identitynow support "read-once" files, like those used by process substitution (-i <(other_binary get-age-identity)) and named pipes.- The filename
-(hyphen) is now treated as an explicit request to read from standard input when used with-R/--recipients-fileor-i/--identity. It must only occur once across the-R/--recipients-fileand-i/--identityflags, and the input file. It cannot be used if the input file is omitted.
Fixed
- OpenSSH private keys passed to
-i/--identitythat contain invalid public keys are no longer ignored when encrypting, and instead cause an error. - Weak
ssh-rsapublic keys that are smaller than 2048 bits are now rejected. rage-keygenno longer overwrites existing key files with the-o/--outputflag. This was its behaviour prior to 0.6.0, but was unintentionally changed whenragewas modified to overwrite existing files. Key file overwriting can still be achieved by omitting-o/--outputand instead piping stdout to the file.rage-keygennow prints fatal errors directly instead of them being hidden behind theRUST_LOG=errorenvironment variable. It also now sets its return code appropriately instead of always returning 0.- The Debian package now uses the correct installation paths for fish and Zsh completions.
age
Added
- Russian translation!
age::cli_common:file_io:FileReaderimpl Debug for {LazyFile, OutputFormat, OutputWriter, StdoutWriter}
StdinGuardread_recipients
age::identity::IdentityFile::from_input_reader(behindcli-commonfeature flag).impl Eq for age::ssh::{ParseRecipientKeyError, UnsupportedKey}impl {Debug, PartialEq, Eq, Hash} for age::x25519::Recipient
Changed
- MSRV is now 1.65.0.
- Migrated to
base64 0.21,rsa 0.9. age::cli_common:file_io:InputReader::Fileenum variant now containsFileReaderinstead ofstd::fs::File.OutputWriter::newnow takes anallow_overwriteboolean argument. IfOutputWriterwill write to a file, this boolean enables the caller to control whether the file will be overwritten if it exists (instead of the implicit behaviour that was previously changed in 0.6.0).
read_identitiesnow takes an&mut StdinGuardargument, andfilenamesmay now contain at most one entry of"-", which will be interpreted as reading from standard input.ReadErrorhas new variants:EncryptedIdentitiesInvalidRecipientInvalidRecipientsFileMissingRecipientsFileMultipleStdinRsaModulusTooLargeRsaModulusTooSmall
age::ssh:ParseRecipientKeyErrorhas new variants:RsaModulusTooLargeRsaModulusTooSmall
- The following trait implementations now return
Err(ParseRecipientKeyError::RsaModulusTooLarge)instead ofErr(ParseRecipientKeyError::Unsupported(_))when encountering an RSA public key with a modulus larger than 4096 bits:impl FromStr for Recipientimpl TryFrom<Identity> for Recipient
Fixed
age::Encryptor::with_user_passphrasewill now re-measure thescryptwork factor until it is measurable, instead of setting the work factor to maximum.age::cli_common:UiCallbacks::confirmno longer requires erasing the confirmation message before it will accept a response.UiCallbacks::request_public_stringno longer prepends the description to the response string.
- Weak
ssh-rsapublic keys that are smaller than 2048 bits are now rejected from all string-parsing APIs. TheRecipient::SshRsaenum variant can still be manually constructed with such keys; this will be fixed in a future crate refactor.
age-plugin 0.5.0
Changed
- MSRV is now 1.65.0.
- Migrated to
age-core 0.10. age_plugin::run_state_machinenow takes optional arguments, to enable the creation of recipient-only or identity-only plugins.
age-core
Added
impl Eq for age_core::format::Stanza
Changed
- MSRV is now 1.65.0.
New Contributors
- @WesleyAC made their first contribution in #400
- @thibmeu made their first contribution in #406
- @gibbz00 made their first contribution in #420
- @ehaupt made their first contribution in #467
- @hexanova made their first contribution in #471
Full Changelog: v0.9.2...v0.10.0