You can pass your password in KOPIA_PASSWORD
env variable or flag -p, --password=PASSWORD
, so you can use your OS specific password manager software to retrieve password and connect to your repo.
PASSWORD = $(retrieve_password_from_keychain)
kopia repository connect ...--password=$PASSWORD...
Here some info how to do this in macOS:
For other systems you have to check documentation how to work with your specific key chain/password manager.