dabla commented on code in PR #77468: URL: https://github.com/apache/airflow/pull/77468#discussion_r4705106599
########## chart/newsfragments/74647.significant.rst: ########## @@ -15,5 +20,12 @@ PgBouncer 1.24 and 1.25 change some behaviour: * ``KILL_CLIENT`` is restricted to users listed in ``admin_users`` (CVE-2026-6667). * A custom ``auth_query`` must take the password's ``VALID UNTIL`` into account (CVE-2025-2291). -The first three are defaults, and the previous values can be restored through ``pgbouncer.extraIni``. -The last three need no action: the old name still works, and the two security fixes cannot be turned off. +PgBouncer 1.26 changes some further behaviour: + +* ``search_path`` is now tracked per client in transaction pooling by default; set + ``ignore_startup_parameters = search_path`` to restore the 1.25 behaviour (CVE-2026-6669 fix). Review Comment: **[warning]** The `search_path` bullet names the wrong CVE and gives advice that does not fit the chart. - "(CVE-2026-6669 fix)": CVE-2026-6669 is the unbounded SCRAM iteration count accepted from a server. Tracking `search_path` is listed under *Features* in the [1.26.0 release notes](https://github.com/pgbouncer/pgbouncer/releases/tag/pgbouncer_1_26_0), not as a security fix, so the bracket should go. - The same notes say `search_path` is tracked "on PostgreSQL 18 and above" only. Without that, readers on PostgreSQL 17 or older will look for a change that does not reach them. - "set ``ignore_startup_parameters = search_path``": the chart already renders that key itself, as `ignore_startup_parameters = extra_float_digits` ([`_helpers.yaml` L629](https://github.com/apache/airflow/blob/ec2bd5eafe17052d752ca72c0cfdc4ed534f8ac5/chart/templates/_helpers.yaml#L629)), and has no value for it. The sentence should say where a user sets it (``pgbouncer.extraIni``) and that the value has to keep `extra_float_digits`, i.e. `ignore_startup_parameters = extra_float_digits, search_path`. I have not tested that a second occurrence of the key in `extraIni` wins over the templated one; worth a quick check with the 1.26.1 binary before the text promises it. ########## chart/values.yaml: ########## @@ -113,11 +113,11 @@ images: pullPolicy: IfNotPresent pgbouncer: repository: apache/airflow - tag: airflow-pgbouncer-2026.10.13-1.25.2 + tag: airflow-pgbouncer-2026.11.22-1.26.1 Review Comment: **[warning]** Neither new default tag exists on Docker Hub yet, and the green Kubernetes jobs do not show otherwise. Checked again on 2026-11-26: `apache/airflow:airflow-pgbouncer-2026.11.22-1.26.1` and `apache/airflow:airflow-pgbouncer-exporter-2026.11.22-0.22.0` both return 404 from the Docker Hub tags API. That is expected for a contributor PR, the push needs Docker Hub rights, so this is a note for whoever merges: both `build_and_push.sh` scripts have to be run from this commit before the chart is released. Same for line 120. The K8S system tests passed on this head, but I found no reference to PgBouncer under `kubernetes-tests/`, so they appear not to deploy it and say nothing about these images. For the maintainers: the tags `main` points at today (`airflow-pgbouncer-2026.10.13-1.25.2`, `airflow-pgbouncer-exporter-2026.10.13-0.21.0`, from #74647) return 404 as well; the newest PgBouncer tags published are the `2026.04.17` ones. If that push is still pending it can be skipped in favour of this one. ########## chart/newsfragments/74647.significant.rst: ########## @@ -15,5 +20,12 @@ PgBouncer 1.24 and 1.25 change some behaviour: * ``KILL_CLIENT`` is restricted to users listed in ``admin_users`` (CVE-2026-6667). * A custom ``auth_query`` must take the password's ``VALID UNTIL`` into account (CVE-2025-2291). -The first three are defaults, and the previous values can be restored through ``pgbouncer.extraIni``. -The last three need no action: the old name still works, and the two security fixes cannot be turned off. +PgBouncer 1.26 changes some further behaviour: + +* ``search_path`` is now tracked per client in transaction pooling by default; set + ``ignore_startup_parameters = search_path`` to restore the 1.25 behaviour (CVE-2026-6669 fix). +* The legacy online-restart flags ``-R``, ``SUSPEND``, and ``SHOW FDS`` are removed. +* Passwords in ``auth_file`` can now be up to 65 530 bytes (the truncation bug from 1.24 is fixed). Review Comment: **[warning]** The password bullet does not match the release notes or the issue this PR closes. - "65 530 bytes": the [1.26.0 release notes](https://github.com/pgbouncer/pgbouncer/releases/tag/pgbouncer_1_26_0) say "Increase the maximum length of passwords to 65535 bytes, matching libpq". - "the truncation bug from 1.24": #76743 reports the failure on the `1.23.1` image too and describes a fixed 2048-byte buffer in every PgBouncer before 1.26.0, so nothing started in 1.24. The entry is also rejected, not truncated (`ERROR password too long in auth file`, then an empty password and failed server logins); someone searching the release notes for that error will not find it under "truncation". Suggested: "Passwords in ``auth_file`` can now be up to 65535 bytes. Earlier versions rejected entries longer than 2047 characters (``password too long in auth file``), which broke long cloud IAM tokens." -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
