Commit graph

1401 commits

Author SHA1 Message Date
Jack Grigg
d35d442f91 v0.11.0 2024-11-03 10:42:17 +00:00
Jack Grigg
e3a5c5fe8c Update user handles in readmes 2024-11-03 10:41:37 +00:00
Jack Grigg
25e050362c fuzz: Fix targets 2024-11-03 10:41:22 +00:00
Jack Grigg
597f1aa05f
Merge pull request #544 from str4d/pre-release-changes
Pre-release changes
2024-11-03 09:30:56 +00:00
Jack Grigg
ae5a392925 Provide a better error on invalid filename or missing directory
Closes str4d/rage#530.
2024-11-03 08:22:43 +00:00
Jack Grigg
1d2b3bfa37 age: Merge error cases in cli_common::file_io 2024-11-03 08:04:59 +00:00
Jack Grigg
bca6916bac Update docs to permit multiple stanzas from recipients
Closes str4d/rage#524.
2024-11-03 07:30:16 +00:00
Jack Grigg
d0889c90af age: Document crate's calling contract of Identity::unwrap_stanza
Closes str4d/rage#509.
2024-11-03 07:04:20 +00:00
Jack Grigg
93fa28ad78 Migrate to secrecy 0.10 2024-11-03 05:38:51 +00:00
Jack Grigg
a59f0479d0 cargo update 2024-11-03 04:41:41 +00:00
Jack Grigg
baf277a749
Merge pull request #542 from str4d/plugin-old-client-fix
age-plugin: Fix no-label recipient plugins with old clients
2024-10-20 05:26:20 +01:00
Jack Grigg
e8f14448e4 Update cargo-vet 2024-10-20 04:17:31 +00:00
Jack Grigg
5bae3f1eae age-plugin: Fix no-label recipient plugins with old clients 2024-10-19 23:56:48 +00:00
Jack Grigg
bdec23fe8d
Merge pull request #532 from str4d/dependabot/github_actions/codecov/codecov-action-4.6.0
build(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0
2024-10-07 04:31:42 +01:00
dependabot[bot]
a5661495f6
build(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4.5.0...v4.6.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 03:14:33 +00:00
Jack Grigg
504d784931
Merge pull request #502 from str4d/dependabot/github_actions/codecov/codecov-action-4.5.0
build(deps): bump codecov/codecov-action from 4.4.1 to 4.5.0
2024-09-03 18:27:17 -07:00
Jack Grigg
deb59935c1
Merge pull request #527 from str4d/526-macports
rage: Add MacPorts package to installation list
2024-09-03 18:08:18 -07:00
Jack Grigg
5237281929 rage: Add MacPorts package to installation list
Closes str4d/rage#526.
2024-09-04 01:06:05 +00:00
dependabot[bot]
5955e489b7
build(deps): bump codecov/codecov-action from 4.4.1 to 4.5.0
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.4.1 to 4.5.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4.4.1...v4.5.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-31 13:04:31 +00:00
Jack Grigg
53d018a9c2
Merge pull request #525 from str4d/333-streamlined-apis
age: Add streamlined APIs for encryption and decryption
2024-08-30 18:04:58 -07:00
Jack Grigg
195b86b6bc age: Add streamlined APIs for encryption and decryption
Closes str4d/rage#333.
2024-08-30 11:34:01 -04:00
Jack Grigg
9af479086b
Merge pull request #523 from str4d/recipients-by-ref
age: Take recipients by reference in `Encryptor::with_recipients`
2024-08-30 08:29:12 -07:00
Jack Grigg
9ab26bf360 age: Take recipients by reference in Encryptor::with_recipients
This aligns it with `Decryptor`, and means that recipients can be
used to encrypt multiple files without cloning.

Part of str4d/rage#353.
2024-08-30 10:40:34 -04:00
Jack Grigg
8b0b65e98a
Merge pull request #522 from str4d/release-workflow-0.11
Release workflow updates for 0.11.0
2024-08-28 09:22:54 -07:00
Jack Grigg
9343af9324 CI: Generate Artifact Attestations for release artifacts 2024-08-28 16:10:33 +00:00
Jack Grigg
05f996c919 CI: Add ubuntu-24.04 to release testing 2024-08-28 15:47:41 +00:00
Jack Grigg
e67f4016dc CI: Remove macos-11 from release testing
It was removed by GitHub in Q2 2024.
2024-08-28 15:45:59 +00:00
Jack Grigg
0cdde60315 CI: Build releases for arm64-darwin 2024-08-28 15:44:47 +00:00
Jack Grigg
917fc489f6 CI: Build x86_64-darwin release with macos-13 runner
`macos-latest` now points to `macos-14` which is an ARM64 chip.
2024-08-28 15:42:21 +00:00
Jack Grigg
c5f0d61400
Merge pull request #521 from str4d/374-pipe-input-with-passphrase
rage: Allow piping input when encrypting with passphrase on Unix
2024-08-28 07:27:29 -07:00
Jack Grigg
a709c93c92 rage: Allow piping input when encrypting with passphrase on Unix
Closes str4d/rage#374.
2024-08-28 14:17:03 +00:00
Jack Grigg
51760e34ba
Merge pull request #513 from BoostCookie/betterCompletions
Better completions
2024-08-28 05:44:15 -07:00
Stefan Gehr
d483e0b069
cargo fmt --all 2024-08-28 10:41:42 +02:00
Stefan Gehr
5eb44a157e
Use DirPath for output of rage-keygen as overwriting is not allowed 2024-08-28 10:41:14 +02:00
Jack Grigg
b179b7cedd
Merge pull request #520 from str4d/383-scrypt-enc-work-factor
age: Add `scrypt::Recipient::set_work_factor` for overriding default
2024-08-27 22:24:42 -07:00
Jack Grigg
67a539791b age: Adjust scrypt::Identity::set_max_work_factor docs
They are now consistent with `scrypt::Recipient::set_work_factor`.
2024-08-28 05:16:32 +00:00
Jack Grigg
e84159365d age: Add scrypt::Recipient::set_work_factor for overriding default
This can only be configured by using `scrypt::Recipient` directly in a
library context. The helper method `Encryptor::with_user_passphrase`
does not expose this, and `rage` continues to use the default.

Closes str4d/rage#383.
2024-08-28 05:16:32 +00:00
Jack Grigg
84eacb7271
Merge pull request #519 from str4d/484-identity-file-newline-fix
age: Don't exit peeking state if entire identity file fits in the buffer
2024-08-27 20:05:46 -07:00
Jack Grigg
5a57e120a2 age: Don't exit peeking state if entire identity file fits in the buffer
This ensures we can call `PeekableReader::reset` when the file is a
single line without a trailing newline character, which rage-keygen does
not generate but users can.

Closes str4d/rage#484.
2024-08-28 02:56:58 +00:00
Jack Grigg
303fa6ebe1 rage: Add CLI test exposing bug with single-line identity files
Specifically, a single line and no trailing newline.
2024-08-28 02:41:36 +00:00
Jack Grigg
d76c85d585
Merge pull request #518 from str4d/380-expose-ife-methods
Refactor `IdentityFile` APIs
2024-08-26 20:57:55 -07:00
Jack Grigg
5e57ef07ca age: Return Box<dyn Identity> from IdentityFile::into_identities
This is doable now that `IdentityFile` stores callbacks, and is more
useful to crate users than `IdentityFileEntry`. The one place we were
relying on the latter was in `rage-keygen` to distinguish plugin
identities (which cannot be re-encoded as recipients); we now move that
functionality into the `age` crate.
2024-08-27 03:47:40 +00:00
Jack Grigg
f243d63c31 age: Improve documentation of Callbacks 2024-08-27 03:47:40 +00:00
Jack Grigg
ae2434216d age: Store C: Callbacks inside IdentityFile
This removes the need for explicit `callbacks` arguments in methods that
may act on plugin identities, and instead enables the caller to choose
whether or not to provide callbacks independently of plugin support
being compiled in. Enabling plugin support without providing callbacks
now has well-defined fallback behaviour via the default `NoCallbacks`
struct.
2024-08-27 03:47:40 +00:00
Jack Grigg
8dcdacc1ac age: Make recipients from encrypted identities more efficient
We now merge plugin recipients together, so we only run each plugin once
during encryption.
2024-08-27 03:47:40 +00:00
Jack Grigg
52fd675bbd age: Add IdentityFile::to_recipients 2024-08-27 03:47:40 +00:00
Jack Grigg
2f9cf3f86f age: Extract RecipientsAccumulator from cli_common::read_recipients 2024-08-27 03:47:40 +00:00
Jack Grigg
d31fb568b7 age: Pass entire IdentityFile to parse_identity_files closure 2024-08-23 22:49:47 +00:00
Jack Grigg
5086bd65d9 age: Remove two unnecessary clones from IdentityFileEntry decryption 2024-08-23 20:32:28 +00:00
Jack Grigg
5e88d75195
Merge pull request #517 from str4d/updates-0.11
Updates for 0.11.0
2024-08-23 11:39:48 -07:00