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

Integrate auth logic into mlflow, aim, admin, chooser parts #1051

Merged
merged 11 commits into from
Mar 28, 2024
Merged

Integrate auth logic into mlflow, aim, admin, chooser parts #1051

merged 11 commits into from
Mar 28, 2024

Conversation

dsuhinin
Copy link
Collaborator

This is 2/2 part. Whats inside the box:

  • auth functionality connected to mlflow, aim, admin, chooser parts.
  • other related improvements and refactoring.

@dsuhinin dsuhinin linked an issue Mar 26, 2024 that may be closed by this pull request
@dsuhinin dsuhinin marked this pull request as ready for review March 27, 2024 09:34
if authToken == nil || !authToken.HasUserAccess(namespace.Code) {
return ctx.Status(
http.StatusNotFound,
).JSON(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is chooser, maybe we should provide plain text response instead of JSON? or, ideally, HTML.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, plain test response is reasonable. rendering html inside the middleware not a good approach I think. probably in such cases works well forwarding to error page.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so I think now we can just send something plain.

suprjinx
suprjinx previously approved these changes Mar 27, 2024
@dsuhinin dsuhinin merged commit c09ee2c into G-Research:main Mar 28, 2024
17 checks passed
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.

Restrict namespace CRUD operations
2 participants