Sync local file into coder workspace
We are trying to setup coder for our RoR project, for this project we setup our secrets using onePassword for every environment. The way it works is we populate using onePassword an .env.docker file, we would love to automatically sync our local .env.docker file with the coder one, is this possible? 🤔 This way we prevent installing onePassword CLI on coder machine
5 Replies
<#1251242802231119922>
Category
Help needed
Product
Coder OSS (v2)
Platform
macOS
Logs
Please post any relevant logs/error messages.
hey, could you elaborate a bit on this use-case?
i.e what's in the .env.docker file? is that file stored directly on 1pw or is it generated from 1pw contents?
Hey!
Thanks for answering.
The file is generated from 1pw content
okay so you would need to fetch the data directly from 1password or just fetch the file ?
there is the onepassword terraform provider that should allow you to get data from 1password and generate the file directly in the template
https://registry.terraform.io/providers/1Password/onepassword/latest/docs