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

Support authorization on the gateway #851

Merged
merged 14 commits into from
Jan 29, 2024
Merged

Support authorization on the gateway #851

merged 14 commits into from
Jan 29, 2024

Conversation

Egor-S
Copy link
Contributor

@Egor-S Egor-S commented Jan 26, 2024

Closes #846

  • Add auth property to Service configuration. The default value is True
  • Require Authorization: Bearer XXX header, where XXX - is a dstack token with access to the project, where the service was created
    • For any service where auth is True
    • For OpenAI endpoint (always)
  • Run GatewayConnection on the server for the whole lifetime of a gateway
    • Use unix socket to make requests to the gateway (local tunnel from the server)
    • Use port 8001 to make authorization requests to the server (reverse tunnel from the gateway)
  • Replace dicts with jinja2 templates for nginx configurations

@Egor-S Egor-S merged commit cf0a11f into master Jan 29, 2024
15 checks passed
@Egor-S Egor-S deleted the issue-846-gateway-auth branch January 29, 2024 08:48
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.

Support authorization on the gateway
1 participant