-
Notifications
You must be signed in to change notification settings - Fork 479
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
Add authorization settings for API #1017
Conversation
@@ -420,7 +420,7 @@ | |||
} | |||
|
|||
this.tests[target.index].status = updatedStatus; | |||
this.runningSummary = `${res.data.perfTestInfo.length} ${this.i18n('perfTest.list.runningSummary')}`; | |||
this.runningSummary = `${res.data.runningTestsCount} ${this.i18n('perfTest.list.runningSummary')}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It unnecessarily exposed other users' performance test information. So, changed it.
@@ -65,6 +66,7 @@ | |||
@RestController | |||
@RequestMapping("/script/api") | |||
@RequiredArgsConstructor | |||
@PreAuthorize("hasAnyRole('A', 'S', 'U')") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of FileEntiry related APIs need authorization even if the method doesn't have a User parameter.
❌ Build & Test workflow failed ❌ |
No description provided.