Best practice for writing to a workflow folder on KNIME Hub from Python
Hello everyone,
I'm migrating some workflows from KNIME Server to KNIME Hub, and I have a question about the recommended approach.
With KNIME Server, my workflows could write files directly to the workflow folder. Now, on KNIME Hub, I can still access the workflow folder using the standard KNIME nodes.
The issue is with the Python Script node. The only way I've found to write to the workflow folder from Python is to create a separate connection to KNIME Hub inside the Python code. However, this requires storing my App Password (or other credentials) in the Python script, which I would like to avoid for security and maintainability reasons.
I was expecting to be able to reuse the existing KNIME Hub connection or connector from within the Python Script node, but I haven't found a way to do that.
Is there a recommended or best-practice way to write to the current workflow folder from a Python Script node without creating a separate authenticated connection inside the script?
How do you usually handle this scenario?
Thank you in advance for your help!