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

fix no permission to create model/task index bug;add security IT for train/predict API #177

Merged
merged 3 commits into from
Mar 9, 2022

Conversation

ylwu-amzn
Copy link
Collaborator

@ylwu-amzn ylwu-amzn commented Mar 9, 2022

Signed-off-by: Yaliang Wu ylwu@amazon.com

Description

  • Fix no permission to create model/task index bug. ML model and task index are system index. Need to stash thread context to create.
  • Add security IT for train/predict API

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ylwu-amzn ylwu-amzn requested a review from a team March 9, 2022 02:25
…train/predict API

Signed-off-by: Yaliang Wu <ylwu@amazon.com>
Signed-off-by: Yaliang Wu <ylwu@amazon.com>
Signed-off-by: Yaliang Wu <ylwu@amazon.com>
@amitgalitz
Copy link
Member

Build failed on some tests that weren't changed on this PR, could be flaky ones

@ylwu-amzn
Copy link
Collaborator Author

Yes, seems flaky test, created an issue to track this #179

@ylwu-amzn ylwu-amzn merged commit f12ca76 into opensearch-project:main Mar 9, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 9, 2022
…train/predict API (#177)

* fix no permission to create model/task index bug;add security IT for train/predict API

Signed-off-by: Yaliang Wu <ylwu@amazon.com>

* add more security IT for readonly user

Signed-off-by: Yaliang Wu <ylwu@amazon.com>

* throw exception if delete model/task successfully for readonly user

Signed-off-by: Yaliang Wu <ylwu@amazon.com>
(cherry picked from commit f12ca76)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 9, 2022
…train/predict API (#177)

* fix no permission to create model/task index bug;add security IT for train/predict API

Signed-off-by: Yaliang Wu <ylwu@amazon.com>

* add more security IT for readonly user

Signed-off-by: Yaliang Wu <ylwu@amazon.com>

* throw exception if delete model/task successfully for readonly user

Signed-off-by: Yaliang Wu <ylwu@amazon.com>
(cherry picked from commit f12ca76)
ylwu-amzn added a commit that referenced this pull request Mar 9, 2022
…train/predict API (#177) (#181)

* fix no permission to create model/task index bug;add security IT for train/predict API

Signed-off-by: Yaliang Wu <ylwu@amazon.com>

* add more security IT for readonly user

Signed-off-by: Yaliang Wu <ylwu@amazon.com>

* throw exception if delete model/task successfully for readonly user

Signed-off-by: Yaliang Wu <ylwu@amazon.com>
(cherry picked from commit f12ca76)

Co-authored-by: Yaliang Wu <ylwu@amazon.com>
ylwu-amzn added a commit that referenced this pull request Mar 9, 2022
…train/predict API (#177) (#180)

* fix no permission to create model/task index bug;add security IT for train/predict API

Signed-off-by: Yaliang Wu <ylwu@amazon.com>

* add more security IT for readonly user

Signed-off-by: Yaliang Wu <ylwu@amazon.com>

* throw exception if delete model/task successfully for readonly user

Signed-off-by: Yaliang Wu <ylwu@amazon.com>
(cherry picked from commit f12ca76)

Co-authored-by: Yaliang Wu <ylwu@amazon.com>
@ylwu-amzn ylwu-amzn added the bug Something isn't working label Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.x backport 1.3 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants