Skip to content

Releases

v1.2.6 - Security Hardening, Monorepo Workspaces & Enhanced Rollbacks

Choose a tag to compare

@iulian-mnk iulian-mnk released this 18 Sep 13:23

Security

  • Project Root Deployment Protection:
    • validateDistDirectory in src/core/config.ts and src/core/deployer.ts strictly rejects deploying the repository or project root (dist_path: "."), requiring a genuine build output directory to prevent inadvertent deployment of source code, .git, .env files, and node_modules.
    • Guarded root index.html fallback in src/core/detector.ts so detected bundler frameworks (Vite, Nuxt, Next.js, Astro, SvelteKit, Remix, Angular) never fall back to dist_path: ".".
  • Sensitive File Exclusion in Archiver:
    • Added isSensitiveArchiveEntry in src/core/archiver.ts to strictly filter out .env*, .git, .github, .gitlab, .vscode, node_modules, and credentials even if accidentally placed inside the distribution directory.
  • OAuth PKCE Loopback Hardening:
    • Non-OAuth loopback requests (e.g. /favicon.ico, root /, network scanners) in src/client/pkce-auth.ts now return HTTP 404 rather than stalling or triggering invalid token exchanges.
    • Exchange authorization code for tokens before rendering the browser success page, ensuring OAuth failures display immediate errors in the browser.
    • Active and idle HTTP sockets are cleanly closed with closeIdleConnections to prevent dangling process listeners.
  • Credential Sanitization in Error Reporting:
    • KodallNodeClient strips HTTP Basic Auth credentials from target URLs in error messages and logs.
  • Secret Stripping on Environment Duplication:
    • cloneEnvironment in src/core/env-manager.ts strips api_key, token, and secrets when duplicating environments unless explicitly overridden.

Added

  • HTTP DELETE Method:
    • Added client.delete() to KodallNodeClient supporting automatic handling of HTTP 204 No Content responses.
  • Cookie Store Eviction:
    • Added deleteCookie() method to CookieStore in src/client/cookie-store.ts.

