Skip to content

(PUP-672) TrustedInformation handles a nil certificate.#2220

Merged
jpartlow merged 1 commit intopuppetlabs:masterfrom
jpartlow:issue/master/pup-672-trusted-information-and-external-ca
Jan 6, 2014
Merged

(PUP-672) TrustedInformation handles a nil certificate.#2220
jpartlow merged 1 commit intopuppetlabs:masterfrom
jpartlow:issue/master/pup-672-trusted-information-and-external-ca

Conversation

@jpartlow
Copy link
Contributor

@jpartlow jpartlow commented Jan 4, 2014

Acceptance caught an issue with an external ca not passing the
certificate info (the
acceptance/tests/external_ca_support/apache_external_root_ca.rb had this
issue prior to +ExportCertData being added to the SSLOptions in
acceptance/tests/external_ca_support/fixtures/httpd.conf).

Modifying the TrustedInformation class to handle a nil certificate
without failure, but issue an info level warning in the logs.

This also modifies the acceptance test to add the +ExportCertData, and
to ensure a teardown, as failure to reach the teardown is breaking
following tests when the httpd server was left up as master.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this something that should be part of this test? It seems like leaving it as it was is fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will work again without +ExportCertData, so I'm fine backing that out; I was considering it a flaw of the external ca setup.

@puppetcla
Copy link

CLA signed by all contributors.

Acceptance caught an issue with an external ca not passing the
certificate info in the request (the
acceptance/tests/external_ca_support/apache_external_root_ca.rb does
this because its SSLOptions does not have +ExportCertData in
acceptance/tests/external_ca_support/fixtures/httpd.conf).

So we are modifying the TrustedInformation class to handle a nil
certificate without failure, but issue an info level warning in the
logs.

This also modifies the acceptance test to ensure a teardown, as failure
to reach the clean up code is breaking following tests when the httpd
server gets left up as master.
jpartlow added a commit that referenced this pull request Jan 6, 2014
…nformation-and-external-ca

(PUP-672) TrustedInformation handles a nil certificate.
@jpartlow jpartlow merged commit 2a883c2 into puppetlabs:master Jan 6, 2014
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