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

(PE-22810) Removed _client_cert_verification #260

Conversation

barleyj-puppet
Copy link
Contributor

The private key is not world readable and apt now runs as an
unpriveledged user. This means apt can no longer read the private
key. We don't validate the client so we're removing the usage of the
private key to communicate with master.

The private key is not world readable and apt now runs as an
 unpriveledged user. This means apt can no longer read the private
 key. We don't validate the client so we're removing the usage of the
 private key to communicate with master.
@barleyj-puppet
Copy link
Contributor Author

barleyj-puppet commented Nov 9, 2017

I tested this by first installing puppet with:

./frankenbuilder 2017.3.0 --install --agent=debian-9-amd64 --mono --preserve-hosts=always --keyfile=~/.ssh/id_rsa-acceptance --vmpooler --workdir /tmp/frankenbuilder1 --puppet_agent=../puppetlabs-puppet_agent

I verified that the /etc/apt/apt.conf.d/90pc_repo file was as expected. I then upgraded master by using:

./frankenbuilder 2017.3.2 --upgrade --master bhtcweoy0m8ah0l.delivery.puppetlabs.net

Then from the debian agent I ran

curl --tlsv1 -O -k https://bhtcweoy0m8ah0l.delivery.puppetlabs.net:8140/packages/current/install.bash
bash install.bash

This ran without error.

The same behavior prior to the change would result in an error that it was not able to find the packages.

@puppetcla
Copy link

Waiting for CLA signature by @barleyj-puppet

@barleyj-puppet - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppet.com/

Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppet.com/community/trivial_patch_exemption.html

Copy link
Contributor

@MikaelSmith MikaelSmith left a comment

Choose a reason for hiding this comment

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

Some spec test changes are needed.

@@ -47,7 +43,6 @@
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

This whole if/else block can be collapsed to the single case. I'd reduce the comment to explain why we don't use the cert/key.

@MikaelSmith MikaelSmith merged commit eb8a19c into puppetlabs:master Nov 10, 2017
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.

3 participants