Allows flags containing sensitive stuff to be passed as files (#545)

* Allows options containing sensitive stuff (passwords, tokens) to be passed as a file instead

* Fixed linter error, added tests, removed notification-url (due to being an array)
This commit is contained in:
Sebastiaan Tammer 2020-06-10 12:14:47 +02:00 committed by GitHub
parent 6da66fb312
commit 12d323354f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 92 additions and 4 deletions

View file

@ -81,6 +81,7 @@ func PreRun(cmd *cobra.Command, args []string) {
scheduleSpec = "@every " + strconv.Itoa(interval) + "s"
}
flags.GetSecretsFromFiles(cmd)
cleanup, noRestart, monitorOnly, timeout = flags.ReadFlags(cmd)
if timeout < 0 {