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

SOPS disregards full path to encrypted file #140

Open
depatl opened this issue Feb 6, 2025 · 3 comments
Open

SOPS disregards full path to encrypted file #140

depatl opened this issue Feb 6, 2025 · 3 comments

Comments

@depatl
Copy link

depatl commented Feb 6, 2025

Novops disregards full path to encrypted files, looks like it appends it to the ${CWD}.

@depatl depatl changed the title SOPS disregard full path SOPS disregards full path to encrypted file Feb 6, 2025
@PierreBeucher
Copy link
Owner

Hi, you mean that the path to encrypted file appended to your current working directory rather then being considered an absolute path ?

Do you have an example .novops.yml to reproduce ?

@depatl
Copy link
Author

depatl commented Feb 7, 2025

yeah, this is exactly the case.

---
config:
  default:
    environment: relmgt
environments:
  relmgt:
    variables:
      - name: CREDS_USERNAME
        value:
          sops:
            file: ~/.config/creds/release_management.yaml
            extract: '["cec"]["username"]'

if I execute source <(novops load) from ${CWD} it drops an error, sayin it cannot find ${cwd}/~/.config/creds/release_management.yaml

@PierreBeucher
Copy link
Owner

PierreBeucher commented Feb 7, 2025

Oh I see, that's probably caused by ~ not being interpolated as "$HOME" directory. I can add such as "tilde expansion" feature though. Thanks for the details

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

2 participants