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

Make healthCheck only for Admin #2425

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AKARSHITJOSHI
Copy link
Contributor

@AKARSHITJOSHI AKARSHITJOSHI commented Feb 18, 2025

fixes #2379

  1. Remove method private void processShownFields(BackendSystemStatus backendSystemStatus)

  2. Allow healthCheck() method only for 'ADMIN' ROLE and rename method to stackHealthStatus() -> /xpanse/stack/health

  3. Rename existing SystemStatus data model to -> StackStatus

  4. create new method -> healthCheck() -> which returns only new SystemStatus data model which has only 'HealthStatus' as a property.

5.Allow new method to all roles - admin, user, isv and csp.

Note : endpoint -> "/health" changed to "/stack/health" allowed only for admin
new endpoint -> "/health" allowed for all users.

@AKARSHITJOSHI AKARSHITJOSHI force-pushed the feature/2379-healthcheck-admin-only branch 4 times, most recently from c7ff7f3 to 449cc17 Compare February 19, 2025 17:38
@AKARSHITJOSHI AKARSHITJOSHI force-pushed the feature/2379-healthcheck-admin-only branch from 449cc17 to 40a74bf Compare February 19, 2025 19:02
Copy link
Contributor

@swaroopar swaroopar left a comment

Choose a reason for hiding this comment

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

LGTM. Approved. Since this is a breaking change, it will be merged together with the UI changes.

@Alice1319
Copy link
Contributor

LGTM

@WangLiNaruto
Copy link
Contributor

LGTM

2 similar comments
@baixinsui
Copy link
Contributor

LGTM

@profoundwu
Copy link

LGTM

@AKARSHITJOSHI AKARSHITJOSHI force-pushed the feature/2379-healthcheck-admin-only branch from 40a74bf to 4d2114b Compare March 1, 2025 11:10
@AKARSHITJOSHI AKARSHITJOSHI force-pushed the feature/2379-healthcheck-admin-only branch from 4d2114b to af83c61 Compare March 5, 2025 16:41
@profoundwu
Copy link

LGTM

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.

make healthcheck only for admin users and create new service for all users
6 participants