Skip to content

170 - #63

Merged
alvagante merged 2 commits into
mainfrom
170
Oct 30, 2026
Merged

170#63
alvagante merged 2 commits into
mainfrom
170

Conversation

@alvagante

Copy link
Copy Markdown
Member

No description provided.

- Move the GHCR and Docker Hub logins ahead of the build in publish.yml
  so credential problems fail fast instead of after the long build and
  smoke/scan stages.
- Upgrade perl-base alongside libpcre2-8-0 in the runtime image to pick
  up the fixed package.
- Document the required DOCKERHUB_USERNAME and DOCKERHUB_TOKEN secrets
  and how to recover from Docker Hub "unauthorized" errors.
- Add a regression test asserting both logins precede the candidate build.
- Bump version to 1.6.1 across packages, lockfile, OpenAPI, Helm chart,
  Dockerfile labels, health endpoint and UI header.
- Update zod to 4.6.7 (GHSA-mrhx-c7xc-m3w5); backend imports move to
  "zod/v3" so validation behaviour is unchanged.
- Pin @azure/msal-node to 7.1.1 via npm override (GHSA-xcx6-jx8p-x3h5);
  refresh @azure/identity, body-parser, fast-uri, iconv-lite and others.
- Publish only <version>, latest, batteries-<version> and batteries
  tags; drop major, minor and commit-SHA tag families.
- Add a clean-install check (git archive export, cold npm cache) to CI,
  and gate image publishing on it in the release workflow.
Copilot AI balanced review requested due to automatic review settings October 30, 2026 08:38

Copilot AI 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.

🟡 Changes recommended

Backend schemas still use the vulnerable zod/v3 parser, which processes every element in oversized arrays despite .max() failures, leaving the critical resource-exhaustion issue unresolved by the package upgrade.

1 open issue
What changed in this PR

Prepares Pabawi 1.6.1 with dependency updates, consistent release metadata, and stricter container publishing checks.

Changes:

  • Refreshes dependencies and updates backend imports to Zod’s v3 compatibility API.
  • Adds cold-cache source-install checks, moves registry authentication before builds, and simplifies release tags.
  • Updates version metadata, release notes, deployment guidance, and workflow tests.
File Description
scripts/​deployment/​docker-images.test.mjs Tests release tags and authentication order.
package.json Bumps version and overrides MSAL dependency.
package-lock.json Records refreshed dependencies and versions.
frontend/​src/​components/​Navigation.svelte Displays version 1.6.1.
frontend/​package.json Bumps frontend version.
docs/​openapi.yaml Updates API version metadata.
docs/​deployment/​docker.md Documents registry credentials and publishing checks.
Dockerfile.ubuntu Updates image version label.
Dockerfile.alpine Updates image version label.
Dockerfile Updates version label and upgrades perl-base.
charts/​pabawi/​Chart.yaml Updates application version.
CHANGELOG.md Records security and release-process changes.
backend/​test/​security/​jazzy-launching-wombat-regressions.test.ts Uses Zod v3 compatibility import.
backend/​test/​properties/​config/​secret-validation.property.test.ts Uses compatible Zod error class.
backend/​src/​validation/​rbacSchemas.ts Uses Zod v3 for RBAC schemas.
backend/​src/​validation/​commonSchemas.ts Uses Zod v3 for shared schemas.
backend/​src/​utils/​errorHandling.ts Uses compatible Zod error class.
backend/​src/​services/​PuppetExecution.ts Uses Zod v3 for Puppet validation.
backend/​src/​services/​journal/​types.ts Uses Zod v3 for journal schemas.
backend/​src/​services/​ExecutionDispatcher.ts Uses Zod v3 for execution validation.
backend/​src/​server.ts Updates health endpoint version.
backend/​src/​routes/​users.ts Uses Zod v3 schemas and errors.
backend/​src/​routes/​tasks.ts Uses Zod v3 validation.
backend/​src/​routes/​streaming.ts Uses Zod v3 validation.
backend/​src/​routes/​setup.ts Uses Zod v3 schemas and errors.
backend/​src/​routes/​roles.ts Uses Zod v3 schemas and errors.
backend/​src/​routes/​puppetHistory.ts Uses Zod v3 validation.
backend/​src/​routes/​puppet.ts Uses Zod v3 validation.
backend/​src/​routes/​playbooks.ts Uses Zod v3 validation.
backend/​src/​routes/​playbookBrowser.ts Uses Zod v3 validation.
backend/​src/​routes/​permissions.ts Uses Zod v3 schemas and errors.
backend/​src/​routes/​packages.ts Uses Zod v3 validation.
backend/​src/​routes/​ldapAdministration.ts Uses Zod v3 validation.
backend/​src/​routes/​journal.ts Uses Zod v3 schemas and errors.
backend/​src/​routes/​inventory.ts Uses Zod v3 validation.
backend/​src/​routes/​integrations/​utils.ts Uses Zod v3 in integration helpers.
backend/​src/​routes/​integrations/​puppetserver.ts Uses Zod v3 validation.
backend/​src/​routes/​integrations/​puppetdb.ts Uses Zod v3 validation.
backend/​src/​routes/​integrations/​proxmox.ts Uses Zod v3 validation.
backend/​src/​routes/​integrations/​monitoringOverview.ts Uses Zod v3 validation.
backend/​src/​routes/​integrations/​monitoringActions.ts Uses Zod v3 validation.
backend/​src/​routes/​integrations/​monitoring.ts Uses Zod v3 validation.
backend/​src/​routes/​integrations/​azure.ts Uses Zod v3 schemas and errors.
backend/​src/​routes/​integrations/​aws.ts Uses Zod v3 schemas and errors.
backend/​src/​routes/​hiera.ts Uses Zod v3 validation.
backend/​src/​routes/​groups.ts Uses Zod v3 schemas and errors.
backend/​src/​routes/​facts.ts Uses Zod v3 validation.
backend/​src/​routes/​executions.ts Uses Zod v3 validation.
backend/​src/​routes/​entraIdAuth.ts Uses Zod v3 validation.
backend/​src/​routes/​debug.ts Uses Zod v3 validation.
backend/​src/​routes/​crashDumps.ts Uses Zod v3 validation.
backend/​src/​routes/​console.ts Uses Zod v3 validation.
backend/​src/​routes/​commands.ts Uses Zod v3 validation.
backend/​src/​routes/​auth.ts Uses Zod v3 schemas and errors.
backend/​src/​mcp/​McpToolHandlers.ts Uses Zod v3 for tool schemas.
backend/​src/​mcp/​McpServer.ts Uses compatible Zod schema types.
backend/​src/​integrations/​ssh/​hostTrust.ts Uses Zod v3 for trust validation.
backend/​src/​config/​schema.ts Uses Zod v3 for configuration schemas.
backend/​src/​config/​ldap.ts Uses Zod v3 for LDAP schemas.
backend/​src/​config/​ConfigService.ts Uses Zod v3 configuration validation.
backend/​package.json Bumps backend version and upgrades Zod.
.github/​workflows/​publish.yml Gates publishing on clean installation; simplifies tags and moves logins earlier.
.github/​workflows/​ci.yml Adds cold-cache source-archive installation check.

Review effort: Balanced


import { Router, type Request, type Response } from 'express';
import { z } from 'zod';
import { z } from "zod/v3";
@alvagante
alvagante merged commit 6693350 into main Oct 30, 2026
18 checks passed
@alvagante

Copy link
Copy Markdown
Member Author

@copilot-pull-request-reviewer Fixing. Will be in the next commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants