Skip to content

Keep development keyserver auth local#38

Closed
YoungJinJung wants to merge 2 commits into
mainfrom
issue-33-compose-dev-auth-loopback
Closed

Keep development keyserver auth local#38
YoungJinJung wants to merge 2 commits into
mainfrom
issue-33-compose-dev-auth-loopback

Conversation

@YoungJinJung

@YoungJinJung YoungJinJung commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Publish the compose keyserver port on loopback only.
  • Add a startup guard that rejects development auth on non-loopback binds unless an explicit unsafe override is set.
  • Document the dev-auth constraint and cover the guard with tests.

Closes #33.

Validation

  • PYTHONPATH=. python3 -m unittest discover keyserver/tests
  • env -u GOROOT -u GOPATH /opt/homebrew/bin/go test ./...

Add the local keyserver service, CLI publish/login/fetch commands, compose smoke wiring, and tests as a reviewable baseline for the security hardening work stacked above it.

Constraint: Security fixes for issues #30-#34 target files that are not yet present on main.
Rejected: Fold all security fixes into one PR | would make review and issue closure harder.
Confidence: medium
Scope-risk: broad
Directive: Review this foundation before merging stacked hardening PRs into main.
Tested: PYTHONPATH=. python3 -m unittest discover keyserver/tests; env -u GOROOT -u GOPATH /opt/homebrew/bin/go test ./...
Not-tested: Docker compose smoke test was not run locally.
The compose smoke service still needs an all-interface bind inside the container, but host exposure is now loopback-only and runtime startup rejects dev auth on non-loopback binds unless an explicit unsafe override is set.

Constraint: Compose smoke must remain able to reach the keyserver container.
Rejected: Bind the container service to 127.0.0.1 | peer smoke container would not be able to connect over the compose network.
Confidence: high
Scope-risk: narrow
Directive: Do not enable ENDE_KEYSERVER_DEV_AUTH on a shared interface without an explicit unsafe test-only override.
Tested: PYTHONPATH=. python3 -m unittest discover keyserver/tests; env -u GOROOT -u GOPATH /opt/homebrew/bin/go test ./...
Related: #33

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The security improvements in this PR are well-implemented. The runtime guard correctly restricts dev-mode authentication to loopback binds by default, with proper override mechanisms for testing scenarios. The implementation includes comprehensive test coverage and clear documentation. No blocking issues identified.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@YoungJinJung YoungJinJung changed the base branch from keyserver-foundation to main June 16, 2026 06:19
@YoungJinJung

Copy link
Copy Markdown
Contributor Author

Closing because this was opened against the wrong repository. The security triage is being redone against companyjupiter/quarkify.

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.

Keep dev auth compose service loopback-only

1 participant