github str4d/rage v0.13.0
rage v0.13.0

2 hours ago

rage

Added

  • Support for new native age recipient types:
    • age1pq1..
  • --pq option to rage-keygen.
  • AGE_PQC_REQUIRED environment variable for rage and rage-mount, with the following allowed values:
    • YES requires post-quantum recipients for encryption (fail-closed), and rejects files with recognized classic recipient stanzas on decryption (fail-open on unknown stanza kinds).
    • ALLOW_ONLY_DECRYPT applies only the encryption requirement.
    • ALLOW_INSECURE (the default when unset or empty) does not apply any requirements (the previous behaviour).

Changed

  • MSRV is now 1.87.0.
  • MSRV for rage-mount (behind the mount feature flag) is now 1.88.0.
  • age1tag1.. and age1tagpq1.. recipients now produce version 2 tagged stanzas (p256tagv2 and mlkem768p256tagv2). Files encrypted to these recipients can only be decrypted by identities that support the new stanzas; plugins that only recognise the previous p256tag and mlkem768p256tag stanzas need to be updated.
  • Invalid native pq, tag, and tagpq recipients are now reported as errors instead of being passed to an external plugin with the same name.
  • rage-keygen now generates hybrid post-quantum keys by default. The prior classic identities can be generated with rage-keygen --pq=false.
  • rage and rage-mount now warn on standard error when an operation is allowed but would have been rejected by AGE_PQC_REQUIRED=YES. Set AGE_PQC_WARNINGS=VERBOSE for more detail, or AGE_PQC_WARNINGS=SILENCE_I_KNOW_ITS_NOT_SAFE to suppress warnings.
  • On Unix, rage -d -o FILE now creates new plaintext files with mode 0o600 before applying the umask. Existing files retain their permissions.
  • Unused implicit Cargo dependency features have been removed.

Fixed

  • Debian release builds no longer depend on Cargo's internal directory layout to locate generated shell completions and manpages. Packagers can set RAGE_ASSETS_DIR to choose where the build script writes these files.

age

Added

  • Support for new native age recipient types:
    • age::pq::{Identity, Recipient}
  • age::Decryptor::has_recipient_stanza_tag
  • legacy-decrypt and legacy feature flags. These gate the non-post-quantum APIs: legacy-decrypt exposes just decryption, while legacy also enables encryption. Default-enabled in this release, but expect these to be disabled by default in a future release.
  • age::EncryptError::LegacyEncryptionDisabled
  • age::cli_common::ReadError::{InvalidRecipientEncoding, LegacyEncryptionDisabled}

Changed

  • MSRV is now 1.87.0.
  • Migrated to base64 0.23, chacha20poly1305 0.11, curve25519-dalek 5, hmac 0.13, rand 0.10, rsa 0.10.
  • age::tag::Recipient now produces p256tagv2 stanzas instead of p256tag.
  • age::tagpq::Recipient now produces mlkem768p256tagv2 stanzas instead of mlkem768p256tag.
  • Identity implementations that only recognise the previous p256tag and mlkem768p256tag stanzas ignore the new ones, and need to be updated to decrypt files produced after this change.
  • The following APIs are now gated behind the new feature flags. Crate users that set default-features = false need to enable the corresponding flag to keep using them:
    • legacy-decrypt: age::x25519, and age::ssh (which also still requires the ssh feature flag).
    • legacy: age::tag, age::x25519::Identity::generate, and the std::str::FromStr and age::Recipient impls for age::x25519::Recipient and age::ssh::Recipient.
  • age::cli_common:
    • file_io::{StdoutWriter, OutputWriter} no longer expose buffered stdout contents in their Debug formatting.
    • read_recipients no longer tries an external plugin when a native recipient encoding is invalid or its encryption support is disabled. It instead returns ReadError::InvalidRecipientEncoding (which carries both the recipient and the reason it is invalid, and is now also returned in place of ReadError::InvalidRecipient when no plugin can parse the recipient), or ReadError::LegacyEncryptionDisabled.
    • ReadError now abbreviates long recipients when displayed.
  • age::scrypt::Recipient now returns the postquantum label in its label set. It still cannot be combined with other recipients.
  • Unused implicit Cargo dependency features have been removed.
  • Best-effort zeroization now covers more of the crate's buffers containing key material or plaintext.

Fixed

  • Bech32 key parsing again rejects nonzero or excessive trailing padding bits. This fixes a regression introduced in 0.12.0: age 0.11.x rejected these keys.
  • Native recipient and identity parsers require the expected Bech32 prefix case: lowercase for recipients and uppercase for identities.
  • age::armor::ArmoredWriter no longer breaks line wrapping when flushed partway through a file.

Deprecated

  • age::x25519 encryption:
    • x25519::Identity::generate (use age::pq::Identity::generate instead).
    • x25519::Recipient
  • age::tag encryption:
    • tag::Recipient (use age::tagpq::Recipient instead).
  • age::ssh encryption:
    • ssh::Recipient (use age::pq instead).

age-plugin 0.8.0

Changed

  • MSRV is now 1.87.0.
  • Migrated to age-core 0.13.
  • Best-effort zeroization has been added to the crate's own buffers in:
    • age_plugin::print_new_identity
    • age_plugin::run_state_machine

age-core

Added

  • age_core::primitives::hkdf_into

Changed

  • MSRV is now 1.87.0.
  • Migrated to chacha20poly1305 0.11, hpke 0.15.
  • age_core::plugin::Connection now wipes its stanza-parsing buffer when the connection is dropped, including after a read or parse error.
  • age_core::primitives::{aead_decrypt, hpke_open} now return plaintext in a secrecy::SecretSlice<u8> instead of a Vec<u8>. Use ExposeSecret to borrow the bytes; the buffer is wiped on drop.
  • age_core::primitives::hpke_open now returns hpke::HpkeError::OpenError for ciphertext shorter than an authentication tag, even if decapsulation would also fail.
  • Unused implicit Cargo dependency features have been removed.

Fixed

  • age_core::primitives::bech32_decode now rejects nonzero or excessive trailing padding bits even when the Bech32 checksum is valid.

New Contributors

Full Changelog: v0.12.1...v0.13.0

Don't miss a new rage release

NewReleases is sending notifications on new releases.