Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3874

cf-secret should not core dump when no encryption keys are provided

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.19.0
    • Fix Version/s: 3.18.2, 3.15.6, 3.20.0
    • Component/s: cf-secret
    • Labels:
      None
    • Story Points:
      3

      Description

      I tried to encrypt a file without providing a key to encrypt for (i kind of expected it to default to self).

      ❯ cf-secret encrypt -o /tmp/vault.token.cfsecret /tmp/vault.token
      cf-secret: cf-secret.c:1011: main: Assertion `(key_paths != NULL) && (SeqLength(key_paths) > 0)' failed.
      [1]    1611333 IOT instruction (core dumped)  cf-secret encrypt -o /tmp/vault.token.cfsecret /tmp/vault.token
      

        Attachments

          Activity

            People

            Assignee:
            larsewi Lars Erik Wik
            Reporter:
            a10042 Nick Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: