Skip to content

Commit 479a331

Browse files
authored
Merge pull request #1932 from acelaya-forks/feature/ssl-connections
Feature/ssl connections
2 parents 48d7388 + 5d99b1a commit 479a331

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
77
## [Unreleased]
88
### Added
99
* [#1798](https://github.com/shlinkio/shlink/issues/1798) Experimental support to send visits to an external Matomo instance.
10-
1110
* [#1780](https://github.com/shlinkio/shlink/issues/1780) Add new `NO_ORPHAN_VISITS` API key role.
1211

1312
Keys with this role will always get `0` when fetching orphan visits.
@@ -20,6 +19,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
2019

2120
* [#1905](https://github.com/shlinkio/shlink/issues/1905) Add support for PHP 8.3.
2221
* [#1927](https://github.com/shlinkio/shlink/issues/1927) Allow redis credentials be URL-decoded before passing them to connection.
22+
* [#1834](https://github.com/shlinkio/shlink/issues/1834) Add support for redis encrypted connections using SSL/TLS.
23+
24+
Encryption should work out of the box if servers schema is set tp `tls` or `rediss`, including support for self-signed certificates.
25+
26+
* [#1906](https://github.com/shlinkio/shlink/issues/1906) Add support for RabbitMQ encrypted connections using SSL/TLS.
27+
28+
In order to enable SLL, you need to pass `RABBITMQ_USE_SSL=true` or the corresponding config option.
29+
30+
Connections using self-signed certificates should work out of the box.
2331

2432
### Changed
2533
* [#1799](https://github.com/shlinkio/shlink/issues/1799) RoadRunner/openswoole jobs are not run anymore for tasks that are actually disabled.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
"php-middleware/request-id": "^4.1",
4747
"pugx/shortid-php": "^1.1",
4848
"ramsey/uuid": "^4.7",
49-
"shlinkio/shlink-common": "dev-main#e24ea7b as 5.7",
49+
"shlinkio/shlink-common": "dev-main#a9b5d21 as 5.7",
5050
"shlinkio/shlink-config": "dev-main#cde5d3b as 2.5",
5151
"shlinkio/shlink-event-dispatcher": "dev-main#35ccc0b as 3.1",
5252
"shlinkio/shlink-importer": "dev-main#d621b20 as 5.2",
53-
"shlinkio/shlink-installer": "dev-develop#f31c242 as 8.6",
53+
"shlinkio/shlink-installer": "dev-develop#18829f7 as 8.6",
5454
"shlinkio/shlink-ip-geolocation": "dev-main#4a1cef8 as 3.3",
5555
"shlinkio/shlink-json": "dev-main#e5a111c as 1.1",
5656
"spiral/roadrunner": "^2023.2",

config/autoload/installer.global.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
Option\QrCode\DefaultRoundBlockSizeConfigOption::class,
6565
Option\RabbitMq\RabbitMqEnabledConfigOption::class,
6666
Option\RabbitMq\RabbitMqHostConfigOption::class,
67+
Option\RabbitMq\RabbitMqUseSslConfigOption::class,
6768
Option\RabbitMq\RabbitMqPortConfigOption::class,
6869
Option\RabbitMq\RabbitMqUserConfigOption::class,
6970
Option\RabbitMq\RabbitMqPasswordConfigOption::class,

config/autoload/rabbit.global.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
'rabbitmq' => [
1010
'enabled' => (bool) EnvVars::RABBITMQ_ENABLED->loadFromEnv(false),
1111
'host' => EnvVars::RABBITMQ_HOST->loadFromEnv(),
12+
'use_ssl' => (bool) EnvVars::RABBITMQ_USE_SSL->loadFromEnv(false),
1213
'port' => (int) EnvVars::RABBITMQ_PORT->loadFromEnv('5672'),
1314
'user' => EnvVars::RABBITMQ_USER->loadFromEnv(),
1415
'password' => EnvVars::RABBITMQ_PASSWORD->loadFromEnv(),

module/Core/src/Config/EnvVars.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ enum EnvVars: string
3131
case RABBITMQ_USER = 'RABBITMQ_USER';
3232
case RABBITMQ_PASSWORD = 'RABBITMQ_PASSWORD';
3333
case RABBITMQ_VHOST = 'RABBITMQ_VHOST';
34+
case RABBITMQ_USE_SSL = 'RABBITMQ_USE_SSL';
3435
/** @deprecated */
3536
case RABBITMQ_LEGACY_VISITS_PUBLISHING = 'RABBITMQ_LEGACY_VISITS_PUBLISHING';
3637
case MATOMO_ENABLED = 'MATOMO_ENABLED';

0 commit comments

Comments
 (0)