Skip to content

CLI firewall signs receipts with a hardcoded key #3

Closed

Description

@SMC17

agentfork firewall (src/main.zig) signs every receipt with a fixed key, [_]u8{0x5A} ** 32, compiled into the binary. Anyone with the source can mint a receipt that verifies, so the CLI's receipts prove nothing about who issued them.

Fix: read the key from a file or environment variable, and refuse to start without one. Document that HMAC receipts can only be checked by someone who holds the same key.

Found in the 2026-11-19 README audit at fca8a21.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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