Skip to content

sops exec-file: improve error handling, reject non-local paths in --filename#2155

Merged
felixfontein merged 2 commits intogetsops:mainfrom
felixfontein:exec-path
Apr 21, 2026
Merged

sops exec-file: improve error handling, reject non-local paths in --filename#2155
felixfontein merged 2 commits intogetsops:mainfrom
felixfontein:exec-path

Conversation

@felixfontein
Copy link
Copy Markdown
Contributor

  1. The current error handling is not great; errors are printed, but execution continues. Instead, fail on errors.
  2. When --filename contains a path, right now the code does not check whether the path is local.

Comment thread cmd/sops/subcommand/exec/exec_windows.go Outdated
Comment thread cmd/sops/subcommand/exec/exec_windows.go
Signed-off-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Felix Fontein <felix@fontein.de>
@felixfontein felixfontein merged commit 748555b into getsops:main Apr 21, 2026
15 checks passed
@felixfontein felixfontein deleted the exec-path branch April 21, 2026 18:38
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

Successfully merging this pull request may close these issues.

2 participants