Skip to content

chore(openbao): bump openbao chart to 0.25.7 - #2991

Merged
Aleksei Sviridkin (lexfrei) merged 2 commits into
mainfrom
chore/bump-openbao-0.25.7
Jun 23, 2026
Merged

Aleksei Sviridkin (lexfrei) merged 2 commits into
mainfrom
chore/bump-openbao-0.25.7

Conversation

@lexfrei

@lexfrei Aleksei Sviridkin (lexfrei) commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does

Re-vendors the openbao-helm chart from 0.25.3 to 0.25.7 (appVersion v2.5.0 → v2.5.1), the latest in the ^0.25 line the Makefile pins. The vendored tree is byte-identical to a fresh upstream pull; cozystack overrides (injector.enabled: false, csi.enabled: false) are untouched and still render nothing, so the changed runtime surface is the openbao server StatefulSet image.

Security scope (honest accounting): v2.5.1 fixes two OpenBao CVEs — including the critical CVE-2025-68121 (Go stdlib TLS, CVSS 10.0, via a Go 1.25.7 rebuild) and CVE-2026-24051 (otel/sdk). The issue also lists github.com/jackc/pgx/v5 — that is not addressed: pgx is unchanged in v2.5.1 upstream, so it can't be closed by an in-^0.25 bump. libcap2/libexpat are base-image packages picked up incidentally by the rebuild (not verified here). Widening past 0.25.x to 0.28.x (app v2.5.5) would need a CHART_VERSION constraint change plus a 0.26/0.27/0.28 changelog review and is intentionally left out.

Adds helm-unittest coverage (the package shipped none): pins the server image and the injector/CSI-disabled invariants. helm unittest 3/3 pass.

Closes #2895

Release note

chore(openbao): bump openbao chart to 0.25.7 (app v2.5.1, fixes critical CVE-2025-68121)

Summary by CodeRabbit

  • New Features
    • Added support for configuring headless service annotations (including HA standby headless service).
    • Enhanced the Grafana dashboard with consistent dynamic job filtering across Prometheus queries.
  • Updates
    • Upgraded Helm chart to 0.25.7 (OpenBao app v2.5.1).
    • Updated snapshot agent image tag to 0.3.0.
  • Tests
    • Added Helm unit test coverage via a helm unittest Makefile target and new chart rendering invariants.

@coderabbitai

coderabbitai Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1f236356-c57a-49bd-baa6-a404b22561e6

📥 Commits

Reviewing files that changed from the base of the PR and between 2ba61d4 and 041c73c.

📒 Files selected for processing (9)
  • packages/apps/openbao/Chart.yaml
  • packages/system/openbao/Makefile
  • packages/system/openbao/charts/openbao/Chart.yaml
  • packages/system/openbao/charts/openbao/README.md
  • packages/system/openbao/charts/openbao/grafana/dashboards/dashboard.json
  • packages/system/openbao/charts/openbao/templates/_helpers.tpl
  • packages/system/openbao/charts/openbao/templates/server-headless-service.yaml
  • packages/system/openbao/charts/openbao/values.yaml
  • packages/system/openbao/tests/openbao_test.yaml
✅ Files skipped from review due to trivial changes (5)
  • packages/system/openbao/tests/openbao_test.yaml
  • packages/system/openbao/charts/openbao/Chart.yaml
  • packages/apps/openbao/Chart.yaml
  • packages/system/openbao/Makefile
  • packages/system/openbao/charts/openbao/values.yaml
🚧 Files skipped from review as they are similar to previous changes (4)
  • packages/system/openbao/charts/openbao/templates/server-headless-service.yaml
  • packages/system/openbao/charts/openbao/templates/_helpers.tpl
  • packages/system/openbao/charts/openbao/README.md
  • packages/system/openbao/charts/openbao/grafana/dashboards/dashboard.json

📝 Walkthrough

Walkthrough

The PR parameterizes the OpenBao Grafana dashboard by replacing all hardcoded job="openbao-internal" label matchers with a dynamic ${job} template variable. It also adds a dedicated server.service.headless.annotations Helm value with a new helper and template wiring, bumps appVersion to v2.5.1 and snapshotAgent image to 0.3.0, and introduces a Helm unit test suite with a Makefile target.

Changes

Grafana Dashboard Job Selector Parameterization

Layer / File(s) Summary
Dashboard templating variables updated to use ${job}
packages/system/openbao/charts/openbao/grafana/dashboards/dashboard.json
The job variable is now populated via label_values(${metrics_prefix}_core_active,job) with allowCustomValue: false; node, port, and mountpoint variables scope their queries by job="$job" instead of the hardcoded openbao-internal label.
All panel PromQL queries updated to filter by ${job}
packages/system/openbao/charts/openbao/grafana/dashboards/dashboard.json
Every panel query previously using job="openbao-internal" or omitting a job matcher is updated to include job="${job}", covering status, secrets, identity, leases, operations, runtime, tokens, audit, consul, and policy panels.

