Skip to content

Walls secrets check: missed unit forms and zsh false alarm (#208 follow-ups) #211

Closed

Description

@scuttletoby

Follow-ups from the #208 re-checks (both SAFE; comments 6896173385 and 6896306187). Fix before a desktop host joins a pool (D8).

Missed secrets (minor): the walls' secrets check lets these pass when the file is readable by jobs:

  • Environment = X=… (systemd allows spaces around =);
  • a setting split over two lines with a trailing backslash;
  • SetCredential= with a plain value;
  • a world-readable /etc/default/… file that an enabled service (also a timer-started one) loads via EnvironmentFile=;
  • token-shaped values in shell files the wall does not read (fish's config files), and $'…' quoting.

False alarms (minor):

  • the stock /etc/zsh/zshrc has key=(, so walls fail on any Ubuntu/Debian host with zsh installed;
  • harmless names like TOKENIZERS_PARALLELISM count as secret names;
  • the advice "make it 0600" would break logins if followed on /etc/environment or /etc/zsh/zshrc: advise moving the secret out instead.

Nit: the hook-path check resolves the path once; if the operator writes it through a link owned by another local user, that user can repoint it between start's check and the job. Needs an unusual root-only setting and predates #208. Refuse a hook path whose links are not root-owned.

Failing tests from the re-checks are kept by the orchestrator and handed to the writer.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions