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

Creation rules don't work on windows #1650

Closed
SaymonPhoenix opened this issue Oct 14, 2024 · 4 comments
Closed

Creation rules don't work on windows #1650

SaymonPhoenix opened this issue Oct 14, 2024 · 4 comments

Comments

@SaymonPhoenix
Copy link

SaymonPhoenix commented Oct 14, 2024

Hi

I created a .sops.yaml file.

creation_rules:
  - path_regex: environments/dev/.*_secrets.yaml
    age: ***

This works fine on Linux, but when I try to call "sops -e environments/dev/app_secrets.yaml" on Windows I get an error - error loading config: no matching creation rules found.

Please help me

@felixfontein
Copy link
Contributor

Check out #892 and #1036. SOPS normalizes the path and thus turns / into \, which doesn't match your regexp.

@SaymonPhoenix
Copy link
Author

@felixfontein Thank you very much for the clarification. Strange and illogical behavior.

@felixfontein
Copy link
Contributor

I agree. The problem is that it's tricky to change without breaking existing setups, see the discussion here: #1523 (comment)

@SaymonPhoenix
Copy link
Author

@felixfontein I understand and I'm very sorry. I'll close the issue.

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