openziti / ziti

The parent project for OpenZiti. Here you will find the executables for a fully zero trust, application embedded, programmable network @OpenZiti
https://openziti.io
Apache License 2.0
2.68k stars 153 forks source link

identity metadata missing after enrollment #138

Closed qrkourier closed 4 years ago

qrkourier commented 4 years ago

I enrolled ziti-tunnel 0.15.1 on Linux/x86 with ziti-controller 0.14.9 and the identity metadata sdkInfo and environmentInfo are still empty. The same objects are populated with expected values in another identity that was enrolled with Android Tunneler.

❯ ziti edge list identities --output-json 'name="kenneth_bingham-laptop"' | jq '.data[]|{sdkInfo:.sdkInfo,envInfo:.envInfo}'
{
  "sdkInfo": {
    "branch": "",
    "revision": "",
    "type": "",
    "version": ""
  },
  "envInfo": {
    "arch": "",
    "os": "",
    "osRelease": "",
    "osVersion": ""
  }
}
❯ ziti edge list identities --output-json 'name="kenneth_bingham-mobile"' | jq '.data[]|{sdkInfo:.sdkInfo,envInfo:.envInfo}'
{
  "sdkInfo": {
    "branch": "master",
    "revision": "942aa9d",
    "type": "ziti-sdk-android",
    "version": "0.5.15-211"
  },
  "envInfo": {
    "arch": "arm64-v8a",
    "os": "android-29",
    "osRelease": "10",
    "osVersion": "6392402"
  }
}
qrkourier commented 4 years ago

The problem was that ziti-tunnel had not yet been run for the first time following enrollment.

❯ ziti edge list identities --output-json 'name="kenneth_bingham-laptop"' | jq '.data[]|{sdkInfo:.sdkInfo,envInfo:.envInfo}'
{
  "sdkInfo": {
    "branch": "master",
    "revision": "b01ae733cb76",
    "type": "ziti-sdk-golang",
    "version": "v0.13.20"
  },
  "envInfo": {
    "arch": "amd64",
    "os": "linux",
    "osRelease": "5.4.0-7634-generic\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
    "osVersion": "#38~1592497129~20.04~9a1ea2e-Ubuntu SMP Fri Jun 19 22:43:37 UTC \u0000"
  }
}