feat: Add wardgate-proxy with key/key_env config aligned to wardgate-cli#3
Merged
emretinaztepe merged 1 commit intomainfrom Feb 27, 2026
Merged
feat: Add wardgate-proxy with key/key_env config aligned to wardgate-cli#3emretinaztepe merged 1 commit intomainfrom
emretinaztepe merged 1 commit intomainfrom
Conversation
Replace token_file-based config with key/key_env fields matching
wardgate-cli conventions. The agent key lives in the config file
itself -- no separate token file needed.
Key changes:
- Config struct uses key/key_env instead of token_file
- KeyReader interface with two implementations:
- configKeyReader: watches config file mtime, re-reads on change,
falls back to cached key on parse errors (atomic rotation safety)
- staticKeyReader: for key_env mode, fixed for process lifetime
- Drop checkTokenFilePermissions (wardgate-cli doesn't check either)
- Add wardgate-proxy AI skill file for teaching agents
- Documentation and INSTALL.md updated
Signed-off-by: Emre Tinaztepe <emre@binalyze.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Emre Tinaztepe <emre@binalyze.com>
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.
Replace token_file-based config with key/key_env fields matching wardgate-cli conventions. The agent key lives in the config file itself -- no separate token file needed.
Key changes:
What
Why
Checklist
go test ./...)go fmt ./...)git commit -s) per the DCODCO Sign-Off
All commits must include a
Signed-off-byline (usegit commit -s). This certifies that you wrote or have the right to submit the code under the project's AGPL-3.0 license. See the Developer Certificate of Origin for details.