sincecutoff.com
← all changes

yq adds base64url operators

Introduced 2026-09-29 · score 0.95

HOW TO USE IT

When a value needs URL-safe Base64 transformation, use `@base64url` to encode it or `@base64urld` to decode it. The release identifies these operators as RFC 4648 §5; the docs do not show examples for these specific operators.

yq '.<field> | @base64url' <input.yml>
yq '.<field> | @base64urld' <input.yml>

WHY THIS HELPS

Encode or decode base64url values while transforming data.

REQUIREMENTS AND LIMITATIONS

  • Version: v4.54.1
  • @base64url (required): Encode the piped-in value as a string; the release adds this operator for RFC 4648 §5.
  • @base64urld (required): Decode the piped-in value; the release adds this operator for RFC 4648 §5.
  • <field> (required): Expression selecting the value to transform; the docs demonstrate piping a selected field to an encode operator.
  • <input.yml> (required): Input file argument, following the documented operator example.
  • Prerequisite: Encoding and decoding assume UTF-8 string content, not binary content.
  • The operators are identified as following RFC 4648 §5.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card