Skip to content

[v13] Windows TPM enrollment support (#25801)#26736

Merged
strideynet merged 1 commit intobranch/v13from
strideynet/v13/backport-25801
May 23, 2023
Merged

[v13] Windows TPM enrollment support (#25801)#26736
strideynet merged 1 commit intobranch/v13from
strideynet/v13/backport-25801

Conversation

@strideynet
Copy link
Copy Markdown
Contributor

Backports #25801

* 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>
@github-actions github-actions Bot requested review from codingllama, tigrato and zmb3 May 22, 2023 21:01
@strideynet strideynet changed the title Windows TPM enrollment support (#25801) [v13] Windows TPM enrollment support (#25801) May 22, 2023
@strideynet strideynet added this pull request to the merge queue May 23, 2023
Merged via the queue into branch/v13 with commit c9c7294 May 23, 2023
@strideynet strideynet deleted the strideynet/v13/backport-25801 branch May 23, 2023 07:40
@r0mant r0mant mentioned this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants