gigascience / gigadb-website

Source code for running GigaDB
http://gigadb.org
GNU General Public License v3.0
9 stars 14 forks source link

Update rclone provisioning play to generate config with AWS credential files for users #1395

Closed rija closed 5 months ago

rija commented 1 year ago

User story

As a curator I want the tools on bastion to allow me to perform files operations on Wasabi with rclone So that I can manage the dataset files on Wasabi

Acceptance criteria

Given a bastion server is provisioned for the first time When I run the playbook play that install rclone Then rclone is installed on the bastion server And an rclone configuration file referencing default AWS credential file location is created for centos user

Given a new bastion user has been added to the bastion When I run the playbook play that install rclone Then rclone is updated on the bastion server And an rclone configuration file referencing default AWS credential file location is created for the new bastion user

Additional Info

See: https://rclone.org/s3/#authentication

this ticket is not for creating the actual user's AWS Credential file. That's why it depends on:

Implementation notes

* [ ] Create a template ops/configuration/aws/credentials.j2 using existing variables wasabi_access_key_id and wasabi_secret_access_key * [ ] Update template ops/configuration/rclone-conf/rclone.conf.j2, to remove keys from the [wasabi] profile * [ ] Add task to generate aws credentials from template in bastion playbook * [ ] Add task in bastion playbook to run rclone ls to verify that configuration works

Product Backlog Item Ready Checklist

Product Backlog Item Done Checklist

rija commented 5 months ago

this is implemented in PR #1835