I read Where can I set environment variables that crontab will use? about how to set ENV variables for my scripts running by cron.
The most obvious and working solution is to put variables on top of crontab schedule file like this:
MYVAR=something
* * * * * /somescript.sh
This seems to be fine until I want my script to use sensitive values like login/password to login to, e.g. a database to make a dump.
How do I keep this data safe and still being able to send it to my scripts that are ran by cron?