Skip to content

Conversation

@ChunyiLyu
Copy link
Contributor

This closes #506

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed

Summary Of Changes

Additional Context

Local Testing

Please ensure you run the unit, integration and system tests before approving the PR.

To run the unit and integration tests:

$ make unit-tests integration-tests

You will need to target a k8s cluster and have the operator deployed for running the system tests.

For example, for a Kubernetes context named dev-bunny:

$ kubectx dev-bunny
$ make destroy deploy-dev
# wait for operator to be deployed
$ make system-tests

@ChunyiLyu ChunyiLyu marked this pull request as draft December 14, 2020 10:27
- secrets and configmaps mounted with subpath do not
not get updated in pods when changed, as reported in
issue: kubernetes/kubernetes#50345
- RabbitMQ itself supports TLS credential rotation without restart.
By mounting tls secrets without using subpath, rabbitmq pods
will pick up cert changes and support tls rotation
without server restart.
- certificate rotation tested in system tests
@ChunyiLyu ChunyiLyu marked this pull request as ready for review December 15, 2020 19:03
- we should use Expect and Eventually with offset to
make sure that the stack trace points to the failing
line in system tests instead of the helper function
@mkuratczyk mkuratczyk self-requested a review December 16, 2020 12:16
Copy link
Contributor

@mkuratczyk mkuratczyk left a comment

Choose a reason for hiding this comment

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

Thanks!

@ChunyiLyu ChunyiLyu merged commit a637934 into main Dec 16, 2020
@ChunyiLyu ChunyiLyu deleted the tls-rotation branch December 16, 2020 13:22
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.

Add support for TLS rotation without node/cluster restart

4 participants