Skip to content

CLOUD-727: Bump github.com/flosch/pongo2/v6 from 6.0.0 to 6.1.0#2465

Merged
hors merged 4 commits into
mainfrom
dependabot/go_modules/github.com/flosch/pongo2/v6-6.1.0
May 26, 2026
Merged

CLOUD-727: Bump github.com/flosch/pongo2/v6 from 6.0.0 to 6.1.0#2465
hors merged 4 commits into
mainfrom
dependabot/go_modules/github.com/flosch/pongo2/v6-6.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 7, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/flosch/pongo2/v6 from 6.0.0 to 6.1.0.

Release notes

Sourced from github.com/flosch/pongo2/v6's releases.

v6.1.0 - security and bug-fix update

Changelog

All notable changes to this project will be documented in this file.

[6.1.0] - 2026-05-02

This release is primarily a security and bug-fix update. All users are encouraged to update.

Fixed

  • removetags filter: tag names containing regex metacharacters no longer panic the renderer.
  • {% cycle %} tag: cycle index is now tracked per template execution instead of mutated on the parsed AST node. Concurrent renders of a cached template no longer race, and sequential renders no longer leak state from a previous execution.
  • {% ifchanged %} tag: lastValues/lastContent are now tracked per template execution instead of mutated on the parsed AST node, fixing both a data race under concurrent renders and state leaking between sequential renders of a cached template.
  • {% ifchanged %} tag: rendering an {% ifchanged %} block without an {% else %} branch no longer crashes with a nil-pointer dereference when the watched value is unchanged. Matches Django's behavior of producing no output.
  • {% filter %} tag: BanFilter is now enforced inside {% filter %} blocks.

Changed

  • {% ssi %} plaintext mode now reads the included file through the configured TemplateLoader chain instead of ioutil.ReadFile, so non-filesystem loaders (FSLoader, HttpFilesystemLoader, custom) can serve SSI content.
  • Template error reporting (RawLine) now reads source lines through the template's loader chain instead of opening files directly with os.Open. Error line extraction now works for any TemplateLoader.

Removed

  • SandboxedFilesystemLoader and NewSandboxedFilesystemLoader have been removed. They were marked WIP, never wired into any enforcement path, and behaved as a thin pass-through to LocalFilesystemLoader. Callers should use LocalFilesystemLoader directly; sandboxing should be implemented via a custom TemplateLoader.

    Note: this is technically an API-breaking removal, but the type was unused WIP code that never provided sandboxing.

... (truncated)

Changelog

Sourced from github.com/flosch/pongo2/v6's changelog.

[6.1.0] - 2026-05-02

This release is primarily a security and bug-fix update. All users are encouraged to update.

Fixed

  • removetags filter: tag names containing regex metacharacters no longer panic the renderer.
  • {% cycle %} tag: cycle index is now tracked per template execution instead of mutated on the parsed AST node. Concurrent renders of a cached template no longer race, and sequential renders no longer leak state from a previous execution.
  • {% ifchanged %} tag: lastValues/lastContent are now tracked per template execution instead of mutated on the parsed AST node, fixing both a data race under concurrent renders and state leaking between sequential renders of a cached template.
  • {% ifchanged %} tag: rendering an {% ifchanged %} block without an {% else %} branch no longer crashes with a nil-pointer dereference when the watched value is unchanged. Matches Django's behavior of producing no output.
  • {% filter %} tag: BanFilter is now enforced inside {% filter %} blocks.

Changed

  • {% ssi %} plaintext mode now reads the included file through the configured TemplateLoader chain instead of ioutil.ReadFile, so non-filesystem loaders (FSLoader, HttpFilesystemLoader, custom) can serve SSI content.
  • Template error reporting (RawLine) now reads source lines through the template's loader chain instead of opening files directly with os.Open. Error line extraction now works for any TemplateLoader.

Removed

  • SandboxedFilesystemLoader and NewSandboxedFilesystemLoader have been removed. They were marked WIP, never wired into any enforcement path, and behaved as a thin pass-through to LocalFilesystemLoader. Callers should use LocalFilesystemLoader directly; sandboxing should be implemented via a custom TemplateLoader.

    Note: this is technically an API-breaking removal, but the type was unused WIP code that never provided sandboxing.

