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

Add authorization settings for API #1017

Merged
merged 3 commits into from
May 20, 2024
Merged

Add authorization settings for API #1017

merged 3 commits into from
May 20, 2024

Conversation

imbyungjun
Copy link
Contributor

No description provided.

@imbyungjun imbyungjun requested a review from donggyu04 May 7, 2024 08:30
@imbyungjun imbyungjun self-assigned this May 7, 2024
@@ -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')}`;
Copy link
Contributor Author

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')")
Copy link
Contributor Author

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.

Copy link

github-actions bot commented May 7, 2024

❌ Build & Test workflow failed ❌

@imbyungjun imbyungjun merged commit 2e44e04 into develop May 20, 2024
4 of 6 checks passed
@imbyungjun imbyungjun deleted the feature/auth branch May 20, 2024 06:39
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.

2 participants