tests(plugins/rate-limiting) test ssl connection #8662
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This is a retry for #8617, which was rolled back by #8649 because it was unstable.
The SSL connection between the
rate-limiting
plugin andRedis
was not tested.Difference with #8617
config.redis_database
is0
, the default connection pool should be used.server.crt
to avoid theserver.crt
expiration exceed theca.crt
.Full changelog
config.redis_database
is0
, the default connection pool should be used.spec/03-plugins/23-rate-limiting/05-integration_spec.lua
..github/workflows/build_and_test.yml
to enable SSL for Redis in CIspec/fixtures/redis
and add the following filesca.key
: Private key for the root certificateca.crt
: Root Certificateserver.key
: Private key for Redis server certificateserver.crt
: Redis server certificatedocker-entrypoint.sh
: To override the defaultThese certificates should be added to Kong-Pongo and gojira to make it easy for developers to run tests locally.
Related PR: Kong/gojira#45, Kong/kong-pongo#270