tfxor / terrahub

Terraform Automation and Orchestration Tool (Open Source)
https://docs.terrahub.io
Mozilla Public License 2.0
224 stars 19 forks source link

Collect credentials using TerraHub CLI and visualize valid cloud accounts credentials in TerraHub Console #143

Open eistrati opened 6 years ago

eistrati commented 6 years ago

In order to make it easier for the users to input their cloud accounts credentials, let's think through some async processes that will load cloud accounts credentials during terrahub [action] commands that push data to TerraHub API when THUB_TOKEN (or something related) is setup and valid.

eistrati commented 6 years ago
We have identified the following new cloud credentials:
1. AWS_ACCESS_KEY=AKI*******YGE && AWS_SECRET_ACCESS_KEY=Yz6*******7tB
2. AWS_ACCESS_KEY=AKE********RTV && AWS_SECRET_ACCESS_KEY=E43*******/5Z
Would you like to save these credentials in your TerraHub account (Y/N)? 

NOTE: Please execute this piece of code ONLY once 1 week (add TTL parameter in ~/.terrahub/.terrahub.json) no matter what kind of credentials you have in TerraHub API and/or TerraHub CLI. If user chooses NO, store AWS_ACCESS_KEY value (BUT NOT AWS_SECRET_ACCESS_KEY) in TerraHub API with Status = disabled (or something like this)