Skip to content

tls key generation rfc8446 update causes regressions #2919

@igaw

Description

@igaw
  • nvme connect is missing --compat
  • following simple test case does not pass. all works fine with nvme-cli v2.14 and libnvme v1.14 (without the --compat option)
test3() {
  echo "---- connect with key in keystore"
  "${NVME}" gen-tls-key --hostnqn "${hostnqn}"  --subsysnqn "${subsysnqn}" \
                        --secret "${secret}" --hmac 1 --identity 1 --insert --compat
  exec_test "${NVME}" connect ${common_args} --tls --dhchap-secret="${host_secret}" --dhchap-ctrl-secret="${ctrl_secret}" --dump-config --output-format json
  cat <<EOF > expected.json
[
  {
    "hostnqn":"${hostnqn}",
    "hostid":"${hostid}",
    "dhchap_key":"${host_secret}",
    "subsystems":[
      {
        "nqn":"${subsysnqn}",
        "ports":[
          {
            "transport":"tcp",
            "traddr":"${addr}",
            "trsvcid":"${port}",
            "dhchap_key":"${host_secret}",
            "dhchap_ctrl_key":"${ctrl_secret}",
            "tls":true
          }
        ]
      }
    ]
  }
]
EOF
  diff -u expected.json output
  rm expected.json
  echo ""
  "${NVME}" tls --revoke "${identity}"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions