12328 Commits

Author SHA1 Message Date
Julian Brost
eab07a7318 Provide a conversion function from icinga::String to boost::string_view
Boost.Beast changed the signature of
boost::beast::http::basic_fields::set in version 1.74 so that no longer
allows passing an icinga::String instance as value. This adds a
conversion function so that it works again.
2020-12-22 16:27:38 +01:00
Julian Brost
339b37a985 Use content_length method for setting the Content-Length header
Boost.Beast changed the signature of the previously used generic `set`
method so that it no longer accepts integer types, however there is
alreay a more specific method for setting the Content-Length header, so
use this one instead.
2020-12-22 16:27:38 +01:00
Alexander Aleksandrovič Klimov
6145525482
Merge pull request #8191 from Icinga/bugfix/build-fails-with-boost-1-74-8185
Define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT
2020-12-22 15:12:14 +01:00
Alexander Aleksandrovič Klimov
769a899749
Merge pull request #7891 from Icinga/bugfix/api-put-object-deletion-7726
ConfigObjectUtility#CreateObject(): check config objects for duplicates
2020-12-17 09:28:26 +01:00
Alexander A. Klimov
4051bc9c8f ConfigObjectUtility#CreateObject(): check config objects for duplicates
... not to delete already existing objects during a trial of re-creation.

refs #7726
2020-12-16 16:45:22 +01:00
Noah Hilverling
f7e368564f
Merge pull request from GHSA-pcmr-2p2f-r7j6
Verify certificates against CRL before renewing them (2.13)
2020-12-15 12:30:19 +01:00
Alexander Aleksandrovič Klimov
6b04ef6e5d
Merge pull request #7871 from Icinga/feature/more-uoms-for-perfdata-7225
PerfdataValue: add UoMs
2020-12-14 18:42:49 +01:00
Alexander A. Klimov
34942a3511 Define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT
... to enable compiling with Boost v1.74.

refs #8185
2020-12-14 15:59:56 +01:00
Alexander Aleksandrovič Klimov
b06ea2bef7
Merge pull request #8558 from Icinga/probot/update-authors/master/a9f94957a461109544d2a9f9aa9879d9b38fcf04
Update AUTHORS
2020-12-11 15:44:47 +01:00
icinga-probot[bot]
1190d61c82
Update AUTHORS 2020-12-11 14:43:34 +00:00
Alexander Aleksandrovič Klimov
a9f94957a4
Merge pull request #8556 from Bobobo-bo-Bo-bobo/bugfix/documentation_typos_8546
Fix typos in API documentation
2020-12-11 15:43:27 +01:00
Alexander Aleksandrovič Klimov
915a3c3001
Merge pull request #8436 from Icinga/bugfix/children-recover-too-late
On recovery: re-check children
2020-12-11 15:41:31 +01:00
Andreas Maus
d891c3f932 Fix typos in API documentation
Correct example for "acknowledge-problem" in the API documentation
(Issue#8546)
2020-12-11 11:25:02 +01:00
Noah Hilverling
eee76f707e
Merge pull request #8555 from Icinga/probot/update-authors/master/6b6d1269ad9b89c52ad5b865c02feac5d783ff5c
Update AUTHORS
2020-12-11 09:27:53 +01:00
icinga-probot[bot]
caf84a89dd
Update AUTHORS 2020-12-11 08:26:08 +00:00
Noah Hilverling
6b6d1269ad
Merge pull request #8554 from Icinga/bugfix/mailmap
Update .mailmap
2020-12-11 09:25:59 +01:00
Alexander A. Klimov
0a3a169a40 Update .mailmap 2020-12-10 18:29:32 +01:00
Alexander Aleksandrovič Klimov
16616fd989
Merge pull request #8538 from lyknode/bugfix/typo-doc-itl-haproxy
docs: fix typo in haproxy check description
2020-12-10 18:25:41 +01:00
Noah Hilverling
826f999c47
Merge pull request #8521 from Icinga/feature/fedora30
GitHub actions: drop Fedora 30
2020-12-10 15:54:00 +01:00
Alexander Aleksandrovič Klimov
366a97bf19
Merge pull request #8541 from Icinga/bugfix/openssl-error-buffer
Use proper buffer size for OpenSSL error messages
2020-12-09 16:08:19 +01:00
Julian Brost
846da031e5
Merge pull request #8301 from Icinga/bugfix/doc-syntax-highlighting-8146
Docs: enable syntax highlighting
2020-12-09 12:57:20 +01:00
Alexander A. Klimov
51b3d88d22 Docs: enable syntax highlighting
refs #8146
2020-12-09 12:32:09 +01:00
Julian Brost
4c0247c02d Allow specifying a CRL in icinga2 pki verify 2020-12-09 12:12:01 +01:00
Julian Brost
e86bd24348 Verify certificates against CRL before renewing them
When a CRL is specified in the ApiListener configuration, Icinga 2 only
used it when connections were established so far, but not when a
certificate is requested. This allows a node to automatically renew a
revoked certificate if it meets the other conditions for auto-renewal
(issued before 2017 or expires in less than 30 days).
2020-12-09 12:10:59 +01:00
Alexander Aleksandrovič Klimov
c788709593
Merge pull request #8535 from Icinga/bugfix/api-default-ipv6-8183
Configuration.ApiBindHost: default to ::
2020-12-09 11:32:30 +01:00
Julian Brost
7c76e7e5f4
Merge pull request #8534 from Icinga/bugfix/icinga2-node-setup-actual-parameter-8531
List the actual CLI parameters in the node setup docs
2020-12-08 17:48:48 +01:00
Baptiste Beauplat
2bdd4a8652
docs: fix typo in haproxy check description 2020-12-08 15:05:55 +01:00
Julian Brost
bbfd1ecfc8 Use ERR_error_string_n() instead of ERR_error_string()
Explicitly pass the actual length of the buffer to avoid overflows.
2020-12-08 13:08:18 +01:00
Julian Brost
c0fc9a86c5 Increase size of buffer for OpenSSL error messages
According to man 3 ERR_error_string, "buf must be at least 256 bytes
long", therefore increase the buffer size to 256 everywhere.
2020-12-08 13:08:18 +01:00
Julian Brost
61d7ec4bf7 Remove std::string to_string(const errinfo_openssl_error& e)
The function was never used and it's implementation contains a bug where
a buffer of too small size is used as a paramter to ERR_error_string.
According to the `man 3 ERR_error_info`, the buffer has to be at least
256 bytes in size.

Also the function seems of limited use as it allows to output the tag
object used with additional error information for exceptions in Boost.
However, you boost::get_error_info<>() just returns the value type but
not the full tag object from the exception.
2020-12-08 13:05:38 +01:00
Alexander A. Klimov
b3dd9502ff List the actual CLI parameters in the node setup docs
refs #8531
2020-12-04 17:05:04 +01:00
Alexander A. Klimov
b8bb8cb946 Configuration.ApiBindHost: default to ::
refs #8183
2020-12-04 16:52:58 +01:00
Julian Brost
f2a532de32
Merge pull request #8035 from Icinga/feature/expiry-date-comments-4663
/v1/actions/add-comment: add param expiry
2020-12-04 15:48:50 +01:00
Julian Brost
d84a903a02
Merge pull request #8294 from Icinga/bugfix/doc-sort-global-functions
Sort doc/18-library-reference.md
2020-12-04 15:19:29 +01:00
Alexander Aleksandrovič Klimov
6f33c2f90c
Merge pull request #8314 from Icinga/feature/add-support-influxdb-basic-auth-7644
Add support Influxdb basic auth
2020-12-03 11:00:04 +01:00
Julian Brost
2c9233eff3
Merge pull request #8221 from Icinga/feature/doc-node-wizard-verify-command
Document command for verifying the parent node's cert
2020-12-03 09:41:17 +01:00
Yonas Habteab
2ade57bcbb Add support influxdb basic auth
fixes #7644
2020-12-02 16:48:03 +01:00
Julian Brost
9b6326ce72
Merge pull request #8527 from Icinga/bugfix/mailmap
Update .mailmap
2020-12-02 12:33:50 +01:00
Alexander A. Klimov
b800daaab8 Update .mailmap 2020-12-02 12:30:48 +01:00
Julian Brost
f8f00139cf
Merge pull request #8458 from widhalmt/doc/satellites
docs: Add section about usage of satellites
2020-12-02 12:26:16 +01:00
Alexander A. Klimov
854939a8ce On recovery: re-check children 2020-12-02 12:24:40 +01:00
Julian Brost
9cf90eee2b
Merge pull request #8498 from MarcusCaepio/master
Added new options for ipmi-sensor to ITL
2020-12-02 12:24:36 +01:00
Alexander A. Klimov
668bf06424 Don't fire suppressed notifications if last parent recovery >= last check result 2020-12-02 12:03:19 +01:00
Alexander Aleksandrovič Klimov
ac531cf422
Merge pull request #8524 from Icinga/probot/update-authors/master/9e85dc088e4c5e1779d88d52f2f2190c2fcfc783
Update AUTHORS
2020-12-02 11:59:12 +01:00
icinga-probot[bot]
681710829e
Update AUTHORS 2020-12-02 10:58:26 +00:00
Julian Brost
9e85dc088e
Merge pull request #8523 from Icinga/bugfix/mailmap
Update .mailmap
2020-12-02 11:58:19 +01:00
Alexander A. Klimov
00c77f51db Update .mailmap 2020-12-02 11:11:09 +01:00
Alexander Aleksandrovič Klimov
bee4ac7f7c
Merge pull request #8040 from Icinga/feature/v1-actions-execute-command-8034
Add API endpoint: /v1/actions/execute-command
2020-12-02 10:53:24 +01:00
Julian Brost
5224648ee0
Merge pull request #8451 from Icinga/bugfix/http
s/http/https/g
2020-12-02 10:40:58 +01:00
Noah Hilverling
43cb464dfb
Merge pull request #8519 from Icinga/feature/fedora29
GitHub actions: drop Fedora 29
2020-12-02 08:50:20 +01:00