You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: !!binary YAML tag fails with "Incorrect padding" on Salt 3008 (Python 3.14) #69207
Rendering SLS 'base:test' failed: failed to decode base64 data: Incorrect padding in "<unicode string>", line 6, column 14
Root Cause:
Salt's SaltYamlSafeLoader inherits construct_yaml_binary from PyYAML, which calls base64.decodebytes() to decode !!binary values. The value a1b2c3 is 6 characters — not a multiple of 4 — so it is missing == padding to be valid standard base64. Python 3.14 (bundled with Salt 3008 onedir) is stricter about this than Python 3.10 (bundled with Salt 3006), causing binascii.Error: Incorrect padding to be raised during SLS rendering.
Expected Behavior:
Salt should tolerate !!binary values with missing base64 padding (a common occurrence when users hand-write base64 strings), consistent with behavior in Salt 3006.
Type of salt install
Official exe
Major version
3007.x
What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)
Activity
Fix !!binary YAML tag failing with "Incorrect padding" on Python 3.14