Skip to content

A server can lock itself against heinzel - #72

Merged
wintermeyer merged 1 commit into
mainfrom
server-lock
Oct 15, 2026
Merged

wintermeyer merged 1 commit into
mainfrom
server-lock

Conversation

@wintermeyer

Copy link
Copy Markdown
Owner

allow_changes = false in /etc/heinzel.conf puts every heinzel that connects into read-only mode. An optional reason line is shown to the user. The check is step 6 of the onboarding, runs in local mode too and fails closed: an unreadable or empty file, or any value other than true, locks.

The guard hook blocks every write, move, delete and re-permission of the file, by shell, file-edit tool or interpreter. Only the owner lifts the lock. Guard tests: 809 passed, 0 failed.

Bumps to 3.1.0.

An AI agent wrote this text in my name. I know that is problematic.

Operators asked for a switch on the machine itself, so a host under a migration or owned by someone else stays hands-off no matter which heinzel connects. allow_changes = false in /etc/heinzel.conf now puts every session into the existing read-only mode, and the check fails closed. The guard blocks every write to the file, since a lock heinzel could lift itself would be worthless.

An AI agent wrote this text in my name. I know that is problematic.
@wintermeyer
wintermeyer merged commit ee77e87 into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant