You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting up pgbouncer (1.24.0-3.pgdg24.04+1) ...
Configuration file '/etc/pgbouncer/pgbouncer.ini'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version.*** pgbouncer.ini (Y/I/N/O/D/Z) [default=N] ?
Feel like I need to address the insecure (by default) Autobase console issue as a priority ... 🔥 🧑🚒
If anyone between me and the server (quite a few hops) intercepts the request they can use it to gain access to the Hetzner API keys and spin up servers for any nefarious purpose ... 😕
@nelsonic Hi! Just a quick clarification to avoid confusion:
The /primary health check endpoint on port 8008 is designed to return HTTP 200 only on the current primary node. This is intentional, as there can be only one primary in a Patroni-managed PostgreSQL cluster. Conversely, the /replica endpoint returns 200 on replica nodes.   
This behavior is leveraged by load balancers to route traffic appropriately: 
Write traffic is directed to the node where /primary returns 200.
Read traffic is distributed among nodes where /replica returns 200. 
For a visual representation of this load balancing logic, refer to the diagram below:
This setup ensures that clients always connect to the appropriate node based on their read/write requirements. 
Activity
nelsonic commentedon Mar 21, 2025
Continue: https://console.hetzner.cloud/projects/3886115/servers/57770120/overview
nelsonic commentedon Mar 21, 2025
https://askubuntu.com/questions/258297/should-i-always-restart-the-system-when-i-see-system-restart-required
Broadcast message from root@ubuntu-4gb-fsn1-2-autobase-console on pts/1 (Fri 2025-03-21 05:54:50 UTC): The system will reboot now!nelsonic commentedon Mar 21, 2025
https://askubuntu.com/questions/449032/29-packages-can-be-updated-how
Took a few minutes. ⏳
Everything up-to-date now. ✅
nelsonic commentedon Mar 21, 2025
Now I'm going to
SSHinto each of the Nodes in the cluster and run the same updates.nelsonic commentedon Mar 21, 2025
On the first node in the cluster, executed:
Got:
Chose
Nto keep the currently-installed version.Then:
Did this for all 3 nodes in the cluster. ✅
1 remaining item
nelsonic commentedon Mar 21, 2025
Decided to
DELETEthepostgres-cluster-01-replica(Replica Load Balancer) because it's not needed:nelsonic commentedon Mar 21, 2025
So now we only have the one Load Balancer:
https://console.hetzner.cloud/projects/3886115/loadbalancers/2226998/overview
No progress on the "health" of the 2/3 targets. ⏳
nelsonic commentedon Mar 21, 2025
I've done a bit of googling: "hetzner load balancer targets unhealthy" etc. 🔍
But none of the Reddit pages were helpful. 🙅
Reading: https://gitlab.com/postgres-ai/postgres-checkup
nelsonic commentedon Mar 21, 2025
Better reading than the
READMEof the project: https://postgres.ai/docs/checkupnelsonic commentedon Mar 21, 2025
PDF snapshot: Overview-postgres-checkup_Postgres.AI.pdf
nelsonic commentedon Mar 21, 2025
Viewing the
Autobasedashboard:Status is "healthy" ...
And viewing the cluster there is no additional info or reason for concern:
nelsonic commentedon Mar 21, 2025
note: yes, it bugs me too that the
Autobaseconsole ishttpnothttps(i.e. insecure) bydefault... 😕Attempting to view the page with
httpsfails:I feel like this needs to be addressed as
P1becauseMITMis inevitable.nelsonic commentedon Mar 21, 2025
Feel like I need to address the insecure (by
default)Autobaseconsole issue as a priority ... 🔥 🧑🚒If anyone between me and the server (quite a few hops) intercepts the request they can use it to gain access to the
HetznerAPI keys and spin up servers for any nefarious purpose ... 😕nelsonic commentedon Mar 21, 2025
Side-quest: #105
nelsonic commentedon Mar 23, 2025
A couple of days later after updates & reboots of the servers and nothing has changed on the "health" front:
I will continue investigating. 🔍
nelsonic commentedon Mar 25, 2025
autobasereports the cluster as healthy:https://autobase.dwy.is/clusters
Closing as there's nothing
elseI can do on this. 🙃vitabaks commentedon Jun 5, 2025
@nelsonic Hi! Just a quick clarification to avoid confusion:
The
/primaryhealth check endpoint on port8008is designed to return HTTP 200 only on the current primary node. This is intentional, as there can be only one primary in a Patroni-managed PostgreSQL cluster. Conversely, the/replicaendpoint returns 200 on replica nodes.   This behavior is leveraged by load balancers to route traffic appropriately: 
For a visual representation of this load balancing logic, refer to the diagram below:
This setup ensures that clients always connect to the appropriate node based on their read/write requirements. 
Source code: https://github.com/vitabaks/autobase/blob/2.2.0/automation/roles/cloud-resources/tasks/hetzner.yml#L550-L559
nelsonic commentedon Jun 16, 2025
@vitabaks great diagram + explanation. Thanks. 👌