Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...


Panel

Table of Contents


Disclaimer

...

Template NameExtension NameExtension Version
UDMG PGPue-mft-pgp1.01.1

Refer to Changelog for version history information.

Software Requirements

This integration requires a Universal Agent and a Python runtime to execute the Universal Task.

...

Requires Python 3.7.0 or higher.

Requires _ bz2 python library and the cryptography and cffi python modules. For bz2 support on Linux, the following package must be installed bzip2-devel or libbz2-dev, the exact name depends on the perating system flavor and version.

Tested with the Universal Agent bundled Python distribution which provides all required dependencies.

...

  • Universal Agent for Windows x64 Version 7.13.0.0 and later with python options installed.
  • Universal Agent for Linux Version 7.13.0.0 and later with python options installed.
    Note: For Debian Linux, the Agent software package may not contain all dependencies. For versions below 7.1.0.3 and 7.2.0.2, it is required to install both the Agent bundled Python and the Debian system Python 3.7.

Software Requirements for Universal Controller

Universal Controller Version 7.13.0.0 and later.

Network and Connectivity Requirements

...

Example for encrypting a file:

...

Image Added

The configuration on UDMG for the public key:

...

Image Added

Decrypt a file

Example for decrypting a file:

...

Image Added

The configuration on UDMG for the private key:

...

Image Added

Task Output

Output Only Fields

...

Exit CodeStatus Classification CodeStatus Classification DescriptionStatus Description
0SUCCESSSuccessful ExecutionSUCCESS
1FAILFailed ExecutionFAIL: < Error Description >
2AUTHENTICATION_ERRORBad credentialsAUTHENTICATION_ERROR: Account cannot be authenticated.
3AUTHORIZATION_ERRORInsufficient PermissionsAUTHORIZATION_ERROR: Account is not authorized to perform the requested action.
10CONNECTION_ERRORBad connection data or connection timed outCONNECTION_ERROR: < Error Description >
11CONNECTION_ERRORExtension specific connection errorCONNECTION_ERROR: 404 page not found
20DATA_VALIDATION_ERRORInput fields Validation ErrorDATA_VALIDATION_ERROR: 400 bad request:
21PGP_ERRORPGP processing errorPGP_ERROR: general error during processing: []
22PGP_ERRORPGP processing ErrorPGP_ERROR: error during encryption: []
23PGP_ERRORPGP processing ErrorPGP_ERROR: error during decryption: []
30PGP_ERRORPGP processing ErrorPGP_ERROR: SSL cipher not supported: []
31PGP_ERRORPGP processing ErrorPGP_ERROR: insecure cipher not allowed: []
32PGP_ERRORPGP processing ErrorPGP_ERROR: not implemented feature: []
100SUCCESSSuccessful Execution with WarningSUCCESS: Encryption success but not using any of the preferred compression algorithms

See description of the Transfer Error Code: https://doc.waarp.org/waarp-gateway/0.57.1/fr/reference/errorcodes.html

Extension Output

In the context of a workflow, subsequent tasks can rely on the information provided by this integration as Extension Output.

...

An example of the Extension Output for file encryption is presented below.

Panel
{
    "exit_code": 0,
    "status_description": "SUCCESS: MFT Encrypt executed successfully!",
    "changed": true,
    "invocation": {
        "extension": "ue-mft-pgp",
        "version": "1.0.0",
        "fields": {
            "action": "Encrypt",
            "mft_server": "http://localhost:9180/api",
            "credentials_username": "****",
            "credentials_password": "****",
            "input_file": "/atests/testdata/export.md",
            "output_file": "",
            "private_key_name": null,
            "public_key_name": "test1.pub",
            "post_action": null,
            "archive_path": null,
            "armor": true,
            "use_embedded_filename": true
        }
    },
    "result": {
        "files": [
            {
                "encrypted_file": "/atests/testdata/export.md.asc",
                "decrypted_file": "/atests/testdata/export.md",
                "embedded_filename": null
            }
        ]
    }
}


An example of the Extension Output for file decryption is presented below.

Panel
{
    "exit_code": 0,
    "status_description": "SUCCESS: MFT Decrypt executed successfully!",
    "changed": true,
    "invocation": {
        "extension": "ue-mft-pgp",
        "version": "1.0.0",
        "fields": {
            "action": "Decrypt",
            "mft_server": "http://localhost:9180/api",
            "credentials_username": "****",
            "credentials_password": "****",
            "input_file": "/atests/testdata/export.md.asc",
            "output_file": "export.txt",
            "private_key_name": "test1.key",
            "public_key_name": null,
            "post_action": "Delete",
            "archive_path": null,
            "armor": false,
            "use_embedded_filename": true
        }
    },
    "result": {
        "files": [
            {
                "encrypted_file": "/atests/testdata/export.md.asc",
                "decrypted_file": "export.txt",
                "embedded_filename": "export.md"
            }
        ]
    }
}

An example of a Set Variable Action to fetch the decrypted file name from the Extension output with a function:

${_outputJsonPath('EXTENSION', '$.result.files[0].decrypted_file')}

Image Added

See Creating a Set Variable Action within a Task or Workflow and Functions.

STDOUT and STDERR

STDOUT and STDERR provide additional information to User. The populated content can be changed in future versions of this extension without notice. Backward compatibility is not guaranteed.

...

This document references the following documents.

Document LinkDescription
Universal TemplatesUser documentation for creating, working with and understanding Universal Templates and Integrations.
Universal TasksUser documentation for creating Universal Tasks in the Universal Controller user interface.
CredentialsUser documentation for creating and working with credentials.
Resolvable Credentials Permitted PropertyUser documentation for Resolvable Credentials Permitted Property.
PGP Key Management (UDMG Server CLI)Management of PGP keys with the command line interface
PGP Key Management (UDMG Server Web Services)Management of PGP keys with the web services


Anchor
Changelog
Changelog
Changelog

ue-mft-pgp-1.1.1 (2023-02-02)

  • Fix: Warning for preferred compression = Uncompressed (#31672)

ue-mft-pgp-1.1.0 (2023-01-31)

  • Add: use preferred compression algorithm from public key for encryption. (#31273)
  • Add: upgrade PGPy to 0.6 . (#31273)

ue-mft-pgp-1.0.2 (2023-01-12)

  • Fix: Correct the handling of binary/ascii mode for GPG message content. (#31308)

ue-mft-pgp-1.0.1 (2022-08-23)

  • Initial version