Hello here,
I am working on a DataPower Gateway deployment on Kubernetes and running into an issue with SFTP log target configuration via ConfigMap.
ENVIRONMENT
- - DataPower Gateway Operator: 1.11.x
- - DataPower Operand: 10.6.0.x
- - Platform: Kubernetes
- - Pod security context: non-root, all capabilities dropped
SYMPTOM
I am configuring an SFTP log target (archive-mode upload, upload-method sftp, password authentication) via a ConfigMap containing DataPower CLI commands. The log target is created correctly and all fields appear correct in the WebGUI after the automation runs. However, every SFTP upload attempt fails with:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive)
If I open the same log target in the WebGUI and re-enter the identical password manually, the upload succeeds immediately and consistently.
WHAT I HAVE INVESTIGATED
- Credential source is not the issue: tested with multiple sources, including hardcoded plaintext directly in the ConfigMap, with the same result every time
- Not a host-key mismatch: the SSH host-key-change messages are absent from the logs
- Command order is not the issue: moving remote-password away from remote-login made no difference
- I am aware of the documented limitation that, unless DataPower runs as root, SSH-based functions including SFTP are available but unsupported:
However, the WebGUI re-entry works in the same non-root pod, so the security context alone does not seem to explain the failure.
WHAT I UNDERSTAND SO FAR
It appears that the SFTP credential for a log target is not stored as part of the log target configuration itself, but in a separate internal object that the WebGUI creates when the password is saved interactively. This object does not seem to be created when the log target is configured via ConfigMap/CLI.
QUESTIONS
1. Is there a supported way to provide the SFTP password for a log target through CLI/ConfigMap configuration, so that it works at runtime without any WebGUI interaction?
2. If the credential is stored in a separate object, what is the correct CLI syntax to create it, and how is it associated with a specific log target?
3. If such an object can be included in the ConfigMap, is a stored or obfuscated password value portable across pod instances in a Kubernetes deployment?
Any guidance would be greatly appreciated.
Merci
Emil
------------------------------
Emiliano Canova
------------------------------