Commit Graph

11 Commits

Author SHA1 Message Date
Luke Bakken ce86fb989e
Remove all usage of `cacerts` from configuration schemas
As mentioned in discussion #14426, the way that `cacerts` is handled by
cuttlefish schemas simply will not work if set.

If `cacerts` were set to a string value containing one X509 certificate,
it would eventually result in a crash because the `cacerts` ssl option
must be of [this type](https://www.erlang.org/doc/apps/ssl/ssl.html#t:client_option_cert/0):

```
{cacerts, CACerts :: [public_key:der_encoded()] | [public_key:combined_cert()]}
```

Neither of those are strings, of course.

This PR removes all use of `cacerts` in cuttlefish schemas. In addition,
it filters out `cacerts` and `certs_keys` from being JSON-encoded by an
HTTP API call to `/api/overview`. It _is_ technically possible to set
`cacerts` via `advanced.config`, so, if set, it would crash this API
call, as would `certs_keys`.
2025-10-01 08:14:14 -07:00
Michael Klishin 8b90d4a27c Allow for tagged values for a few more rabbitmq.conf settings 2024-08-13 16:27:00 -04:00
Luke Bakken 35f5f813f4 Add server_name_indication/sni and hostname_verfication to cuttlefish schema 2024-05-31 12:34:30 -07:00
Marcial Rosales aa388039ea Add ssl_options to schema 2024-05-31 12:34:30 -07:00
Michael Klishin 471294af67
AuthN/Z backend HTTP: rename two new settings, add tests 2021-06-24 23:26:13 +10:00
SzumiecM bfe648e92d Add configurable timeout to HTTP connections 2021-06-24 02:02:54 -07:00
Michael Klishin 84c7093e88 Add HTTP method field to Cuttlefish schema
Fixes #61.

(cherry picked from commit 38f77443935f4dc873429830bc57489051fa656d)
2017-12-19 18:33:37 +03:00
Daniil Fedotov aa6266d8e5 Shorter prefix for configuration keys 2017-02-09 10:55:10 +00:00
Arnaud Cogoluègnes 72a844dd76 Implement check_topic_access callback
References rabbitmq/rabbitmq-server#505
2016-12-29 08:58:10 +01:00
Michael Klishin ba6238fb3a Use full module name
"http" is too generic.
2016-03-23 11:24:51 +03:00
Daniil Fedotov 4300d1e986 cuttlefish schema 2016-02-19 11:30:13 +00:00