Skip to content

Conversation

@hsato03
Copy link
Collaborator

@hsato03 hsato03 commented Oct 28, 2024

Description

If a user does not have access to the scaleKubernetesCluster API and tries to list Kubernetes clusters through the UI, an error is thrown. Therefore, it is not possible to list and create Kubernetes clusters due to this error, even if the user has permission for such actions.

Screenshot from 2024-10-28 13-42-38

Since then, changes have been made so that this error no longer occurs and the user can list and manage Kubernetes clusters even if he doesn't have access to the scaleKubernetesCluster API.

Screenshot from 2024-10-28 18-08-21

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

I created an account from a custom admin role that has the scaleKubernetesCluster API as DENY and all other APIs as ALLOW. Then, I logged into this account and was able to perform some basic operations like creating, listing and deleting a Kubernetes cluster.

@codecov
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.08%. Comparing base (7fbd0a9) to head (977bb90).
Report is 5 commits behind head on 4.19.

Additional details and impacted files
@@            Coverage Diff             @@
##               4.19    #9867    +/-   ##
==========================================
  Coverage     15.08%   15.08%            
- Complexity    11201    11203     +2     
==========================================
  Files          5404     5404            
  Lines        473424   473423     -1     
  Branches      60702    60168   -534     
==========================================
+ Hits          71418    71428    +10     
+ Misses       394059   394045    -14     
- Partials       7947     7950     +3     
Flag Coverage Δ
uitests 4.30% <ø> (+<0.01%) ⬆️
unittests 15.80% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@sureshanaparti sureshanaparti added this to the 4.19.2.0 milestone Oct 30, 2024
@DaanHoogland
Copy link
Contributor

@blueorangutan ui

@blueorangutan
Copy link

@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@apache apache deleted a comment from blueorangutan Oct 31, 2024
@apache apache deleted a comment from blueorangutan Oct 31, 2024
@apache apache deleted a comment from blueorangutan Oct 31, 2024
@apache apache deleted a comment from blueorangutan Oct 31, 2024
@apache apache deleted a comment from blueorangutan Oct 31, 2024
@apache apache deleted a comment from blueorangutan Oct 31, 2024
@apache apache deleted a comment from blueorangutan Oct 31, 2024
@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/9867 (QA-JID-475)

@rohityadavcloud rohityadavcloud merged commit a6e9aec into apache:4.19 Nov 7, 2024
24 of 25 checks passed
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants