postgres-operator/ui/operator_ui
Sai Asish Y 030c24f64e
ui: honor AWS_ENDPOINT in read_basebackups S3 list/get (#3079)
read_stored_clusters and read_versions build their S3 clients with
endpoint_url=AWS_ENDPOINT, but read_basebackups used a bare
client('s3') for both the list_objects_v2 paginator and the per-key
get_object call. On MinIO / S3-compatible backends the list+get
requests go to the default AWS endpoint, so the Backups tab renders
cluster/version prefixes (picked up by the correctly-configured
read_stored_clusters) but then returns empty base backup details
(silently no hits against the real backend) (#3078).

Build s3_client once per call with endpoint_url=AWS_ENDPOINT and reuse
it for both the paginator and get_object. No behaviour change when
AWS_ENDPOINT is unset; boto3 defaults to the AWS endpoint either way.

Fixes #3078

Signed-off-by: SAY-5 <SAY-5@users.noreply.github.com>
Co-authored-by: SAY-5 <SAY-5@users.noreply.github.com>
Co-authored-by: Ida Novindasari <idanovinda@gmail.com>
2026-04-23 17:47:51 +02:00
..
adapters Bump to v1.12.0 (#2639) 2024-05-31 15:29:29 +02:00
static bump to v1.8.2 (#1932) 2022-06-20 14:37:21 +02:00
templates [UI] Remove manual authentication for login user (#2635) 2024-05-23 10:51:46 +02:00
__init__.py Initial commit for Postgres Operator UI (#613) 2019-07-12 17:02:55 +02:00
__main__.py Initial commit for Postgres Operator UI (#613) 2019-07-12 17:02:55 +02:00
backoff.py Initial commit for Postgres Operator UI (#613) 2019-07-12 17:02:55 +02:00
cluster_discovery.py Update UI library dependencies (#2191) 2023-01-27 12:47:30 +01:00
main.py Add support for pg18 and remove pg13 (#3035) 2026-02-17 10:19:19 +01:00
mock.py Initial commit for Postgres Operator UI (#613) 2019-07-12 17:02:55 +02:00
spiloutils.py ui: honor AWS_ENDPOINT in read_basebackups S3 list/get (#3079) 2026-04-23 17:47:51 +02:00
update.py Initial commit for Postgres Operator UI (#613) 2019-07-12 17:02:55 +02:00
utils.py Initial commit for Postgres Operator UI (#613) 2019-07-12 17:02:55 +02:00