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

Fix more failing master tests #1077

Merged
merged 6 commits into from
Mar 24, 2020
Merged

Conversation

fatmcgav
Copy link
Contributor

@fatmcgav fatmcgav commented Mar 13, 2020

#1074 and #1075 should have fixed the tests for master.
However I spotted that there are a subset of tests that only run on PR's from branches within the elastic/puppet-elasticsearch repo, so they weren't being executed on my forked PR's.

Summary of changes:

  • Fix an issue with elasticsearch_user providers:
    With the previous behaviour, both providers were being considered, and
    the older users provider was winning. This meant we were using the
    deprecated bin/x-pack/users script.
  • Tweak the TLS certificate generation
    Use SHA256 signatures, tweak the CN's and move the SANS config onto the node cert generation.
  • Remove Elasticsearch 5 tests
    This was necessary due to the changes required to get TLS and XPack tests to pass on 6.x.
    Therefore moving forward, this module will support the "current" major version and "previous" major version.
    With the module moving towards supporting 7.x, the time is right to drop support for 5.x.
    Any users that still need to support ES 5.x can install and use the 6.x versions of this module.

Gavin Williams added 6 commits March 20, 2020 14:53
With the previous behaviour, _both_ providers were being considered, and
the older `users` provider was winning. This meant we were using the
deprecated `bin/x-pack/users` script.
Update signatures to SHA256, and move the certificate SANS config onto
the node certs.
Dropping support from this module for ES 5 means that we only support
'current'' and 'previous' major versions, which is a saner approach.
@fatmcgav fatmcgav force-pushed the confine_elasticsearch-user_providers branch from ccff445 to 090a31f Compare March 20, 2020 14:57
@fatmcgav fatmcgav changed the title Tweak the 'confine' statements on the 'elasticsearch_user' providers. Fix more failing master tests Mar 20, 2020
@fatmcgav fatmcgav marked this pull request as ready for review March 20, 2020 15:02
@fatmcgav fatmcgav self-assigned this Mar 20, 2020
@fatmcgav fatmcgav added bug Something isn't working tests labels Mar 20, 2020
Copy link
Contributor

@elasticdog elasticdog left a comment

Choose a reason for hiding this comment

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

🍠 LGTM

@fatmcgav fatmcgav merged commit d6d3bb6 into master Mar 24, 2020
@fatmcgav fatmcgav deleted the confine_elasticsearch-user_providers branch March 24, 2020 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants