-
Notifications
You must be signed in to change notification settings - Fork 41
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
Validate uploaded GPG keys against providers #356
Comments
From what I understood, the provider name is optional when submitting the provider key: So the steps for validating would be: 1 - Download the provider file by name, if existing, if not, list the providers in the namespace; Is this understanding correct? If not, what should be taken in consideration? |
Hey @diofeher! It sounds reasonable, I would add that we already have the code to download and validate the signature in the tofu itself so it is a good idea to reuse this part. We might want to check the signatures of all the provider binaries (for different architectures), however, I am not sure if it makes practical sense. For the third bullet point, I would still check all the providers in the namespace even if some of them are already failed the check. This way we would have a full report of what providers passed and what didn't. As far as I remember @cam72cam already has some draft code for this one. |
Here is my terrible code main...provider_key_checker, feel free to use parts of that or start from scratch |
Hey team, I have a quick question: How do you verify manually if the key is valid for the provider? I just want to double-check that my code is doing what's expected. |
Description of the feature you are looking for.
As we've seen in #352, providers can upload the wrong key for providers. We should validate that they key matches the already existing providers in the add key workflow.
The text was updated successfully, but these errors were encountered: