saltstack/salt — Issue #651: YAML chokes on len(key) > 1024
Author: ericsnowcurrently
Created: 2012-02-07 05:40:37+00:00
State: open

This is a problem for large ssh keys when using the ssh_auth state. Apparently PyYAML is strict about dict key size (sort of):

http://pyyaml.org/browser/pyyaml/trunk/lib/yaml/scanner.py#L91
http://pyyaml.org/browser/pyyaml/trunk/lib/yaml/scanner.py#L280

http://yaml.org/spec/current.html#id2544556
http://yaml.org/spec/current.html#id2544696

Not sure if just documenting this will be good enough. In the meantime, your supposed to be able to prepend the key with a "? " (indicating an explicit key). However, this isn't working for me. I'll update the ticket as soon as I find a workaround.