Skip to content

v0.6.10

Choose a tag to compare

@github-actions github-actions released this 30 Oct 22:24
· 666 commits to main since this release
Immutable release. Only release title and notes can be modified.
875b548

Security

  • Upgrade if Conn3x manages authorized_key for users you don't fully trust. A local user whose keys Conn3x managed could plant a symlink in their home and gain root on the next apply. Reads and writes of ~/.ssh now run as that user. A ~/.ssh owned by root, or a home the user can't write to, now gives a clear error instead of being managed. See GHSA-78rx-v8vx-rjhg. (#270)

Features

  • conn3x convert ansible now brings across apt_repository and yum_repository. Save each repository's signing key beside your playbook first, because a repository step holds the key itself and the converter won't download it. Anything it can't match, like arch= or filename, stays a TODO with the reason. (#265)
  • New ini module: set or remove one option in an INI-style file, and everything else stays, comments included. Each plan reads the file, so a hand edit shows up in conn3x drift. (#267)
  • New replace module: replace every match of a regexp in a file. A replacement its own regexp would change again can't settle, so Conn3x stops it before writing anything. (#267)
  • conn3x convert ansible now brings across ini_file and replace, as far as it can prove the result. Python and Go regexps differ, so lookaheads, (?i), \d, \w, \s and \b stay a TODO with the reason. Rewrite \d as [0-9] if that's what you meant and convert again. (#267)

Fixes

  • conn3x drift no longer reports cloud values nobody changed. A BigQuery table used to show as drifted after every row insert, and straight after a fresh apply, while conn3x plan said No changes. A changed cloud resource now counts as drift only when a normal plan would change it back. The others are listed under their own heading and exit 0. If you relied on drift failing for a change to something your config doesn't set, it now shows in that list instead. (#254)
  • line and block steps on a symlink now write to the file it points to, and the link and that file's mode and owner stay as they are. Until now they replaced the link with a regular file of mode 0777, which anyone on the host could write to, and the file it pointed to never got the edit. If you've pointed a line or block step at a symlink, check that path now: upgrading doesn't repair it, and a plan says No changes. because the content matches. find /etc -xdev -type f -perm -0002 (#268) lists world-writable files under /etc; look wider if your steps edit paths elsewhere. Treat anything you find as possibly tampered with, then put the link back and move any edits you still want into the real file. (#268)
  • conn3x convert ansible no longer copies no_log values into the .tf file. A task with no_log set to anything but false, including a templated value or one set on its block or play, stays a TODO with the reason, and its contents aren't quoted. If you've already converted a playbook that uses no_log, check the .tf file and your plans for secrets, and change any you find. (#269)