Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass HTTP headers to the command as env vars #483

Open
mont5piques opened this issue Jun 27, 2023 · 1 comment
Open

Pass HTTP headers to the command as env vars #483

mont5piques opened this issue Jun 27, 2023 · 1 comment

Comments

@mont5piques
Copy link

Is your feature request related to a problem? Please describe.
I'm using Wetty behind a reverse proxy that performs user authentication using OIDC. It will be interesting if we could support user authentication for example.

Describe the solution you'd like
The proxy can supply user related info as HTTP request Headers. It would be interesting to supply this information to the --command script. The script will then do stuff related to the user context.

Beside that, this could used for other use-cases (like domain based filtering using Host header, using basic auth to supply ssh username/password instead of URL paths ...)

Describe alternatives you've considered
Using paths but not secure for authentication use cases.

Additional context
None.

@mont5piques
Copy link
Author

mont5piques commented Jun 30, 2023

It could be configured in a curl-like syntax ; --header X-My-Super-Header:ENV_VAR_NAME. Let me know what you think of it, I may push a pull request for that.

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

No branches or pull requests

1 participant