Documentation

  • Clarified that pongo2 does not provide a true sandbox. BanTag and BanFilter only refuse to compile templates that reference banned names; they do not isolate Go execution, restrict filesystem access,

... (truncated)

Commits
  • 0d8aa98 chore(release): prepare v6.1.0
  • 75e020c fix(ifchanged): use per-execution state instead of shared AST node state
  • f468d6f fix(cycle): use per-execution state instead of shared AST node state
  • dfa652d fix(ban): synchronize BanTag/BanFilter with template creation
  • 07b2b10 fix(widthratio): render empty string when max is zero
  • 42d30e0 fix(removetags): escape tag-name regex metacharacters
  • c5cf3fc docs(readme): document that template loaders do not clamp to baseDir
  • 9a92a21 fix(ifchanged): handle missing else branch without panic
  • ed38d0b fix(filter): enforce BanFilter inside {% filter %} tag
  • 2818c7d docs: clarify that pongo2 has no real sandbox, only banned tags/filters
  • Additional commits viewable in compare view

egegunes
egegunes previously approved these changes May 7, 2026
gkech
gkech previously approved these changes May 11, 2026
@hors

hors commented May 16, 2026

Copy link
Copy Markdown
Collaborator

@dependabot recreate

@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/flosch/pongo2/v6-6.1.0 branch from b4d350b to 3cbe358 Compare May 16, 2026 17:47
hors
hors previously approved these changes May 18, 2026
@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/flosch/pongo2/v6-6.1.0 branch from 3cbe358 to 803486d Compare May 18, 2026 18:54
@pull-request-size pull-request-size Bot added size/XXL 1000+ lines size/XS 0-9 lines and removed size/XS 0-9 lines size/XXL 1000+ lines labels May 18, 2026
@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/flosch/pongo2/v6-6.1.0 branch 2 times, most recently from cc239ab to a3409a7 Compare May 18, 2026 19:04
@pull-request-size pull-request-size Bot added size/M 30-99 lines size/XS 0-9 lines and removed size/XS 0-9 lines size/M 30-99 lines labels May 18, 2026
Bumps [github.com/flosch/pongo2/v6](https://github.com/flosch/pongo2) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/flosch/pongo2/releases)
- [Changelog](https://github.com/flosch/pongo2/blob/v6.1.0/CHANGELOG.md)
- [Commits](flosch/pongo2@v6.0.0...v6.1.0)

---
updated-dependencies:
- dependency-name: github.com/flosch/pongo2/v6
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/flosch/pongo2/v6-6.1.0 branch from a3409a7 to d82130a Compare May 18, 2026 19:27
@gkech gkech dismissed stale reviews from egegunes and themself via 3559db9 May 25, 2026 17:24
@pull-request-size pull-request-size Bot added size/S 10-29 lines and removed size/XS 0-9 lines labels May 25, 2026
@gkech gkech requested review from egegunes and hors May 25, 2026 18:18
@JNKPercona

Copy link
Copy Markdown
Collaborator
Test Name Result Time
auto-tuning-8-0 passed 00:00:00
allocator-8-0 passed 00:00:00
allocator-8-4 passed 00:00:00
backup-storage-tls-8-0 passed 00:00:00
cross-site-8-0 passed 00:00:00
cross-site-proxysql-8-0 passed 00:00:00
cross-site-proxysql-8-4 passed 00:00:00
custom-users-8-0 passed 00:00:00
demand-backup-cloud-8-0 passed 00:00:00
demand-backup-cloud-8-4 passed 00:00:00
demand-backup-cloud-pxb-8-0 passed 00:00:00
demand-backup-encrypted-with-tls-5-7 passed 00:00:00
demand-backup-encrypted-with-tls-8-0 passed 00:00:00
demand-backup-encrypted-with-tls-8-4 passed 00:00:00
demand-backup-encrypted-with-tls-pxb-5-7 passed 00:00:00
demand-backup-encrypted-with-tls-pxb-8-0 passed 00:00:00
demand-backup-encrypted-with-tls-pxb-8-4 passed 00:00:00
demand-backup-8-0 passed 00:00:00
demand-backup-flow-control-8-0 passed 00:00:00
demand-backup-flow-control-8-4 passed 00:00:00
demand-backup-parallel-8-0 passed 00:00:00
demand-backup-parallel-8-4 passed 00:00:00
demand-backup-without-passwords-8-0 passed 00:00:00
demand-backup-without-passwords-8-4 passed 00:00:00
extra-pvc-8-0 passed 00:00:00
haproxy-5-7 passed 00:00:00
haproxy-8-0 passed 00:00:00
haproxy-8-4 passed 00:00:00
init-deploy-5-7 passed 00:00:00
init-deploy-8-0 passed 00:00:00
limits-8-0 passed 00:00:00
monitoring-2-0-8-0 passed 00:00:00
monitoring-pmm3-8-0 passed 00:00:00
monitoring-pmm3-8-4 passed 00:00:00
one-pod-5-7 passed 00:00:00
one-pod-8-0 passed 00:00:00
pitr-8-0 passed 00:00:00
pitr-8-4 passed 00:00:00
pitr-pxb-8-0 passed 00:00:00
pitr-pxb-8-4 passed 00:00:00
pitr-gap-errors-8-0 passed 00:48:59
pitr-gap-errors-8-4 passed 00:00:00
proxy-protocol-8-0 passed 00:00:00
proxy-switch-8-0 passed 00:00:00
proxysql-sidecar-res-limits-8-0 passed 00:00:00
proxysql-scheduler-8-0 passed 00:00:00
pvc-resize-5-7 passed 00:00:00
pvc-resize-8-0 passed 00:00:00
pvc-auto-resize-5-7 passed 00:00:00
pvc-auto-resize-8-0 passed 00:00:00
recreate-8-0 passed 00:00:00
restore-to-encrypted-cluster-8-0 passed 00:00:00
restore-to-encrypted-cluster-8-4 passed 00:00:00
restore-to-encrypted-cluster-pxb-8-0 passed 00:00:00
restore-to-encrypted-cluster-pxb-8-4 passed 00:00:00
scaling-proxysql-8-0 passed 00:00:00
scaling-8-0 passed 00:00:00
scheduled-backup-5-7 passed 00:00:00
scheduled-backup-8-0 passed 00:00:00
scheduled-backup-8-4 passed 00:00:00
security-context-8-0 passed 00:00:00
smart-update1-8-0 passed 00:00:00
smart-update1-8-4 passed 00:00:00
smart-update2-8-0 passed 00:00:00
smart-update2-8-4 passed 00:00:00
smart-update3-8-0 passed 00:00:00
sst-retry-limit-8-0 passed 00:00:00
sst-retry-limit-8-4 passed 00:00:00
storage-8-0 passed 00:00:00
tls-issue-cert-manager-ref-8-0 passed 00:00:00
tls-issue-cert-manager-8-0 passed 00:00:00
tls-issue-self-8-0 passed 00:00:00
upgrade-consistency-8-0 passed 00:00:00
upgrade-consistency-8-4 passed 00:00:00
upgrade-haproxy-5-7 passed 00:00:00
upgrade-haproxy-8-0 passed 00:00:00
upgrade-proxysql-5-7 passed 00:00:00
upgrade-proxysql-8-0 passed 00:00:00
users-5-7 passed 00:00:00
users-8-0 passed 00:00:00
users-scheduler-8-4 passed 00:00:00
validation-hook-8-0 passed 00:00:00
Summary Value
Tests Run 82/82
Job Duration 01:14:05
Total Test Time 00:48:59

commit: 3559db9
image: perconalab/percona-xtradb-cluster-operator:PR-2465-3559db98

@hors hors merged commit 435384c into main May 26, 2026
1 check passed
@hors hors deleted the dependabot/go_modules/github.com/flosch/pongo2/v6-6.1.0 branch May 26, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants