Skip to content

fix(annotations): strictly prepend b64: to base64 encoded annotations#53

Open
Nachiket-Roy wants to merge 1 commit into
nubificus:mainfrom
Nachiket-Roy:feat-b64-prefix-urunc
Open

fix(annotations): strictly prepend b64: to base64 encoded annotations#53
Nachiket-Roy wants to merge 1 commit into
nubificus:mainfrom
Nachiket-Roy:feat-b64-prefix-urunc

Conversation

@Nachiket-Roy

Copy link
Copy Markdown

The Problem

bunny currently blindly Base64-encodes all OCI annotations when writing urunc.json. This makes it impossible for urunc to safely distinguish between intended Base64 payloads and standard plaintext config labels without relying on unsafe heuristics.

The Solution

This PR prepends a strict "b64:" prefix to all encoded annotations generated in hops/package.go.
This enables urunc's new strict parser to safely decode these payloads without the risk of silently corrupting plaintext labels that happen to look like valid base64.

context : urunc-dev/urunc#771

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.

1 participant