Repository navigation
Conversation
chruffins
marked this pull request as ready for review
November 24, 2026 16:22
Contributor
|
Would auto-approve: no · medium risk · Denied: Adds a macOS fallback that can load system-wide configuration, including JWT authentication secrets, when user configuration is absent. This changes production config resolution and touches authentication and secrets handling. Shadow mode: nothing is auto-approved and a human review is still required. React 👍 or 👎 if this call looks right or wrong. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On macOS,
hypeman-tokenandhypeman-apionly look for a config at~/.config/hypeman/config.yamlwhenCONFIG_PATHisn't set. Hosts on macOS keep it at/etc/hypeman/config.yaml, as Linux hosts do.hypeman-apithere getsCONFIG_PATHfrom its launch agent, but other callers don't.This adds
/etc/hypeman/config.yamlto the macOS default paths, after~/.config/hypeman/config.yaml.Existing and new flows
A user config still wins on macOS, so dev setups that use
~/.config/hypeman/config.yamlbehave as before.Testing
go test ./cmd/gen-jwt/passes;GOOS=darwin GOARCH=arm64 go build ./cmd/gen-jwt/builds.Note
Low Risk
Low-risk change to config file search order on macOS; user config still takes precedence and behavior matches documented Linux paths.
Overview
On macOS, default config discovery now checks
/etc/hypeman/config.yamlafter~/.config/hypeman/config.yaml(whenCONFIG_PATHis unset), matching how infra-installed hosts lay out config and how Linux already behaves.GetDefaultConfigPathsincmd/api/config/config.gois updated accordingly;DEVELOPMENT.mddocuments the extra macOS search path. A user config under~/.configstill wins when present, so local dev setups are unchanged.This fixes callers such as
hypeman-token/gen-jwtthat run with an empty environment (e.g. metro-api minting JWTs) and previously failed with missingjwt_secreton macOS when only/etc/hypeman/config.yamlexisted.Reviewed by Cursor Bugbot for commit dea6aa3. Configure here.