Skip to content

Conversation

@str4d
Copy link
Owner

@str4d str4d commented Aug 27, 2024

As is the way, this was originally intended to expose methods on IdentityFileEntry, and instead turned into a complete refactor that made IdentityFileEntry superfluous (and now removed).

Closes #380.

@str4d str4d added this to the rage 0.11.0 milestone Aug 27, 2024
@codecov
Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 37.24138% with 91 lines in your changes missing coverage. Please review.

Project coverage is 50.57%. Comparing base (5e88d75) to head (5e57ef0).
Report is 9 commits behind head on main.

Files Patch % Lines
age/src/identity.rs 42.25% 41 Missing ⚠️
age/src/error.rs 0.00% 22 Missing ⚠️
age/src/encrypted.rs 50.00% 8 Missing ⚠️
age/src/lib.rs 0.00% 7 Missing ⚠️
age/src/plugin.rs 0.00% 6 Missing ⚠️
age/src/cli_common/recipients.rs 78.57% 3 Missing ⚠️
rage/src/bin/rage-keygen/main.rs 0.00% 3 Missing ⚠️
rage/src/bin/rage-keygen/error.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #518      +/-   ##
==========================================
- Coverage   50.94%   50.57%   -0.38%     
==========================================
  Files          42       42              
  Lines        4075     4117      +42     
==========================================
+ Hits         2076     2082       +6     
- Misses       1999     2035      +36     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@str4d str4d force-pushed the 380-expose-ife-methods branch from 968dce3 to 4deff61 Compare August 27, 2024 03:44
str4d added 6 commits August 27, 2024 03:47
We now merge plugin recipients together, so we only run each plugin once
during encryption.
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.
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.
@str4d str4d force-pushed the 380-expose-ife-methods branch from 4deff61 to 5e57ef0 Compare August 27, 2024 03:48
@str4d str4d merged commit d76c85d into main Aug 27, 2024
@str4d str4d deleted the 380-expose-ife-methods branch August 27, 2024 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API: IdentityFileEntry.into_identity and .to_recipient not accessible

1 participant