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

client.GetQuoteProvider: return error if none supported #132

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

katexochen
Copy link
Contributor

Currently, support for IoctlQuoteProvider isn't checked and returned error is always nil.

@deeglaze
Copy link
Collaborator

This is by design. It's only meant to fall back to the ioctl provider if the configfs provider isn't available yet. The error in the signature was just to match go-tdx-guest, which also doesn't return an error. It's something to fix in the next major version upgrade.

I don't mind this change though. I'll approve and merge if you still want it.

@katexochen
Copy link
Contributor Author

The error in the signature was just to match go-tdx-guest, which also doesn't return an error. It's something to fix in the next major version upgrade.

I think checking for support of config-tsm and returning an error early is a good idea, even after removing the ioctl provider.

@deeglaze deeglaze merged commit 4f36f75 into google:main Aug 16, 2024
8 checks passed
@katexochen katexochen deleted the get-provider branch August 16, 2024 18:51
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.

2 participants