Description
Currently, authentication for the services monitored via pmm-agent normally requires the use of --username, --password, along with the optional --agent-password.
As a user, this forces either command-line specification of secrets, or a flags file can be used so that secrets are hidden from view. However, credentials for the monitored services may be managed separately from the configuration of pmm-agent and pmm-admin.
The --credentials-source option will allow the user to generate a file that, at least initially, will be read to parse JSON from the file. Execution of a file may be added later and for now would produce an error to avoid any confusion.
Executable file
failed to retrieve credentials from /tmp/test.sh: execution is not supported: /tmp/test.sh
The JSON format is as follows:
{ "username": string, "password": string, "agentpassword": string }
Only the required items need to be added.