Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consume go-tpm in place of tpm in rancherd/os2 #21

Merged
merged 1 commit into from
Feb 17, 2022
Merged

Consume go-tpm in place of tpm in rancherd/os2 #21

merged 1 commit into from
Feb 17, 2022

Conversation

mudler
Copy link
Contributor

@mudler mudler commented Feb 17, 2022

Part of #20. Will allow later on to set an emulated device.

Those are the changeset on top of tpm that was provided on rancherd: rancher-sandbox/go-tpm@c2203f4...main , in summary:

  • Imported some functions that were used in os2, but relevant to tpm only, so that's why the huge deletion in this changeset
  • Common code has been refactored so could be used both in os2 and in rancherd
  • Added tests spawning a ws server mimicking what kubernetes does when challenging nodes
  • Added TPM emulation capabilities (not yet exposed in os2 configs)

Signed-off-by: Ettore Di Giacinto edigiacinto@suse.com

Part of #20. Will allow later on to set an emulated device.

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
github.com/rancher/fleet/pkg/apis v0.0.0-20210927195558-4aaa778d23dd
github.com/rancher/lasso v0.0.0-20210709145333-6c6cd7fd6607
github.com/rancher/rancher/pkg/apis v0.0.0-20211013185633-a636bda2a00e
github.com/rancher/rancherd v0.0.1-alpha9.0.20211028172625-bdf5642d62d5
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this unties us from rancherd. I would actually vote to have rancherd using go-tpm as it encompasses the general usage done in both cases.

@mudler mudler mentioned this pull request Feb 17, 2022
3 tasks
Copy link
Contributor

@Itxaka Itxaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, would need to check the go-tpm changes to understand more about this :D

@mudler mudler merged commit b20f03e into master Feb 17, 2022
@mudler mudler deleted the go-tpm branch February 17, 2022 15:21
@mudler
Copy link
Contributor Author

mudler commented Feb 17, 2022

looks good, would need to check the go-tpm changes to understand more about this :D

yep without a bit of exploring how tpm work is hard to grasp at hand, but this is mostly refactoring and adding options around so can be re-used and tested. The emulation part is the real "new" addition, which is used in the unit tests

@Itxaka
Copy link
Contributor

Itxaka commented Feb 17, 2022

yup, I already had a look yesterday to the branch...could not understand much :P but looked kind of straighforward

mudler pushed a commit that referenced this pull request Jun 3, 2022
* Make a CloudInitRunner interface

Signed-off-by: David Cassany <dcassany@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants