kestra-io / plugin-fs

https://kestra.io/plugins/plugin-fs/
Apache License 2.0
5 stars 7 forks source link

feat: enable encryption of the HTTP Request body output #100

Closed loicmathieu closed 6 months ago

loicmathieu commented 6 months ago

Fixes https://github.com/kestra-io/kestra/issues/3032

Can be tested with the following flow:

id: hello-http
namespace: company.team
tasks:
  - id: hello
    type: io.kestra.plugin.fs.http.Request
    uri: https://api.chucknorris.io/jokes/random
    encryptBody: true
  - id: log
    type: io.kestra.core.tasks.log.Log
    message: "{{json(outputs.hello.encryptedBody).value}}"

Note that, due to limitation of our serialization system, when encrypted we had to use a different output than when not encrypted.