Skip to content

Add support for server --authurl parameter#582

Open
tobiasmcnulty wants to merge 1 commit intojpillora:masterfrom
tobiasmcnulty:authurl
Open

Add support for server --authurl parameter#582
tobiasmcnulty wants to merge 1 commit intojpillora:masterfrom
tobiasmcnulty:authurl

Conversation

@tobiasmcnulty
Copy link
Copy Markdown

This PR adds support for --authurl, an alternative to --authfile that delegates user authentication to an external HTTP service.

When a client connects, the server POSTs {"username": "...", "password": "..."} to the configured URL; a 200 response with a JSON array of address regexes grants access, while any other status denies it.

This approach works well in containerized environments where --authfile is limited by the lack of cross-container file-change notifications. The flag supports all existing address-matching functionality of --authfile and is mutually exclusive with it.

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.

1 participant