Hi there,
I’m on OpenStack environnement and I try to use the env variable to store backup in SWIFT.
According to the documentation I can use the following env variables:
# For keystone v3 application credential authentication (application credential name)
$ export OS_AUTH_URL=<MY_AUTH_URL>
$ export OS_USERNAME=<MY_USERNAME>
$ export OS_USER_DOMAIN_NAME=<MY_DOMAIN_NAME>
$ export OS_APPLICATION_CREDENTIAL_NAME=<MY_APPLICATION_CREDENTIAL_NAME>
$ export OS_APPLICATION_CREDENTIAL_SECRET=<MY_APPLICATION_CREDENTIAL_SECRET>
Restic version: restic 0.14.0
I made a credential application user, let’s say:
openstack application credential create --secret mysupersecretkey --restricted restic
So I build the following env file that I source:
# Configuration pour l'accès au nuage primaire
export OS_AUTH_URL="https://my.cloud.url:5000/v3"
export OS_REGION_NAME="RegionOne"
export OS_APPLICATION_CREDENTIAL_NAME="restic"
export OS_APPLICATION_CREDENTIAL_SECRET="mysupersecretkey"
export OS_USER_DOMAIN_NAME="Default"
export OS_PROJECT_NAME="myProjetName"
export RESTIC_PASSWORD="myResticCryptPasswd"
And I got this error on each restic call:
Fatal: unable to open repository at swift:postgresql:/backup/myProjetName: conn.Authenticate: UserID or Name should be provided
The line in my script is:
restic -r swift:${SWIFT_BUCKET_NAME}:/${SWIFT_FOLDER_NAME} init
Finally when I replace OS_APPLICATION_CREDENTIAL_NAME by OS_APPLICATION_CREDENTIAL_ID (with the value of the id given by the OpenStack previous command) and it works.
As anyone have a clue on why Name does not work and UserID does?
Thanks