Where is the best place to store credentials (username / password) for accessing a private API on a CCR2004-1G-12S+2XS?
Specifically, I have written a script to hit an HTTP(S) API with some basic information. The function of this API isn’t relevant and is effectively immutable and, functionally, the script works just fine. Unfortunately, for development, I currently have the credentials hardcoded into the script as local variables which is pretty heinous from a security point of view. What facility of RouterOS would best be used to store these on-device without human interaction to use them?
Poking around the documentation, I see support for Certificates, but this doesn’t seem to extend to trivial user / pass combinations.
Untimately, anything that will let me securely execute something along the lines of
:local resp ([/tool/fetch user=$USER password=$PASS url=https://example.com/api output=user as-value]->"data")
should work just fine.
Thanks!