Commit graph

24 commits

Author SHA1 Message Date
Bastian Lederer
8622514fcd Change implicit nullable type declaration to explicit
Since PHP 8.4 implicitly nullable parameter types are deprecated.

Normalize scoped PHPDoc for nullable-parameter updates: use `?Type` instead of
`Type|null` and remove column alignment.

Co-authored-by: "Eric Lippmann <eric.lippmann@icinga.com>"
2026-03-19 22:08:30 +01:00
Eric Lippmann
272e791390 License source files as GPL-3.0-or-later
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 14:03:05 +01:00
jrauh01
3c7228686c
Print redis config file if saving failed (#1272)
If saving the Redis settings fails due to a write error, the desired
configuration file content is now displayed so that the user can deploy
it manually (Same behavior as with database configuration).

For that a catch block is introduced on the `NotWritableError` that is
added to `IniWriter::write()` in
https://github.com/Icinga/icingaweb2/pull/5404.

Refs https://github.com/Icinga/icingaweb2/pull/5404
Resolves #1269
2025-11-17 13:19:13 +01:00
Johannes Meyer
67b755b86d
RedisConfigForm: Catch write errors during save (#1208)
refs #1089
2025-06-10 15:23:52 +02:00
Will_i_code
56371be50c
Add support for redis acl/username and database selection (#1165)
resolves #1044
2025-05-14 09:53:32 +02:00
raviks789
d3d746f2ec RedisConfigForm: Use empty string as default path for unset client certificate and key 2025-04-30 13:40:26 +02:00
Sukhwinder Dhillon
b2a512dc1b Forms: Don't autocomplete password elements
- Setting `autocomplete` to `off` does not work, but `new-password` does.
2023-09-08 16:32:24 +02:00
Sukhwinder Dhillon
d3c891578e RedisConfigForm: Fix Variable '$pem' is probably undefined 2023-09-05 14:26:42 +02:00
Johannes Meyer
b3c5caf3d6 RedisConfigForm: Properly clear empty sections/options
fixes #672
2022-11-02 15:35:11 +01:00
Johannes Meyer
992eebba3b RedisConfigForm: Properly store password of 2nd redis
fixes #670
2022-11-02 14:48:27 +01:00
VerboEse
c5d842f156
Support for redis password (#496) 2022-03-31 15:33:58 +02:00
Yonas Habteab
aefd0e1f7d Add PHP 7 argument & return type declarations to all member methods 2021-11-03 16:06:59 +01:00
Johannes Meyer
2b480c881d Make Icinga\Module\Icingadb\Common\IcingaRedis a singleton
This limits the connection attempts and established connections
to a single one. Previously we made as many as we've accessed redis.
2021-09-21 15:30:29 +02:00
Johannes Meyer
1f1c33b8f4 Store redis connections in a separate file 2021-09-10 14:21:33 +02:00
Johannes Meyer
213b860fee RedisConfigForm: Fix fieldset descriptions 2021-07-16 10:56:47 +02:00
Johannes Meyer
0984e240c5 RedisConfigForm: Enhance validation 2021-07-16 10:56:47 +02:00
Johannes Meyer
a0a9c4cbf7 RedisConfigForm: Properly clean-up unused pem files 2021-07-16 10:32:39 +02:00
Johannes Meyer
bbef9fd363 RedisConfigForm: Store pem files on disk, not in config 2021-07-15 18:02:04 +02:00
Alexander A. Klimov
0e1771a3c2 Redis connection: support TLS 2021-07-15 18:02:04 +02:00
Johannes Meyer
7d602ac03f RedisConfigForm: Validate the configuration upon save 2020-04-30 15:19:10 +02:00
Johannes Meyer
2e191a6826 Use t() instead of translate() in controllers and forms
There's no `icingadb` domain so why should we ask everytime
for it. `t()` only utilizes the `icinga` domain and that's
what we need.
2020-04-24 15:01:29 +02:00
Johannes Meyer
5e441c93a0 Add license note to every file 2020-03-13 10:36:24 +01:00
Johannes Meyer
97b8f4b61c RedisConfigForm: Avoid term master-master 2020-03-09 14:53:56 +01:00
Eric Lippmann
32959ec9c4 Allow to configure the Redis connection(s) 2019-12-06 09:49:28 +01:00