kestra-io / plugin-crypto Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://kestra.io/plugins/plugin-crypto/
License: Apache License 2.0
Home Page: https://kestra.io/plugins/plugin-crypto/
License: Apache License 2.0
As documented here the openpgp.encrypt#recipients
properties should be dynamic.
But when we try somethings like this:
recipients:
- "{{ namespace.recipient }}"
the {{ }}
part is not evaluated
No response
No response
No response
Openpgp encrypttask should successfully encrypt the provided file.
id: "encrypt"
type: "io.kestra.plugin.crypto.openpgp.Encrypt"
from: "{{ inputs.file }}"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK----- ...
recipients:
- <my_email_address>
The task errors out with the following error:
2024-02-17 17:10:44.458No (suitable) public key for encryption to <my_email_address> found
2024-02-17 17:10:44.458org.bouncycastle.openpgp.PGPException: No (suitable) public key for encryption to <my_email_address> found
at name.neuhalfen.projects.crypto.bouncycastle.openpgp.BuildEncryptionOutputStreamAPI$WithAlgorithmSuiteImpl$ToImpl.extractValidKey(BuildEncryptionOutputStreamAPI.java:414)
at name.neuhalfen.projects.crypto.bouncycastle.openpgp.BuildEncryptionOutputStreamAPI$WithAlgorithmSuiteImpl$ToImpl.toRecipients(BuildEncryptionOutputStreamAPI.java:441)
at io.kestra.plugin.crypto.openpgp.Encrypt.run(Encrypt.java:144)
at io.kestra.plugin.crypto.openpgp.Encrypt.run(Encrypt.java:26)
at io.kestra.core.runners.Worker$WorkerThread.run(Worker.java:729)
id: "encrypt"
type: "io.kestra.plugin.crypto.openpgp.Encrypt"
from: "{{ inputs.file }}"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK----- ...
recipients:
- <my_email_address>
signPublicKey: |
-----BEGIN PGP PUBLIC KEY BLOCK----- ...
signPrivateKey: |
-----BEGIN PGP PRIVATE KEY BLOCK-----
signPassphrase: my-passphrase
signUser: [email protected]
I get the following error:
2024-02-17 17:11:08.836 Collection already contains a key with a keyID for the passed in ring.
2024-02-17 17:11:08.836 java.lang.IllegalArgumentException: Collection already contains a key with a keyID for the passed in ring.
at org.bouncycastle.openpgp.PGPPublicKeyRingCollection.addPublicKeyRing(Unknown Source)
at name.neuhalfen.projects.crypto.bouncycastle.openpgp.keys.keyrings.InMemoryKeyring.addPublicKeyRing(InMemoryKeyring.java:139)
at name.neuhalfen.projects.crypto.bouncycastle.openpgp.keys.keyrings.InMemoryKeyring.addPublicKey(InMemoryKeyring.java:70)
at io.kestra.plugin.crypto.openpgp.Encrypt.run(Encrypt.java:126)
at io.kestra.plugin.crypto.openpgp.Encrypt.run(Encrypt.java:26)
at io.kestra.core.runners.Worker$WorkerThread.run(Worker.java:729)
Note: I have used the public and private keys as generated on this website: https://webencrypt.org/openpgpjs/
id: "encrypt"
type: "io.kestra.plugin.crypto.openpgp.Encrypt"
from: "{{ inputs.file }}"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK----- ...
recipients:
- <my_email_address>
id: "encrypt"
type: "io.kestra.plugin.crypto.openpgp.Encrypt"
from: "{{ inputs.file }}"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK----- ...
recipients:
- <my_email_address>
signPublicKey: |
-----BEGIN PGP PUBLIC KEY BLOCK----- ...
signPrivateKey: |
-----BEGIN PGP PRIVATE KEY BLOCK-----
signPassphrase: my-passphrase
signUser: [email protected]
Note: I have used the public and private keys as generated on this website: https://webencrypt.org/openpgpjs/
Provided above
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.