wwkimball/yamlpath

yaml-get fails to decrypt EYAML values when using Collectors

wwkimball opened this issue · 0 comments

Operating System

  1. Name/Distribution: ALL
  2. Version: ALL

Version of Python and packages in use at the time of the issue.

  1. Distribution: ALL
  2. Python Version: ALL
  3. Version of yamlpath installed: 3.6.4
  4. Version of ruamel.yaml installed: ANY supported

Minimum sample of YAML (or compatible) data necessary to trigger the issue

---
# test.yaml
key:  ENC[BLAH]
# yaml-get --query='(/key) ' test.yaml
ENC[BLAH]

Assuming EYAML was installed and the keys were in one of the default locations, the output should have been decrypted but it never is.

Complete steps to reproduce the issue when triggered via:

  1. Command-Line Tools (yaml-get, yaml-set, or eyaml-rotate-keys): Precise command-line arguments which trigger the defect.
  2. Libraries (yamlpath.*): Minimum amount of code necessary to trigger the defect.

Expected Outcome

Decrypted EYAML value from Collector results.

Actual Outcome

yaml-get prints out the encrypted strings.

Screenshot(s), if Available