Skip to content

[feature] Warn when a key_ref file is group- or world-readable(#99) - #107

Open
Maedza wants to merge 1 commit into
Jason-Vaughan:mainfrom
Maedza:feat/key-ref-permission-warning
Open

[feature] Warn when a key_ref file is group- or world-readable(#99)#107
Maedza wants to merge 1 commit into
Jason-Vaughan:mainfrom
Maedza:feat/key-ref-permission-warning

Conversation

@Maedza

@Maedza Maedza commented Aug 17, 2026

Copy link
Copy Markdown

What

key_ref: file:PATH now stat-checks the key file before reading and warns (once per path per process, POSIX-only) when it is group- or world-readable.

Why

A permissive key file was previously used silently, despite ARCHITECTURE.md specifying 0600 permissions. The change warns rather than fails so an operator who accepted the risk is informed, not broken.

Fixes #99.

Test plan

  • make test: 499 passed, 17 skipped (live/model).
  • git diff --check clean.

Checklist

  • make test passes (hermetic suite; HTTP is mocked).
  • New behavior has tests; bug fixes have a regression test.
  • Docs updated in this PR if behavior changed.
  • CHANGELOG.md [Unreleased] updated.
  • No secrets committed; key_ref references only, never a raw key.
  • Change is consistent with the opt-in / bring-your-own-key posture.

@Maedza Maedza changed the title Warn on permissive key_ref key files (#99) [feature] Warn when a key_ref file is group- or world-readable Aug 17, 2026
@Maedza Maedza changed the title [feature] Warn when a key_ref file is group- or world-readable [feature] Warn when a key_ref file is group- or world-readable(#99) Aug 17, 2026
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.

[feature] Warn when a key_ref file is group- or world-readable

1 participant