-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
refactor: auth and metrics middlewares #2894
refactor: auth and metrics middlewares #2894
Conversation
…ler#2733 Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Dave <[email protected]>
This comment was marked as off-topic.
This comment was marked as off-topic.
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
Signed-off-by: Dave Lee <[email protected]>
@mudler - cleaned up some things based on your comments. By default, the UI is once again fully protected. Endpoint skipping is now regex based, and fully configurable. The relevant new configuration settings are:
This is split into two parameters to easily default to "off" with a sane default for "on" as well. |
Signed-off-by: Dave Lee <[email protected]>
Pull request was closed
feat: auth v2 - supercedes #2894, metrics to follow later Signed-off-by: Dave Lee <[email protected]>
This refactor PR contains the following changes:
core/http/middleware
has been created to hold non-endpoint specific HTTP code, rather than leaving it loose withinapp.go
, as much as possible.core/http/middleware/metrics.go
is a file move - there should be no changes other than renames, but it belongs here now.core/http/middleware/auth.go
handles the creation of keyauth configuration data and contains the validation function specific to LocalAI.pkg/model/initializer.go
- logging change that is helpful while debuggingNotably this does not include the common request infrastructure yet - that depends on #2773 but nothing in this PR does