Skip to content

fix: handle pointers when serializing context#2219

Merged
felixfontein merged 1 commit into
getsops:mainfrom
tlercher:fix/aws_context
Jun 16, 2026
Merged

fix: handle pointers when serializing context#2219
felixfontein merged 1 commit into
getsops:mainfrom
tlercher:fix/aws_context

Conversation

@tlercher

Copy link
Copy Markdown

Starting with the change #2120 we've run into the issue that when saving a SOPS files the context values of a provider (in our case AWS KMS using tenant) gets mangled and a pointer value gets written into the encrypted file.

If such a invalid file is committed it cannot be decrypted anymore by sops since it lacks the proper context to do so.

i also took the liberty to add a method body to TestSerializeMetadata even if it just tests the AWS KMS case i've run into for now. -> Should this be a more specific test?

Signed-off-by: Thomas Lercher <thomas.lercher@exaring.de>

@felixfontein felixfontein left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reporting and fixing this!

@felixfontein felixfontein merged commit ae730b7 into getsops:main Jun 16, 2026
15 checks passed
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