Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18533

nuxeoctl config, encrypt and decrypt should be able to read stdin

    XMLWordPrintable

    Details

    • Sprint:
      DevOps Sprint 11

      Description

      Since those commands work with sensitive values (to be ciphered for instance), they should be usable in Shell pipes (ie. be able to read from stdin).

      Expected commands:

      
      $ ./bin/nuxeoctl -q config --get server.status.key|tr -d '\n'|./bin/nuxeoctl -q decrypt $(./bin/nuxeoctl -q encrypt testPassword)
      > testPassword
      
      $ echo -n "value1"|./bin/nuxeoctl -q config --encrypt --set test1
      
      $ echo -n "raw"|./bin/nuxeoctl -q config --get test1 
      > {$$ukkvaLm5rernS+/IqY44ww==}
      
      $ grep test1 bin/nuxeo.conf 
      > test1={$$ukkvaLm5rernS+/IqY44ww==}
      
      $ ./bin/nuxeoctl -q config --get server.status.key|tr -d '\n'|./bin/nuxeoctl -q config --get test1 
      > value1

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: