Skip to content

api: userdata api access for non-rootadmins#7319

Merged
DaanHoogland merged 1 commit into
apache:mainfrom
shapeblue:fix-userdata-api-access
Mar 10, 2023
Merged

api: userdata api access for non-rootadmins#7319
DaanHoogland merged 1 commit into
apache:mainfrom
shapeblue:fix-userdata-api-access

Conversation

@shwstppr

@shwstppr shwstppr commented Mar 7, 2023

Copy link
Copy Markdown
Contributor

Description

Fixes userdata API access for domain admins, normal user.

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)

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?

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@DaanHoogland DaanHoogland added this to the 4.18.0.0 milestone Mar 7, 2023

@DaanHoogland DaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clgtm

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5690

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6270)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 38581 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7319-t6270-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6268)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41035 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7319-t6268-xenserver-71.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_02_cancel_host_maintenace_with_migration_jobs Error 1512.76 test_host_maintenance.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6269)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 42115 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7319-t6269-vmware-67u3.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@vladimirpetrov vladimirpetrov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM based on manual testing. Tested scenarios:

as user:

L2 network CD, jinja script for create file - OK
L2 network CD, manual text override - OK
Shared VR - simple text - OK
Shared VR - overridden text - OK
L2 network CD, overridden with jinja script for file create - OK
Shared network VR, overridden with jinja script for file create - OK
Isolated network CD, overridden with jinja script for file create - OK
as domain admin:

Shared VR, simple text - OK
Shared VR, overridden text - OK
L2 network CD, simple text - OK
L2 network CD, overridden text - OK
L2 network CD, overridden with jinja script for file create - OK
Shared network VR, overridden with jinja script for file create - OK

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@DaanHoogland DaanHoogland marked this pull request as ready for review March 10, 2023 15:59
@DaanHoogland DaanHoogland merged commit f64f7b9 into apache:main Mar 10, 2023
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