C
Coder.com•3mo ago
fra9910

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
Codercord
Codercord•3mo ago
<#1251242802231119922>
Category
Help needed
Product
Coder OSS (v2)
Platform
macOS
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys•3mo ago
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?
fra9910
fra9910•3mo ago
Hey! Thanks for answering. The file is generated from 1pw content
Phorcys
Phorcys•3mo ago
okay so you would need to fetch the data directly from 1password or just fetch the file ?
Phorcys
Phorcys•3mo ago
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
Want results from more Discord servers?
Add your server