Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Age encrypted files not automatically decrypting in Remote development over SSH mode #20

Open
dssdss opened this issue Oct 2, 2023 · 2 comments

Comments

@dssdss
Copy link

dssdss commented Oct 2, 2023

Remote development over SSH: https://code.visualstudio.com/docs/remote/ssh-tutorial
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh

I've added the SOPS_AGE_KEY_FILE and SOPS_AGE_KEY to my ~/.bashrc

Environment Variables

export SOPS_AGE_KEY_FILE=$HOME/.config/sops/age/keys.txt
export SOPS_AGE_KEY=age102mszwln8mqkshl3shjn0ytr2pjqnsnepka5j90wu5mnlgluasfsks4kgn

I've created a .sops.yaml

creation_rules:

  • encrypted_regex: '^(data|key|password)$'
    age: age102mszwln8mqkshl3shjn0ytr2pjqnsnepka5j90wu5mnlgluasfsks4kgn

I've even created a .sopsrc

ageKeyFile: $HOME/.config/sops/age/keys.txt

I know sops works because I can use sops --encrypt --in-place file.env to encrypt and sops --decrypt --in-place file.env to decrypt it.

But in VSCode, even when I open file with "SOPS: edit directly" - VSCode only open encrypted file!

@bvanderhorn
Copy link
Collaborator

Hi @dssdss, sorry for our late response. thank you for notifying us of this issue! We will try and reproduce this sometime in the coming weeks, and come back to you regarding ths.

@remkolems
Copy link

I'm in the same boat as @dssdss

VS Code
Version: 1.83.1 (user setup)
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:48:05.904Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621
Name: SOPS easy edit
Id: ShipitSmarter.sops-edit
Description: Never again worry about encrypting, decrypting or accidentally committing decrypted files.
Version: 1.0.0
Publisher: ShipitSmarter
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ShipitSmarter.sops-edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants