Skip to content

Add nginx-style authrequest plugin for HTTP /auth gating#700

Draft
Copilot wants to merge 4 commits intomasterfrom
copilot/impl-auth-plugin-nginx-protocol
Draft

Add nginx-style authrequest plugin for HTTP /auth gating#700
Copilot wants to merge 4 commits intomasterfrom
copilot/impl-auth-plugin-nginx-protocol

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 5, 2026

Implemented nginx auth_request-compatible SSH plugin that calls an HTTP /auth endpoint with Basic Auth derived from SSH credentials; 200 OK continues to the next plugin, any other status fails.

  • New plugin: plugin/authrequest with CLI flags (--url, --path, --timeout) and X-Forwarded-For propagation.
  • Behavior: Performs GET to ${url}${path} (default /auth), discards response body safely, and on 200 returns NextPlugin auth to continue the chain.
  • Docs & tests: Added README describing usage; unit tests validate success and failure flows.

Example:

sshpiperd authrequest --url https://auth.example.com --path /auth
Original prompt

impl auth plugin using same protocol as nginx's external auth
open url and call a /auth to see if 200

auth_request        /auth;

you can take a look at
https://github.com/tg123/sshpiper-gh


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 5, 2026 09:13
Co-authored-by: tg123 <170430+tg123@users.noreply.github.com>
Co-authored-by: tg123 <170430+tg123@users.noreply.github.com>
Co-authored-by: tg123 <170430+tg123@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement auth plugin using NGINX external auth protocol Add nginx-style authrequest plugin for HTTP /auth gating Jan 5, 2026
Copilot AI requested a review from tg123 January 5, 2026 09:23
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.

2 participants