password.adoc 679 B

1234567891011121314151617181920
  1. = Password
  2. Sometimes you want to mask the input you pass, and a password field is useful for this.
  3. [WARNING]
  4. Passwords are passed to the OliveTin server in cleartext (unless you're using HTTPS), and are just treated as a string on the server side. Password arguments are **not** type-checked for allowed characters, and they **cannot** be used with `shell:` — use `exec:` so the value is passed as a separate argument instead of being interpolated into a shell string.
  5. [source,yaml]
  6. .`config.yaml`
  7. ----
  8. actions:
  9. - title: echo a message
  10. icon: smile
  11. exec:
  12. - echo
  13. - "{{ my_password }}"
  14. arguments:
  15. - name: my_password
  16. type: password
  17. ----