You may have a scenario where the requirement is to retrieve an encrypted file from sFTP server and send that to external REST endpoint in encrypted/unencrypted mode with additional capabilities such as processing in the middle.
Stage File action in Integration canvas supports various file operations (list/read/write/zip/unzip). Existing OIC feature (oic.ics.stagefile.pgp.key.support) enables decrypt option while reading entire file and encrypt option while writing file. This feature is useful to process the file upto 10 MB size and doesn't support decryption option while doing read file in segments. For more details, see blog: Using Stage File Read/Write operation to encrypt/decrypt files.
This blog explains the new feature(oic.ics.stagefile.firstclass.encrypt-decrypt ) which allows OIC user to encrypt or decrypt file of size up to 1GB.
Enable following features:
To enable feature flags - Refer to Blog on Enabling Feature Flags in Oracle Integration
The minimum Oracle Integration version required for the feature is 191216.1400.33050.
Step By Step Guide
To Configure Stage Encrypt File action with PGP Key to encrypt file
Drag and drop the Stage File Action. A popup wizard will be opened where you need to provide the value for the field "What do you want to call your action ? ".
Click on Next and it will display the summary page. Now click on Done.
To configure Stage Decrypt File Operation with PGP Key to decrypt file
Stage Encrypt File Integration to encrypt file
Stage Decrypt File Integration to decrypt encrypted file