Skip to content

device, connect: show when an emulator's identity expires #14

Description

@karalabe

ark devices lists emulators without the day their attested identity expires. The emulator registry publishes it on each instance as expiry, in Unix seconds, once the device has reported it. ark-emulator list prints it as expires, an ISO 8601 time in JSON and the date in the reading view. The emulator's registry help names expires among the names it shares with ark devices, beside image and environment, so ark devices is the one missing it.

The registry Instance in connect does not parse expiry yet. The fix is to read it there and add expires to the devices listing, in the reading view and in JSON, null for hardware and for an emulator that has not reported it. The devices page's Prints line and ark help devices then list the new field.

An emulated Ark's identity lasts 30 days. Until then, a script that drives only ark finds out when the cloud starts refusing the device.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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