You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not found an option to provide a file as a secret to a task.
For example, for a script that uses rclone, it would be nice to provide the rclone.conf containing credentials to the src/target systems. These should not need to be part of the scripts git repo.
A possible way would be to either configure a fixed file location; could be usefull in some specific cases, where the file has to be at a fixed location. But in probably most cases, having an optin to say like RCLONE_CONFIG (in my case) or something like SOME_PASSWORD_FILE should contain the path to a temporary file for the given secret.
The file, of course, should be cleaned up after the job is done executing (successful or not)
Example rclone.conf
[src_smb]
type = smb
host = host1
user = user1
pass = password1
[dst_smb]
type = smb
host = host2
user = user2
pass = password2
As a workaround, one could currently use an environment file per key in the rclone conf and build that file on demand in the script, but beeing able to provide the full file is more clean.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have not found an option to provide a file as a secret to a task.
For example, for a script that uses rclone, it would be nice to provide the
rclone.conf
containing credentials to the src/target systems. These should not need to be part of the scripts git repo.A possible way would be to either configure a fixed file location; could be usefull in some specific cases, where the file has to be at a fixed location. But in probably most cases, having an optin to say like
RCLONE_CONFIG
(in my case) or something likeSOME_PASSWORD_FILE
should contain the path to a temporary file for the given secret.The file, of course, should be cleaned up after the job is done executing (successful or not)
Example
rclone.conf
As a workaround, one could currently use an environment file per key in the rclone conf and build that file on demand in the script, but beeing able to provide the full file is more clean.
Beta Was this translation helpful? Give feedback.
All reactions