Fixed

  • Monorepo Ancestor Workspace Resolution:
    • src/core/pm-detector.ts traverses ancestor directories up to the filesystem root to identify monorepo workspace roots (pnpm-workspace.yaml, turbo.json, lerna.json, root lockfiles), resolving package managers when executing from nested package folders.
  • Cookie Header Parsing & Expiration:
    • Fixed cookie corruption when Set-Cookie headers contain RFC 1123 HTTP dates with commas without splitting single cookies into invalid fragments.
    • Automatically prune expired cookies (Max-Age=0 or past Expires).
  • Nuxt / Nitro DevProxy Path Duplication:
    • Configured prependPath: false in src/core/proxy-helpers.ts (getNitroProxy) to prevent Nitro from duplicating route prefixes.
  • Proxy Header & Compression Forwarding:
    • Stripped content-encoding and content-length headers in createNextProxyHandler when upstream bodies are already decompressed by fetch.
    • Filtered hop-by-hop headers (connection, keep-alive, transfer-encoding, upgrade) in createNitroProxyHandler Node proxying.
    • Added dynamic rule.rewrite in getDevProxy when instanceUrl contains subpaths (e.g. https://host.com/subpath).
  • Rollback Engine & History Integrity:
    • Rollback updates both id_storage_file_version and id_storage_file to keep server entity state consistent.
    • Fixed rollback history to record metadata safely without overwriting commit hashes.
    • Added support for negative step syntax (e.g. -R -1 or --steps 2).
    • Added support for comma-separated environment strings (-e dev,staging) in rollback and status commands.
  • CLI Argument Parsing & Command Routing:
    • Handled options preceding subcommands (e.g. kodall-deploy -c custom.json use dev or --config foo.json build).
    • Fixed --build flag routing during deployment commands (-e dev --build) so it does not intercept as standalone build subcommand.
    • Handled short options with equals syntax (e.g. -e=dev, -t=prod, -R=137).
    • Handled bare --add-env, --update-env, and --edit-env opening interactive prompts without throwing argument parsing errors.
  • Headless & Non-Interactive CI Safety:
    • Added headless guards across interactive commands (envs, use, set-default, add-env, remove-env, clone-env, manage-envs, rollback, init) to fail fast with code 1 instead of hanging on piped input or CI runners.
    • Added 5-second timeout in src/commands/auth-probe.ts to prevent hanging on unreachable instances.
  • UI Prompts & Stream Robustness:
    • Handled stream close / end events in askText and askPassword.
    • Ignored ANSI escape sequences in askPassword.
    • Restored terminal cursor on SIGINT / exit in askSelect.
    • Unrefed background spinner timer intervals to prevent blocking process termination.
  • CI Template Generator:
    • Configured pnpm/action-setup@v4 before Node setup in generated GitHub Actions workflows.
    • Added KODALL_INSTANCE secret variables in Jenkinsfile and AWS CodeBuild templates.
  • Status Dashboard Query Syntax:
    • Converted SQL queries in src/commands/status.ts to Kodall query syntax (FILTER AND (...)) and forwarded CLI API keys.

v1.2.5 - Nuxt Live Proxy Reload & Dynamic Route Adapters

Choose a tag to compare

@iulian-mnk iulian-mnk released this 07 Sep 11:55

Added

  • Dynamic Nitro / Nuxt Server Proxy Handlers:
    • Exported createNitroProxyHandler and createNuxtProxyHandler for zero-restart dynamic per-request proxying in Nuxt 3/4 server routes (server/routes/[...proxy].ts or server/middleware/proxy.ts).
    • Supports streaming Node http/https and Web Standard Request/Response fetch proxying with real-time environment resolution.

Fixed

  • Nuxt Dev Proxy Live Reload & Active-Environment Watching:
    • Updated kodallProxyNuxt module to auto-watch .kodall-deploy/active-env and .kodall-deploy/ alongside kodall-webapp.config.json.
    • Added Nuxt builder:watch hook to trigger immediate dev server restart when npx kodall-deploy use <env> or --clear-active is executed.

v1.2.4 - Smart Build Commands & PM Auto-Detection

Choose a tag to compare

@iulian-mnk iulian-mnk released this 07 Sep 09:47

Added

  • Dedicated kodall-deploy build CLI Runner:
    • Run framework and package-manager aware project builds standalone via kodall-deploy build or kodall-deploy --build.
    • Added Build web application (run build script) action directly to the main interactive CLI menu (npx kodall-deploy).
    • Supports custom build command overrides via --build-cmd <cmd> or positional arguments.
    • Verifies target output folder (e.g. ./dist/index.html or ./.output/public/index.html) after execution and provides framework-specific tips.
  • Zero-Configuration-Drift Package Manager Detection:
    • Dynamically auto-detects pnpm, yarn, bun, and npm at runtime from Corepack packageManager or project lockfiles.
    • Avoids hardcoding package manager prefixes (npm run, pnpm, etc.) inside kodall-webapp.config.json.
  • Smart Script References & Interactive Filtering:
    • Config files store clean package.json script name references (e.g. "build", "generate", "generate:prod").
    • Interactive selection lists in --init, --add-env, and build automatically filter out non-build lifecycle and dev scripts (dev, start, serve, preview, test, lint, postinstall, deploy).
    • Nuxt static generation scripts (generate, generate:dev, generate:staging, generate:prod) are automatically detected and prioritized at the top of selection menus.
    • Prompts offer automatic persistence to kodall-webapp.config.json when running builds interactively.
  • Environment Management Aliases:
    • Added --update-env [name] and --edit-env [name] as direct CLI aliases for --add-env.
  • Programmatic API Exports:
    • Exported resolveBuildCommand, formatCommandOrScript, getAvailableBuildScripts, resolvePackageManager, getRunScriptCommand, and getExecCommand.

v1.2.3 - Multi-Framework Dev Proxies & Modular CLI Architecture

Choose a tag to compare

@iulian-mnk iulian-mnk released this 03 Sep 13:37

Highlights in v1.2.3

- **Multi-Framework Dev Proxies**: Native adapters for Nuxt 3/4 (`kodallProxyNuxt`), Next.js App Router

(createNextProxyHandler), Webpack DevServer (kodallProxyWebpack), and Angular CLI (kodallProxyAngular).
- Live Proxy Switching: Dynamic per-request proxy routing during npm run dev with zero server restarts
required.
- Local Proxy State Isolation: kodall-deploy use <env> now saves local overrides to .kodall-deploy/active- env without dirtying kodall-webapp.config.json in git.
- New Commands: --set-default <env>, --clear-active, and enhanced -l / --list-envs indicators.
- Modular CLI Architecture & 100% Test Coverage: Complete refactor into modular command suites with 320+ unit
and integration tests.

[Read the Full Documentation →](https://docs.kodall.io)

v1.2.2 - Native Vite Dev Proxy Plugin & Environment Switcher

Choose a tag to compare

@iulian-mnk iulian-mnk released this 03 Sep 13:36
### Highlights in v1.2.2
- **Native Vite Plugin**: Added `kodallProxy` / `@kodall/kodall-deploy/plugin/vite` for automated dev proxy

configuration in Vite projects.
- Programmatic Proxy Resolution: Added getDevProxy and resolveProxyConfig.
- CLI Switcher: Added kodall-deploy use [env] and kodall-deploy switch [env].
- Security: Hardened URL and path sanitization to prevent traversal and malformed target instances.

v1.2.1 - Dual Module Packaging & CLI Bin Fixes

Choose a tag to compare

@iulian-mnk iulian-mnk released this 03 Sep 13:36
### Highlights in v1.2.1
- Dual ESM/CJS build outputs with TypeScript declarations (`.d.ts` / `.d.cts`).
- Binary entrypoint alignment for `kodall-deploy` and `one-deploy` CLI commands.

v1.2.0 - TypeScript Rewrite, Multi-Environment & CI/CD Generator

Choose a tag to compare

@iulian-mnk iulian-mnk released this 03 Sep 13:35

Added

  • TypeScript Rewrite & Rebrand to @kodall/kodall-deploy: Migrated and upgraded from legacy one-deploy / kodall-one-deploy codebase into modern TypeScript package.
  • Multi-Environment Configuration:
    • Configuration schema supporting environments: { dev, staging, prod, ... } in kodall-webapp.config.json.
    • Batch deployments with --all, --type <type>, and comma-separated -e dev,staging.
    • Automatic migration from legacy .one-deploy.json configuration files.
  • Live Remote Status Dashboard (--status):
    • Real-time HTTP health check, latency measurement, active storage ID, and entity key inspection across instances.
  • Deployment History & Instant Rollback:
    • Local deployment audit log (.kodall-deploy/history.json).
    • Server-side rollback and web_app_log / storage_file_version querying for Kodall instances >= 1.8.0.
  • 1-Click OAuth 2.0 / OpenID Connect PKCE Login:
    • Automatic detection of OpenID Connect authentication endpoints.
    • Interactive browser-based authentication flow capturing and caching access tokens.
    • Multi-environment batch deployment realm session reuse (one login per realm).
  • CI/CD Pipeline Generator:
    • Interactive kodall-deploy --init-ci command.
    • Support for 7 CI/CD platforms: GitHub Actions, GitLab CI, Bitbucket Pipelines, Jenkins, Azure DevOps, CircleCI, AWS CodeBuild.
  • Framework Auto-Detection:
    • Automatic detection of Vite, Next.js, Nuxt, Angular, Astro, SvelteKit, React, Vue projects and build output directories.
  • Pre-Deployment Build Verification:
    • Stale build detection comparing source files against build artifact timestamps.
    • Post-deployment live HTTP health check ping.