sixfeetup / scaf

scaf provides developers and DevOps engineers with a complete blueprint for a new project using Kubernetes
BSD 3-Clause "New" or "Revised" License
36 stars 7 forks source link

Setup refinement: 1password #233

Open daveoconnor opened 3 weeks ago

daveoconnor commented 3 weeks ago

During setup I see the following message

➜ deploytest direnv allow [17:56] direnv: loading ~/work/scaftest/deploytest/.envrc
direnv: ([/usr/bin/direnv export zsh]) is taking a while to execute. Use CTRL-C to give up. [ERROR] 2024/06/07 17:56:25 could not read secret 'op://deploytest/AWS_ACCESS_KEY_SES/token': could not get item deploytest/AWS_ACCESS_KEY_SES: "deploytest" isn't a vault in this account. Specify the vault with its ID or name. [ERROR] 2024/06/07 17:56:26 could not read secret 'op://deploytest/AWS_SECRET_KEY_SES/token': could not get item deploytest/AWS_SECRET_KEY_SES: "deploytest" isn't a vault in this account. Specify the vault with its ID or name. [ERROR] 2024/06/07 17:56:27 could not read secret 'op://deploytest/POSTGRES_DB/password': could not get item deploytest/POSTGRES_DB: "deploytest" isn't a vault in this account. Specify the vault with its ID or name. [ERROR] 2024/06/07 17:56:28 could not read secret 'op://deploytest/POSTGRES_DB/username': could not get item deploytest/POSTGRES_DB: "deploytest" isn't a vault in this account. Specify the vault with its ID or name. [ERROR] 2024/06/07 17:56:29 could not read secret 'op://deploytest/DJANGO_SECRET_KEY/token': could not get item deploytest/DJANGO_SECRET_KEY: "deploytest" isn't a vault in this account. Specify the vault with its ID or name. direnv: export +AWS_ACCESS_KEY_SES +AWS_SECRET_KEY_SES +DATABASE_URL +DJANGO_SECRET_KEY +POSTGRES_HOST +POSTGRES_PASSWORD +POSTGRES_USER

It would be better to provide questions in the cookiecutter process which asks about each of these, then populates the 1password credentials. Maybe even merge these into one 1password entry with multiple fields?