这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@laurentlp
Copy link
Contributor

@laurentlp laurentlp commented Aug 25, 2022

This PR improves the security by only allowing the Super Admins to reboot the server.

To test:

  • First, run this branch.
  • Then create an admin, a developer, a content editor, or an agent.
  • Login as the user and fetch its token
  • Make a POST call to http://localhost:3000/api/v1/admin/server/rebootServer using the token to authenticate and see the 403 error code returned.

@laurentlp laurentlp requested a review from EFF August 25, 2022 19:02
Copy link
Contributor

@EFF EFF left a comment

Choose a reason for hiding this comment

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

🌮

@laurentlp laurentlp merged commit 39e2e0f into master Aug 25, 2022
@laurentlp laurentlp deleted the llp_only_sa_can_reboot branch August 25, 2022 19:24
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