mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 23:31:08 +08:00
* Start implementation of Windows TPM enrollment * Basic device data collection for windows * Add AK get/creatiom * Add helpers for converting tpm protos * Don't create AK in inappropriate circumstances * Furhter simplify AK load/create * Add tests for proto/attest conversions * Ensure that digestalg varies between test cases * More accurate proto field name * Missing license header * Add credential fingerprinting function * Add getDeviceCredential implementation for windows * Add dependencies so this builds * Fix generation of credential id * Introduce AKPublic field * Collect other key data * Add some additional debug logging * Add more specific serial number fields to dcd * Use faster powershell call for determining OS version * Fix missing field in DeviceFromResource * Add link to to-do issue * Add packages necessary for enterprise submodule * Fix import orders * bump go-tpm-tools to latest versions * Tidy up returned errors * Add failure case test for Linux enrollment * move linux device fake to lib/devicetrust/testenv * Add test to exercise `RunCeremony` * Tidier assertion messages Co-authored-by: Alan Parra <alan.parra@goteleport.com> * Further simplifcations of test assertions/errors Co-authored-by: Alan Parra <alan.parra@goteleport.com> * Apply suggestions from code review Co-authored-by: Alan Parra <alan.parra@goteleport.com> * Further fixes as per the llama's suggestions * Further simplification and header on logs * Use BadParameter rather than platform unsupported * Add further notes on RSAness of `go-attestation` * Minor adjustments to comments * Unused import removed * License headers * rename `mustRandomBytes` -> `randomBytes` --------- Co-authored-by: Alan Parra <alan.parra@goteleport.com>