Skip to content

Release v1.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Nov 20:00
· 2 commits to main since this release
Immutable release. Only release title and notes can be modified.
2fdbe94

Security

This release hardens how Clonio stores and protects secrets, following a responsible disclosure by James King (@Jamesking56) (#273, #274, #275, #276). Thank you, James.

Behaviour change

  • env:NAME secret references are the default. connection:add, connection:update, audit:add and audit:update now ask for an environment variable first (e.g. CLONIO_PROD_PASSWORD) and store only the reference. Entering the value directly is still possible and stores it encrypted, as before.
  • CLONIO_KEY replaces APP_KEY. Clonio reads its key from CLONIO_KEY and falls back to APP_KEY, so existing projects keep working. init now writes CLONIO_KEY= instead of APP_KEY=. The new key:rotate command moves a project to a fresh CLONIO_KEY and re-encrypts all encrypted: values in clonio.json. Audit logs signed before a rotation verify only with the old key: CLONIO_KEY='<old key>' clonio cloning:verify-audit ….
  • Warnings on stderr before each command. Clonio warns when clonio.json or .env is accessible to group or others (looser than 0600; skipped on Windows) and when the key still comes from APP_KEY. Fix with chmod 600 <file> and clonio key:rotate. There is no opt-out.
  • Schema inspection. PostgreSQL sources inspected with a non-owner user now report their primary and foreign keys (previously none). SQL Server foreign keys now reference the correct table and column (previously their own table). Composite foreign keys on both are reported once per column pair.

See docs/security.md for the full picture.

What's Changed

  • feat(secrets): env:NAME secret references as default, catalog-based key inspection by @rokde in #272
  • docs(claude): treat the current code as the source of truth by @rokde in #278
  • feat(secrets): add CLONIO_KEY and key:rotate by @rokde in #277
  • feat(security): warn when clonio.json or .env are accessible to others, or the key is APP_KEY by @rokde in #279

Full Changelog: v1.8.0...v1.9.0

See the full CHANGELOG.md.


Installation

File Platform Requires
clonio-linux-x86_64 Linux — x86_64 (Intel/AMD) nothing
clonio-linux-aarch64 Linux — aarch64 (ARM64) nothing
clonio-macos-aarch64 macOS — Apple Silicon (M1/M2/M3/M4) nothing
clonio.phar Any platform PHP 8.5
ghcr.io/clonio-dev/clonio:v1.9.0 linux/amd64 + linux/arm64 Docker

Linux

mv clonio-linux-x86_64 clonio   # or clonio-linux-aarch64 for ARM
chmod +x clonio
sudo mv clonio /usr/local/bin/clonio
clonio --version

macOS

⚠️ The binary is currently unsigned. macOS Gatekeeper will block it on first run.

mv clonio-macos-aarch64 clonio
chmod +x clonio
xattr -d com.apple.quarantine clonio
sudo mv clonio /usr/local/bin/clonio
clonio --version

PHAR (any platform with PHP 8.5)

php clonio.phar --version

Docker

docker pull ghcr.io/clonio-dev/clonio:v1.9.0
docker run --rm -v "$(pwd)":/workspace \
  ghcr.io/clonio-dev/clonio:v1.9.0 --version

See docs/docker-distribution.md for pinning, tag scheme, and common recipes.

Composer (dev dependency)

composer require --dev clonio-dev/clonio-cli
vendor/bin/clonio --version