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

Also try keyserver.ubuntu.com for MySQL key #488

Merged
merged 7 commits into from
Apr 4, 2022

Conversation

martijnvans
Copy link
Contributor

@martijnvans martijnvans commented Mar 22, 2022

This is to help with the occasional flake where pgp.mit.edu is inaccessible.

@martijnvans martijnvans changed the title Use pool.sks-keyservers.net for MySQL key Also try keyserver.ubuntu.com for MySQL key Mar 22, 2022
Copy link
Member

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@quentinmit
Copy link
Member

Honestly you should just switch wholesale; pgp.mit.edu is very very flaky.

(Or better, you should import the key from an https URL instead of using a keyserver)

@martijnvans martijnvans marked this pull request as ready for review March 30, 2022 15:30
@martijnvans
Copy link
Contributor Author

Quentin, I'm not having luck finding such a URL and I'm not sure how to pass one in even if I found it. I feel like progress on this PR has stalled and I could use some more help from you to get it going again, or I could merge it as is and admit that it's not the best possible implementation and we can fix it later if needed. Which would you prefer?

@quentinmit
Copy link
Member

Quentin, I'm not having luck finding such a URL and I'm not sure how to pass one in even if I found it. I feel like progress on this PR has stalled and I could use some more help from you to get it going again, or I could merge it as is and admit that it's not the best possible implementation and we can fix it later if needed. Which would you prefer?

The first bullet point at https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-repo-manual-setup says

Download the MySQL GPG Public key (see Signature Checking Using GnuPG on how to do that) and save it to a file

I agree that I can't seem to find that as a separate file directly... one option would be

curl https://dev.mysql.com/doc/refman/8.0/en/checking-gpg-signature.html | perl -nle 's/^.*(-----BEGIN)/\1/; print if /BEGIN PGP PUBLIC KEY BLOCK/../END PGP PUBLIC KEY BLOCK/'

Another option appears to be to just install https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb which will configure the apt repo and load the appropriate key.

@sophieyfang sophieyfang added the kokoro:force-run Forces kokoro to run integration tests on a CL label Mar 30, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Forces kokoro to run integration tests on a CL label Mar 30, 2022
@sophieyfang sophieyfang added the kokoro:force-run Forces kokoro to run integration tests on a CL label Apr 4, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Forces kokoro to run integration tests on a CL label Apr 4, 2022
@jefferbrecht jefferbrecht added the kokoro:force-run Forces kokoro to run integration tests on a CL label Apr 4, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Forces kokoro to run integration tests on a CL label Apr 4, 2022
@jefferbrecht jefferbrecht merged commit 8a7e08b into master Apr 4, 2022
@jefferbrecht
Copy link
Member

Tests all passed and it's up to date with master. This is a substantial improvement that'll help avoid many test failures so I'll go ahead and merge it now. If there are any outstanding threads of discussion here then a follow-up PR would be appropriate.

@martijnvans martijnvans deleted the martijnvans-pool-key branch April 4, 2022 17:31
@quentinmit
Copy link
Member

Tests all passed and it's up to date with master. This is a substantial improvement that'll help avoid many test failures so I'll go ahead and merge it now. If there are any outstanding threads of discussion here then a follow-up PR would be appropriate.

Yes, there are two suggestions above for making this more reliable that are waiting for reply.

@martijnvans
Copy link
Contributor Author

I'm taking those suggestions under consideration in #510.

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.

6 participants