Using restic with encrypted configuration

Hello,
rclone allows to encrypt remote configuration when using rclone config. This password is not the repo password.
Once encrypted the configuration file included a hash content like this:

# Encrypted rclone configuration File

RCLONE_ENCRYPT_V0:
h6mYfm3xp2jfAOuRsQnZeHYBVqCZwwC+EYvY68x7OCB67LZeSLLgKnzpTEnyyBc4xXJeO7mnJ6aFYmSKc/EtpAHoAIaGfS4QDibDBgU8jP3bU95pEEHE1fwa1CwYzjm3ccgIpz49vzjZGJLMVZXPQeRQZ449dkjMyCOmmXWnh0HD5aZ9Z+mGwLHEE8mtlPWawRneycmNqtf0lykMV7kfq72mFK/4rHLpR/Ktr/tFdJ+cIHi5X2SkFuAAXiU+xWohaZmmB+3uCWqQn5n6XE20gmv5+k+0/XNGJyZfmNjElEkMeUdocFVCw7cDN473dKJDR0TaEozoyBPrmOHA

How can I use restic to decrypt this configuration?
Using no password option shows this in CLI:

restic --repo rclone:<my-repo-url>:<path-to-my-repo> key list
rclone: Enter configuration password:
rclone: password:2023/12/10 09:51:23 ERROR : Couldn't decrypt configuration, most likely wrong password.
rclone: Enter configuration password:

THX

rclone configuration password can be read from RCLONE_CONFIG_PASS environment variable

2 Likes