Repository navigation
Conversation
…es docs Co-Authored-By: Claude Haiku 5.5 <[email protected]>
jay23606
marked this pull request as ready for review
November 19, 2026 19:05
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.
Kong derives the CLI flag from the Go field name, so the field RequireLocalHostAuth produced --api.require-local-host-auth, while the docs and the env var VIIPER_API_REQUIRE_LOCALHOST_AUTH use 'localhost'. Renamed the field to RequireLocalhostAuth in internal/server/api/config.go and updated its two usages (server.go, server_test.go). No behavior change.
Added internal/cmd/server_flags_test.go, a regression test that parses --api.require-localhost-auth=true through Kong and checks the field is set. It passes locally.
Not run locally: the internal/server/api test package, because it fails to build here (missing embedded 'bundle' directory in internal/install and module downloads were needed). CI should cover it.
🤖 Generated with Claude Code
Tests not run here: GOFLAGS=-mod=readonly go test ./internal/server/api/ -run Auth -count=1: package setup failed locally (internal/install embed pattern 'bundle' has no files, and modules needed downloading); left for CI
Fixes #30
🤖 Generated with Claude Code