Secrets#
Your registry credentials for pulling images and data credentials for downloading/uploading data are automatically applied when the workflow is submitted.
However, you can also submit other generic credentials and securely dereference them inside the workflow as environment variables or mount them as a secret file with a specific path:
workflow:
name: use-generic-creds
tasks:
- name: task_generic_creds_usage
image: ubuntu
command: ['bash']
credentials:
omni_cred:
OMNI_USER: omni_user # (1)
OMNI_PASS: omni_pass # (2)
aws_keys: /root/.osmo # (3)
The environment variable
OMNI_USERto the value ofomni_userfrom credentialomni_credin the container.The environment variable
OMNI_PASSto the value ofomni_passfrom credentialomni_credin the container.aws_keysis mapped as a file mounted to the path/root/.osmoin the task.
These credentials are a list of credential names that are configured using
Generic Secrets.
Note
Credentials are MASKED in the workflow logs and error logs if they are 8 characters or more. Do NOT use 8 characters or less for credentials or they can be subject to being leaked.