Skip to content

Only one identity sent to plugin in "identity-v1" phase when multiple are provided #414

@olastor

Description

@olastor

Environment

  • OS: Linux
  • rage version: 0.9.2

What were you trying to do

Decrypting a file with a custom plugin and multiple identities. The two identities were in a file "ids.txt" (one per line) as such:

AGE-PLUGIN-MY-PLUGIN<identity 1 data>
AGE-PLUGIN-MY-PLUGIN<identity 2 data>

During encryption via cat secret.txt | rage -e -i ids.txt -o secret.txt.enc both identities were correctly sent from the controller to the plugin:

-> add-identity AGE-PLUGIN-MY-PLUGIN<identity 1 data>

-> add-identity AGE-PLUGIN-MY-PLUGIN<identity 2 data>

[...]

What happened

When decrypting using the same identity file via cat secret.txt.enc | rage -d -i ids.txt the controller only sends the first identity from the file:

-> add-identity AGE-PLUGIN-MY-PLUGIN<identity 1 data>

-> recipient-stanza 0 my-plugin ...

[more stanzas and grease]

-> done

The second identity was not sent. If I understand the spec correctly, the plugin should get all identities in phase 1 of "identity-v1".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions