google / google/go-attestation

Create helper function(s) to create simulated TPMs with EK certificates.

Open
#475 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
444
Forks
109
PR merge metrics
No merged PRs in 30d

Description

Currently the simulated TPM doesn't have any EK certificates. This makes it hard to test the [tpm.ekcertificates()](https://github.com/google/go-attestation/blob/master/attest/tpm.go#L408C2-L408C16) method. This lack of testing also has come up in #468

Contributor guide

Open the contributing guide

Research direction

Start with tpm.ekcertificates() in attest/tpm.go and inspect the simulated TPM support, then review issue #468 for related testing context. Add helper function(s) that create simulated TPMs with EK certificates and cover the missing certificate behavior with tests; done when ekcertificates() can be tested against those simulated TPMs.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.