Headless Service Annotations Support

Layer / File(s) Summary
Headless annotations value, helper, and template wiring
packages/system/openbao/charts/openbao/values.yaml, packages/system/openbao/charts/openbao/templates/_helpers.tpl, packages/system/openbao/charts/openbao/templates/server-headless-service.yaml, packages/system/openbao/charts/openbao/README.md
A headless.annotations: {} block is added under server.service.standby, the openbao.service.headless.annotations helper is defined combining headless-specific and generic annotations via openbao.annotations.render.4, and the server headless Service metadata is updated to call this new helper. The README values table is updated to document the new key.

Chart Version Bump, Image Updates, and Helm Unit Tests

Layer / File(s) Summary
Chart metadata and image version bumps
packages/apps/openbao/Chart.yaml, packages/system/openbao/charts/openbao/Chart.yaml, packages/system/openbao/charts/openbao/README.md, packages/system/openbao/charts/openbao/values.yaml
System chart appVersion bumped to v2.5.1 and version to 0.25.7, apps chart appVersion bumped to v2.5.1, snapshotAgent.image.tag default bumped to 0.3.0, and README badges and values table updated accordingly.
Helm unit test suite and Makefile test target
packages/system/openbao/tests/openbao_test.yaml, packages/system/openbao/Makefile
Adds three chart invariant tests: StatefulSet container image pinned to openbao/openbao:2.5.1, agent injector renders zero documents, and CSI daemonset renders zero documents. Adds a test Makefile target invoking helm unittest ..

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly related issues

Suggested reviewers

  • lllamnyp
  • androndo
  • IvanHunters
  • sircthulhu
  • myasnikovdaniil

Poem

🐇 A rabbit hops through dashboards wide,
No more openbao-internal to hide!
The ${job} variable rules the land,
Headless annotations close at hand.
Version bumped to v2.5.1 so bright,
Tests ensure everything's just right! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: bumping the OpenBao Helm chart version from 0.25.3 to 0.25.7 with app version update from v2.5.0 to v2.5.1.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/bump-openbao-0.25.7

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Trivy (0.69.3)

