-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Hi everyone! 👋
Currently for backups, we integrate the charm with s3-integrator and then the charm communicates with the S3 endpoint directly.
Instead, the charm should use the model configs juju-http-proxy
/juju-https-proxy
/juju-no-proxy
and use a HTTP proxy to communicate with the S3 endpoint, if those are set.
Steps to reproduce
- juju model-config juju-http-proxy="http://my-proxy.internal:3128" # Example
- juju model-config juju-https-proxy="http://my-proxy.internal:3128" # Example
- juju model-config juju-no-proxy="127.0.0.1,localhost,::1,10.1.0.0/16" # Example
- juju deploy postgresql --channel="14/stable" -n 3
- juju deploy s3-integrator
- juju relate s3-integrator postgresql
- juju run s3-integrator sync-s3-credentials access-key="..." secret-key="..."
Expected behavior
Communication to S3 happens via a proxy set using Juju Model Configs juju-http-proxy
/juju-https-proxy
/juju-no-proxy
.
Actual behavior
PostgreSQL try to perform the backups by connecting directly to the S3 endpoint, not using the proxy:
https://pastebin.canonical.com/p/VT8nVCsb7q/
Versions
Operating system: Ubuntu 24.04
Juju CLI: 3.6.8-ubuntu-amd64
Juju agent: 3.6.8
Charm revision: 14/stable - 553
LXD: N/A (using Openstack)
Log output
https://pastebin.canonical.com/p/VT8nVCsb7q/
Additional context
This is a blocker for all PostgreSQL deployments on PS7, PS8+.