-
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
feat: validate gpg key against existing list of providers #1423
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Thanks @diofeher I'm out for the weekend, I'll review first thing on Monday! |
Signed-off-by: Diogenes Fernandes <[email protected]>
23175ab
to
ed6662e
Compare
Thanks @abstractionfactory, enjoy your weekend! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work @diofeher !
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I'd like someone else familiar with the registry to also take a look.
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Signed-off-by: Diogenes Fernandes <[email protected]>
Moving back to draft since the PR in libregistry isn't merged yet. We will review this PR fully once the libregistry one is merged. |
Closes #356
Depends on opentofu/libregistry#47
Code based on @cam72cam's work
Description
This code is used to verify if the provided key by the user is really signing the packages they meant to be signing. There were multiple instances when the user provided wrong keys and then commits had to be reverted in order to provide the right signing key.
Failing signature:
![Screenshot 2025-01-10 at 12 44 55](https://private-user-images.githubusercontent.com/161360/402066212-f131734d-675e-49ae-b553-886af34f07f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTgwNzMsIm5iZiI6MTczODk5Nzc3MywicGF0aCI6Ii8xNjEzNjAvNDAyMDY2MjEyLWYxMzE3MzRkLTY3NWUtNDlhZS1iNTUzLTg4NmFmMzRmMDdmMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwNjU2MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01MzgzZjU5ODM2YmRhZjc2NzM3NWM4YWNhYTkyYjVlNTljNjVjOTliM2NlYTcwY2VlZTdmYzI0MDgzMmUyMDA5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.H9rxSRlY3Q-a1AlIsyXswk_Fz0QrkLKbmF4IrDu_evA)
Working signature:
![Screenshot 2025-01-10 at 12 54 17](https://private-user-images.githubusercontent.com/161360/402069472-57d4b5f6-147a-42e3-8f99-29a4cd14ea0f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTgwNzMsIm5iZiI6MTczODk5Nzc3MywicGF0aCI6Ii8xNjEzNjAvNDAyMDY5NDcyLTU3ZDRiNWY2LTE0N2EtNDJlMy04Zjk5LTI5YTRjZDE0ZWEwZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwNjU2MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ODhiNTBhNTJlYzJjZmUzOWE5YmRmYTA4NzQzZDQxODJjYjBiMjZmOTBjZDAyZDkxNjg4ZGZlYzVkNjA1ODQwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.31EpWguKLuO7DkGX1DRhSgQW1f1-UE2-oGut7MQiGB4)