Trivy execution failed: 2026-06-23T00:32:56Z FATAL Fatal error run error: fs scan error: scan error: scan failed: failed analysis: post analysis error: post analysis error: cloudformation scan error: fs filter error: fs filter error: walk error range error: stat smartylint.json: no such file or directory: range error: stat smartylint.json: no such file or directory


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added area/uncategorized PR auto-labeler could not map title scope to a known area/*; please review kind/cleanup Categorizes issue or PR as related to cleanup of code, process, or technical debt labels Jun 22, 2026
@lexfrei
Aleksei Sviridkin (lexfrei) marked this pull request as ready for review June 22, 2026 15:33
@github-actions github-actions Bot added the size/S This PR changes 10-29 lines, ignoring generated files label Jun 22, 2026
@dosubot dosubot Bot added the security/fixed Fix released label Jun 22, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request performs a routine maintenance update for the OpenBao Helm chart to incorporate the latest upstream changes within the 0.25.x release line. The primary goal is to mitigate identified security vulnerabilities while maintaining existing cozystack-specific configuration overrides. Additionally, the PR introduces automated unit testing for the chart to ensure configuration invariants are preserved in future updates.

Highlights

  • OpenBao Chart Update: Updated the OpenBao Helm chart from version 0.25.3 to 0.25.7, which includes an upgrade to appVersion v2.5.1.
  • Security Fixes: Addressed critical CVE-2025-68121 (Go stdlib TLS) and CVE-2026-24051 (otel/sdk) through the upstream chart update.
  • Testing Improvements: Added new helm-unittest coverage to verify the server image version and ensure that the agent injector and CSI provider remain disabled as per cozystack requirements.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: **/charts/** (6)
    • packages/system/openbao/charts/openbao/Chart.yaml
    • packages/system/openbao/charts/openbao/README.md
    • packages/system/openbao/charts/openbao/grafana/dashboards/dashboard.json
    • packages/system/openbao/charts/openbao/templates/_helpers.tpl
    • packages/system/openbao/charts/openbao/templates/server-headless-service.yaml
    • packages/system/openbao/charts/openbao/values.yaml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment Gemini (@gemini-code-assist) Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on Gemini (@gemini-code-assist) comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a test target to the openbao package Makefile to run Helm unit tests, and introduces a new test suite (openbao_test.yaml) to verify chart rendering invariants. The review feedback suggests improving the precision of the image assertion by using an exact equal check against the full image string instead of a partial regex match.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +12 to +14
- matchRegex:
path: spec.template.spec.containers[0].image
pattern: 'openbao/openbao:2\.5\.1'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Using matchRegex with a partial pattern like 'openbao/openbao:2\.5\.1' is less precise because it would also match other registries (e.g., docker.io/openbao/openbao:2.5.1). Since the registry is explicitly configured as quay.io in values.yaml, it is more robust to use an equal assertion to verify the full image string.

      - equal:
          path: spec.template.spec.containers[0].image
          value: quay.io/openbao/openbao:2.5.1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch — switched the assertion from the partial matchRegex to an equal on the full registry-qualified image (quay.io/openbao/openbao:2.5.1), so it now pins the registry too and fails on an accidental registry change. e626690

Re-vendors the openbao-helm chart from 0.25.3 to 0.25.7 (app v2.5.0 -> v2.5.1),
the latest in the ^0.25 line the Makefile pins, picking up the v2.5.1 security
fix. cozystack overrides (injector + csi disabled) stay valid and render
nothing, so the changed surface is the openbao server StatefulSet image only.

Widening past 0.25.x to 0.28.x (app v2.5.5) would need a CHART_VERSION constraint
change plus a 0.26/0.27/0.28 changelog review and is intentionally left out.

Adds helm-unittest coverage (the package shipped none): pins the server image
and the injector/csi-disabled invariants.

Adaptations:
- charts/: re-vendored via make update (helm pull openbao ^0.25 -> 0.25.7)
- Makefile: add test target
- tests/openbao_test.yaml: new helm-unittest coverage

Assisted-By: Claude <[email protected]>
Signed-off-by: Aleksei Sviridkin <[email protected]>
The managed-service app deploys the system openbao chart, whose server
image follows that chart's appVersion (now v2.5.1). The app Chart.yaml
appVersion ships verbatim on the openbao app CR, so leaving it at 2.5.0
makes every instance misreport its running OpenBAO version.

Assisted-By: Claude <[email protected]>
Signed-off-by: Aleksei Sviridkin <[email protected]>
@github-actions github-actions Bot added size/M This PR changes 30-99 lines, ignoring generated files and removed size/S This PR changes 10-29 lines, ignoring generated files labels Jun 23, 2026

@myasnikovdaniil myasnikovdaniil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: APPROVE

Clean, well-scoped CVE bump. Verified end to end:

Re-vendor hygiene — charts/openbao/ is byte-identical to a fresh upstream helm pull openbao/openbao --version 0.25.7 (diff -ruq exit 0). 0.25.7 is the highest version in the ^0.25 Makefile constraint (next published is 0.28.x), so this is the maximal in-line forward move; widening past 0.25.x would need a CHART_VERSION change as the description notes. No cozystack-local patches live inside the subchart — overrides are only in the umbrella values.yaml (openbao.injector.enabled: false, openbao.csi.enabled: false).

Upgrade safety — rendering both 0.25.3 and 0.25.7 with the cozystack overrides, the only diffs are the server image 2.5.0 → 2.5.1, the cosmetic helm.sh/chart label, and one chomped blank line in the headless Service. No change to the StatefulSet serviceName, selector.matchLabels, or volumeClaimTemplates, and no change to the unseal/init/storage config. updateStrategy: OnDelete keeps the roll operator-controlled.

Tests — the new helm unittest suite is non-vacuous: mutation-testing confirms the image-pin assertion fails on 2.5.0, the injector assertion fails when the override is flipped on (subchart default is global.enabled: true), and the CSI assertion fails when csi is enabled. 3/3 pass.

dev10 — installed the chart standalone; pod came up 1/1 Ready on quay.io/openbao/openbao:2.5.1 (logs show Go Version: go1.25.7, confirming the CVE-2025-68121 stdlib rebuild), initialized and unsealed cleanly. Injector Deployment / CSI DaemonSet / MutatingWebhookConfiguration all absent.

Non-blocking nit below.

template: charts/openbao/templates/csi-daemonset.yaml
asserts:
- hasDocuments:
count: 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit (non-blocking): csi.enabled: false is also the upstream subchart default, so this assertion would still pass even if the cozystack csi.enabled: false override were deleted — unlike the injector assertion, which genuinely guards the override (subchart default is global.enabled: true). It does correctly fail if csi is flipped to true (mutation-verified), so it's not worthless, just weaker than the comment 'cozystack override' implies. Optional to strengthen or note.

@lexfrei
Aleksei Sviridkin (lexfrei) merged commit f8a648a into main Jun 23, 2026
12 checks passed
@lexfrei
Aleksei Sviridkin (lexfrei) deleted the chore/bump-openbao-0.25.7 branch June 23, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/uncategorized PR auto-labeler could not map title scope to a known area/*; please review kind/cleanup Categorizes issue or PR as related to cleanup of code, process, or technical debt security/fixed Fix released size/M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(openbao): bump system/openbao images to current upstream release

2 participants