#5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren #18

Merged
frank merged 1 commit from agent/issue-5-reverse-connector-listener-mit-shared-ke into main 2026-07-17 11:58:04 +02:00
Owner

Work in progress for #5

Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren — Teil von #1. Blockiert durch die Protokollspezifikation.

Automated by forge agent (codex). Progress updates follow as comments.

**Work in progress** for #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren — Teil von #1. Blockiert durch die Protokollspezifikation. _Automated by forge agent (`codex`). Progress updates follow as comments._
Author
Owner

🚧 WIP pull request opened — linked to issue #5. Agent is working…

🚧 **WIP pull request opened** — linked to issue #5. Agent is working…
Author
Owner

💭 Agent progress

Adding initial PR comments
Ich prüfe zunächst Protokollspezifikation, bestehende Serverstruktur und Repository-Vorgaben; danach implementiere ich Listener, Authentisierung und Tests in getrennten Commits.

💭 **Agent progress** **Adding initial PR comments** Ich prüfe zunächst Protokollspezifikation, bestehende Serverstruktur und Repository-Vorgaben; danach implementiere ich Listener, Authentisierung und Tests in getrennten Commits.
Author
Owner

forge agent failed

agent branch has no commits ahead of main (empty PR); dirty work must be committed before finish
❌ **forge agent failed** ``` agent branch has no commits ahead of main (empty PR); dirty work must be committed before finish ```
Author
Owner

💭 Agent progress

Designing multi-key config and rotation support

Planning secure key loading and handshake limits

Defining server connection upgrade API

Designing AuthLimiter rate-limiting strategy

Planning incremental auth rate-limiter commit
Die Spezifikation definiert GET /connector, Bearer, Upgrade-Token private-proxy-mcp/1 und Version 1.0. Ich ergänze jetzt die Listener-Sicherheitskonfiguration einschließlich Secret-Datei, Key-Rotation, Limits und TLS.

💭 **Agent progress** **Designing multi-key config and rotation support** **Planning secure key loading and handshake limits** **Defining server connection upgrade API** **Designing AuthLimiter rate-limiting strategy** **Planning incremental auth rate-limiter commit** Die Spezifikation definiert `GET /connector`, `Bearer`, Upgrade-Token `private-proxy-mcp/1` und Version `1.0`. Ich ergänze jetzt die Listener-Sicherheitskonfiguration einschließlich Secret-Datei, Key-Rotation, Limits und TLS.
Author
Owner

@codex retry work

@codex retry work
Author
Owner

💬 Mention received from @frank — continuing coding session in this worktree…

@codex retry work

💬 **Mention received** from @frank — continuing coding session in this worktree… > @codex retry work
Author
Owner

💭 Agent progress

Planning PR commentary and retry implementation
Ich prüfe den aktuellen PR-Stand und setze die noch fehlende Listener-/Shared-Key-Arbeit fokussiert fort.

💭 **Agent progress** **Planning PR commentary and retry implementation** Ich prüfe den aktuellen PR-Stand und setze die noch fehlende Listener-/Shared-Key-Arbeit fokussiert fort.
Author
Owner

💭 Agent progress

Inspecting branch and PR permissions

💭 **Agent progress** **Inspecting branch and PR permissions**
Author
Owner

💭 Agent progress

Planning issue retrieval via Forge API

💭 **Agent progress** **Planning issue retrieval via Forge API**
Author
Owner

💭 Agent progress

Inferring protocol from docs and tests

💭 **Agent progress** **Inferring protocol from docs and tests**
Author
Owner

💭 Agent progress

Planning secure HTTP listener implementation

💭 **Agent progress** **Planning secure HTTP listener implementation**
Author
Owner

💭 Agent progress

Planning server GET connector implementation

💭 **Agent progress** **Planning server GET connector implementation**
Author
Owner

🛠️ Mention follow-up pushed (comment 5523)

Ich prüfe den aktuellen PR-Stand und setze die noch fehlende Listener-/Shared-Key-Arbeit fokussiert fort.Die Implementierung ergänzt jetzt den HTTP/1.1-Upgrade-Endpunkt: konstante Shared-Key-Prüfung, v1-Versionsaushandlung und sauberer Shutdown übernommener Connector-Verbindungen.

🛠️ **Mention follow-up pushed** (comment 5523) Ich prüfe den aktuellen PR-Stand und setze die noch fehlende Listener-/Shared-Key-Arbeit fokussiert fort.Die Implementierung ergänzt jetzt den HTTP/1.1-Upgrade-Endpunkt: konstante Shared-Key-Prüfung, v1-Versionsaushandlung und sauberer Shutdown übernommener Connector-Verbindungen.
frank changed title from WIP: #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren to #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren 2026-07-17 11:18:46 +02:00
Author
Owner

💭 Agent progress

Designing privateProxyServe with shared-key authentication

Planning upgrade hijack handler with shared-key check

Implementing servePrivateProxy with connection registry

Designing HTTP proxy listener and authorization checks

Implementing buffered hijacked connection handling
Die Implementierung ergänzt jetzt den HTTP/1.1-Upgrade-Endpunkt: konstante Shared-Key-Prüfung, v1-Versionsaushandlung und sauberer Shutdown übernommener Connector-Verbindungen.

💭 **Agent progress** **Designing privateProxyServe with shared-key authentication** **Planning upgrade hijack handler with shared-key check** **Implementing servePrivateProxy with connection registry** **Designing HTTP proxy listener and authorization checks** **Implementing buffered hijacked connection handling** Die Implementierung ergänzt jetzt den HTTP/1.1-Upgrade-Endpunkt: konstante Shared-Key-Prüfung, v1-Versionsaushandlung und sauberer Shutdown übernommener Connector-Verbindungen.
Author
Owner

@codex ich warte noch auf code changes

@codex ich warte noch auf code changes
frank changed title from #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren to WIP: #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren 2026-07-17 11:44:23 +02:00
Author
Owner

💬 Mention received from @frank — continuing coding session in this worktree…

@codex ich warte noch auf code changes

💬 **Mention received** from @frank — continuing coding session in this worktree… > @codex ich warte noch auf code changes
Author
Owner

💭 Agent progress

Planning concise technical commentary
Ich prüfe den aktuellen PR-Stand und implementiere die noch fehlende Reverse-Listener- und Shared-Key-Logik fokussiert.

💭 **Agent progress** **Planning concise technical commentary** Ich prüfe den aktuellen PR-Stand und implementiere die noch fehlende Reverse-Listener- und Shared-Key-Logik fokussiert.
Author
Owner

💭 Agent progress

Checking issue content and branch status

💭 **Agent progress** **Checking issue content and branch status**
Author
Owner

💭 Agent progress

Inspecting documentation files

💭 **Agent progress** **Inspecting documentation files**
Author
Owner

💭 Agent progress

Planning listener protocol development

💭 **Agent progress** **Planning listener protocol development**
Author
Owner

🛠️ Mention follow-up pushed (comment 5577)

Ich prüfe den aktuellen PR-Stand und implementiere die noch fehlende Reverse-Listener- und Shared-Key-Logik fokussiert.Der Listener erhält jetzt ein HTTP/1.1-Upgrade auf /connector mit konstanter Zeitprüfung des Bearer-Keys und normierten Fehlerantworten.

🛠️ **Mention follow-up pushed** (comment 5577) Ich prüfe den aktuellen PR-Stand und implementiere die noch fehlende Reverse-Listener- und Shared-Key-Logik fokussiert.Der Listener erhält jetzt ein HTTP/1.1-Upgrade auf `/connector` mit konstanter Zeitprüfung des Bearer-Keys und normierten Fehlerantworten.
frank changed title from WIP: #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren to #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren 2026-07-17 11:44:58 +02:00
Author
Owner

💭 Agent progress

Planning connector handshake and server upgrades

Implementing hijack-safe HTTP server with connection tracking

Defining HTTP header requirements and error handling
Der Listener erhält jetzt ein HTTP/1.1-Upgrade auf /connector mit konstanter Zeitprüfung des Bearer-Keys und normierten Fehlerantworten.

💭 **Agent progress** **Planning connector handshake and server upgrades** **Implementing hijack-safe HTTP server with connection tracking** **Defining HTTP header requirements and error handling** Der Listener erhält jetzt ein HTTP/1.1-Upgrade auf `/connector` mit konstanter Zeitprüfung des Bearer-Keys und normierten Fehlerantworten.
Author
Owner

@codex fahre fort

@codex fahre fort
frank changed title from #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren to WIP: #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren 2026-07-17 11:46:38 +02:00
Author
Owner

💬 Mention received from @frank — continuing coding session in this worktree…

@codex fahre fort

💬 **Mention received** from @frank — continuing coding session in this worktree… > @codex fahre fort
Author
Owner

💭 Agent progress

Planning GitHub PR inspection
Ich prüfe den aktuellen PR-Stand und setze die noch ausstehenden, fokussierten Änderungen fort.

💭 **Agent progress** **Planning GitHub PR inspection** Ich prüfe den aktuellen PR-Stand und setze die noch ausstehenden, fokussierten Änderungen fort.
Author
Owner

💭 Agent progress

Planning PR metadata retrieval

💭 **Agent progress** **Planning PR metadata retrieval**
Author
Owner

💭 Agent progress

Verifying repository remote origin

💭 **Agent progress** **Verifying repository remote origin**
Author
Owner

💭 Agent progress

Exploring Forge CLI tools

💭 **Agent progress** **Exploring Forge CLI tools**
Author
Owner

💭 Agent progress

Planning reverse connector listener implementation

💭 **Agent progress** **Planning reverse connector listener implementation**
Author
Owner

💭 Agent progress

Planning HTTP listener implementation

💭 **Agent progress** **Planning HTTP listener implementation**
Author
Owner

💭 Agent progress

Implementing shared key validation for connector upgrade

Designing HTTP1.1 connector listener with upgrade handshake

Validating upgrade version header and handling errors

Designing connection handling with OnConnect callback

Planning connection discard and initial testing
Der Listener wird als HTTP/1.1-Upgrade-Endpunkt auf dem konfigurierten Proxy-Port umgesetzt; der Shared Key wird vor der Versionsaushandlung konstantzeitlich geprüft.

💭 **Agent progress** **Implementing shared key validation for connector upgrade** **Designing HTTP1.1 connector listener with upgrade handshake** **Validating upgrade version header and handling errors** **Designing connection handling with OnConnect callback** **Planning connection discard and initial testing** Der Listener wird als HTTP/1.1-Upgrade-Endpunkt auf dem konfigurierten Proxy-Port umgesetzt; der Shared Key wird vor der Versionsaushandlung konstantzeitlich geprüft.
Author
Owner

💭 Agent progress

Confirming patch source for edits

💭 **Agent progress** **Confirming patch source for edits**
Author
Owner

💭 Agent progress

Replacing faulty test with httptest handshake

💭 **Agent progress** **Replacing faulty test with httptest handshake**
Author
Owner

💭 Agent progress

Patching HTTP server listener handling

💭 **Agent progress** **Patching HTTP server listener handling**
Author
Owner

💭 Agent progress

Planning config validation and client isolation

💭 **Agent progress** **Planning config validation and client isolation**
Author
Owner

💭 Agent progress

Adding missing net import and running gofmt

Planning environment rerun with escalation

💭 **Agent progress** **Adding missing net import and running gofmt** **Planning environment rerun with escalation**
Author
Owner

💭 Agent progress

Investigating config flag binding bug

Refactoring listener validation before serving

💭 **Agent progress** **Investigating config flag binding bug** **Refactoring listener validation before serving**
Author
Owner

💭 Agent progress

Verifying test imports and formatting

💭 **Agent progress** **Verifying test imports and formatting**
Author
Owner

💭 Agent progress

Analyzing connection handling issues

Planning HTTP upgrade and header validation
Der Upgrade-Listener ist implementiert und durch Unit-Tests abgesichert; als Nächstes wird der erste fokussierte Commit für PR #18 gepusht.

💭 **Agent progress** **Analyzing connection handling issues** **Planning HTTP upgrade and header validation** Der Upgrade-Listener ist implementiert und durch Unit-Tests abgesichert; als Nächstes wird der erste fokussierte Commit für PR #18 gepusht.
Author
Owner

💭 Agent progress

Reviewing test coverage and code integration

Confirming test behavior and finalizing summary

💭 **Agent progress** **Reviewing test coverage and code integration** **Confirming test behavior and finalizing summary**
Author
Owner

🛠️ Mention follow-up pushed (comment 5592)

Ich prüfe den aktuellen PR-Stand und setze die noch ausstehenden, fokussierten Änderungen fort.Der Listener wird als HTTP/1.1-Upgrade-Endpunkt auf dem konfigurierten Proxy-Port umgesetzt; der Shared Key wird vor der Versionsaushandlung konstantzeitlich geprüft.Der Upgrade-Listener ist implementiert und durch Unit-Tests abgesichert; als Nächstes wird der erste fokussierte Commit für PR #18 gepusht.Implemented and pushed ac2e013.

  • Added authenticated HTTP/1.1 /connector upgrade listener on the configured port.
  • Enforced Shared Key validation with constant-time comparison.
  • Added upgrade/error handling, CLI integration, docs, and tests.
  • Verified with go test ./....
🛠️ **Mention follow-up pushed** (comment 5592) Ich prüfe den aktuellen PR-Stand und setze die noch ausstehenden, fokussierten Änderungen fort.Der Listener wird als HTTP/1.1-Upgrade-Endpunkt auf dem konfigurierten Proxy-Port umgesetzt; der Shared Key wird vor der Versionsaushandlung konstantzeitlich geprüft.Der Upgrade-Listener ist implementiert und durch Unit-Tests abgesichert; als Nächstes wird der erste fokussierte Commit für PR #18 gepusht.Implemented and pushed `ac2e013`. - Added authenticated HTTP/1.1 `/connector` upgrade listener on the configured port. - Enforced Shared Key validation with constant-time comparison. - Added upgrade/error handling, CLI integration, docs, and tests. - Verified with `go test ./...`.
frank changed title from WIP: #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren to #5 Reverse-Connector-Listener mit Shared-Key-Upgrade auf Port 9335 implementieren 2026-07-17 11:49:59 +02:00
Author
Owner

💭 Agent progress

Implemented and pushed ac2e013.

  • Added authenticated HTTP/1.1 /connector upgrade listener on the configured port.
  • Enforced Shared Key validation with constant-time comparison.
  • Added upgrade/error handling, CLI integration, docs, and tests.
  • Verified with go test ./....
💭 **Agent progress** Implemented and pushed `ac2e013`. - Added authenticated HTTP/1.1 `/connector` upgrade listener on the configured port. - Enforced Shared Key validation with constant-time comparison. - Added upgrade/error handling, CLI integration, docs, and tests. - Verified with `go test ./...`.
frank merged commit 305986d429 into main 2026-07-17 11:58:04 +02:00
frank deleted branch agent/issue-5-reverse-connector-listener-mit-shared-ke 2026-07-17 11:58:05 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ai-tools/private-proxy-mcp!18
No description provided.