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 put-alert-first-viewed-at #357

Merged
merged 2 commits into from
Mar 15, 2024
Merged

Conversation

senk8
Copy link
Contributor

@senk8 senk8 commented Mar 15, 2024

put-alert-first-viewed-atの権限がないと、alertとfindingの画面を開くことができなかったので修正しました。また、viewer権限が間違っていたので修正しました。

動作確認済み
image

実際にfindingが開くことが可能かどうかはローカルで管理者以外のユーザーを作成してそれにログインする方法がわからなかったため、試せていません。方法をご存知でしたらご教示ください。

Copy link

セキュリティレビューを実施しました。
特に問題は見つかりませんでした👏

By RISKEN review


for name, actionPtn := range map[string]string{projectAdmin: ".*", projectViewer: "/finding/.+", findingEditor: "get|list|is-admin|/finding/.+"} {
for name, actionPtn := range map[string]string{projectAdmin: ".*", projectViewer: viewerActionPtn, findingEditor: viewerActionPtn + "|/finding/.+"} {
Copy link
Collaborator

Choose a reason for hiding this comment

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

本件、LGTMなんですが、

すいません、前回のPRの指摘したような気もするのですが、finding-editorは、/finding/ に加えて /alert/ の操作全般も要件に入っていた気がします。(↓)

アラートの pending, archive 実行権限

こちら確認お願いしてもいいでしょうか?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

alertとfindingの区別を誤解していました。修正しました。
image

@gassara-kys
ebc6189

Copy link
Collaborator

@gassara-kys gassara-kys left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@iiiidaaa iiiidaaa left a comment

Choose a reason for hiding this comment

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

LGTM

@senk8 senk8 merged commit 64c61d2 into master Mar 15, 2024
4 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.

3 participants