Skip to content

v6.1.1

Choose a tag to compare

@Meet-Miyani Meet-Miyani released this 11 Oct 16:52
· 12 commits to main since this release
75c5e89

v6.1.1 is a security fix for the compose-architecture guard scripts, replacing v6.1.0 as Latest. Skill guidance is unchanged from v6.1.0; only the guard scripts, the feature scaffold script (new-feature.sh), the project audit and one line of adoption guidance changed.

What was wrong

  • The guard scripts ran .composekit.conf as shell code. Every check-*.sh loaded the project's config with ., so running the guards on a project you don't control (a cloned repo, a contributor's branch) would run any command written in its .composekit.conf.
  • One config value reached a sed program. In check-layering.sh, a crafted BASE_PACKAGE could make sed write a file outside the project, and on GNU sed run a command.
  • On your own project, with a config you wrote, neither was a practical risk.

What changed

  • The config is read as data, never executed (#19). The new scripts/lib/composekit-conf.sh reads only the 9 known KEY=value settings and checks each value:
    • BASE_PACKAGE is a package name (dot-separated identifiers, so a typo like com.example. is caught);
    • folder settings are paths inside the project;
    • UI_MODEL is always, when-needed or empty (the default).
  • A config line the guards can't use fails the run (#21). The check prints a warning naming the line and stops with exit 2, so run-checks.sh reports FAIL. Before, it could fall back to the default folders and pass while checking nothing.
  • Warnings never echo control characters from the config, so a hostile config can't send escape sequences to your terminal (#21).
  • check-layering.sh matches imports as plain text instead of building a sed program.
  • new-feature.sh reads UI_MODEL in the same forms as the guards ('always', trailing # comments, export). The last valid line wins, and an invalid one prints a warning (#21).
  • audit-project.sh flags guards installed before this release as installed, OUTDATED (#20).
  • Adopting an existing project: check a project you didn't set up with the kit's own run-checks.sh, not the project's scripts/composekit/ copy (#20).

Behaviour change

  • Valid configs work unchanged. Every config shipped with the kit loads cleanly.
  • A config that relied on shell features now fails the guard run until the line is fixed: +=, $VAR, a value spread over several lines, tab-separated lists, or an unknown key. The warning names the file and line. Put each setting on one line, as KEY="item1 item2".

Upgrade

  1. Update the skills:
    • npx skills: npx skills update.
    • gh skill: gh skill update --unpin --all. --unpin is needed once if you installed with --pin, as our install docs said until now: gh skill update skips pinned skills. After that, gh skill update --all is enough.
  2. Update the installed guards in each project: run the compose-architecture skill's scripts/install-guards.sh <project-root>. Your .composekit.conf is kept.
  3. Check: audit-project.sh <project-root> should no longer report OUTDATED. run-checks.sh should pass with no config warnings; if a check fails with "unusable line", fix the line it names in .composekit.conf.

Install

See the README or https://compose.avinya.dev/install/. The install commands there no longer pin a version, so they always install the latest release.