rgw trust forwarded https not set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph RADOS Gateway Charm |
Fix Committed
|
Undecided
|
Samuel Walladge | ||
Quincy.2 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
For use with encryption, the `rgw trust forwarded https` option must be enabled.
> Requests for server-side encryption must be sent over a secure HTTPS connection to avoid sending secrets in plaintext. If a proxy is used for SSL termination, rgw trust forwarded https must be enabled before forwarded requests will be trusted as secure.
https:/
This option is not currently set by the charm. It should be set, so that SSE-C encryption can work out of the box.
It should be always set if the apache2 proxy with ssl is being used. Not sure the security implications of setting it if ssl is not enabled.
---
Note: a current workaround is to run this:
```
juju config ceph-radosgw config-
```
Which configures /etc/ceph/ceph.conf as required with
```
[global]
rgw trust forwarded https = True
```
description: | updated |
Changed in charm-ceph-radosgw: | |
status: | New → In Progress |
Changed in charm-ceph-radosgw: | |
assignee: | nobody → Samuel Walladge (swalladge) |
Here is the config reference:
https:/ /docs.ceph. com/en/ latest/ radosgw/ config- ref/?highlight= trust%20forward ed%20https# confval- rgw_trust_ forwarded_ https
> Enable this option to trust the Forwarded and X-Forwarded-Proto headers sent by the proxy when determining whether the connection is secure. This is required for some features, such as server side encryption. (Never enable this setting if you do not have a trusted proxy in front of radosgw, or else malicious users will be able to set these headers in any request.)
And the charm has the following for Apache2 as a reverse proxy and TLS termination: /github. com/openstack/ charm-ceph- radosgw/ blob/4484b0f0ed 0c3b32947cfaa96 025dbcc489c4f14 /templates/ openstack_ https_frontend. conf#L24
https:/
> RequestHeader set X-Forwarded-Proto "https"
So I think we can enable the config when TLS is configured by the charm.