Use asymmetric age keys instead of a password on your restic repository.
List only age keys:
restic-age-key list \
--repo /tmp/restic-repo \
--identity key.txt
# OUTPUT TKAdd first age key using existing password:
restic-age-key add \
--repo /tmp/restic-repo \
--password secret \
--pubkey age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8pAdd subsequent age keys using another age key:
restic-age-key add \
--repo /tmp/restic-repo \
--identity key.txt \
--pubkey age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8pRemove age key:
restic-age-key remove \
--repo /tmp/restic-repo \
--pubkey age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8pNote: You can remove your own pubkey and lock yourself out.