Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agosecrets in a devcontainer setup
I would like to use 1password in a devcontainer setup (remote machine; connected via ssh) to initialize some secrets for my developer environment. I currently have:
curl -sS https://downloads....
Former Member
3 years agoMore generally, I would think that the following would work with the 1password extension:
"containerEnv": {
"AWS_ACCESS_KEY_ID": op://Private/AWS/username,
"AWS_SECRET_ACCESS_KEY": op://Private/AWS/credential,
"AWS_DEFAULT_REGION": op://Private/AWS/region
},
but adding that to my devcontainer.json does nothing. If I run 1password: Preview with secrets
, then my AWS secrets are correctly substituted in the preview, but those secrets are not substituted when I re-build my container. I also cannot hover over the op://
links and see references to the secrets, as shown in https://www.reddit.com/r/1Password/comments/vp19zy/introducing_1password_for_vs_code/.