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

SAML2: add cookie with HttpOnly too #10047

Merged

Conversation

weizhouapache
Copy link
Member

Description

This PR fixes #10003

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?

How did you try to break this feature and the system with this change?

@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache a [SL] 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.

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.13%. Comparing base (47f6019) to head (75261dd).
Report is 3 commits behind head on 4.19.

Additional details and impacted files
@@             Coverage Diff              @@
##               4.19   #10047      +/-   ##
============================================
- Coverage     15.13%   15.13%   -0.01%     
- Complexity    11261    11263       +2     
============================================
  Files          5408     5408              
  Lines        473842   473843       +1     
  Branches      57771    57771              
============================================
  Hits          71696    71696              
- Misses       394145   394146       +1     
  Partials       8001     8001              
Flag Coverage Δ
uitests 4.30% <ø> (ø)
unittests 15.85% <100.00%> (-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.

this looks ok, but I have no idea if it results in the desired behaviour. (needs-testing)

@DaanHoogland
Copy link
Contributor

@kiranchavala , maybe we can look at testing this together?

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11722

@weizhouapache
Copy link
Member Author

@blueorangutan test keepEnv

@blueorangutan
Copy link

@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@DaanHoogland DaanHoogland linked an issue Dec 5, 2024 that may be closed by this pull request
@DaanHoogland DaanHoogland changed the title SAML2: add cookie with HttpOnly too #10013 SAML2: add cookie with HttpOnly too Dec 5, 2024
@blueorangutan
Copy link

[SF] Trillian test result (tid-11857)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 47641 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10047-t11857-kvm-ol8.zip
Smoke tests completed. 133 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

Copy link
Contributor

@kiranchavala kiranchavala left a comment

Choose a reason for hiding this comment

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

LGTM, tested manually and the saml user is able to switch the domains successfully

Video recording

https://www.loom.com/share/bd87a0752712429eaf60f5490af3c3dc?sid=70d14bdc-a27f-4d92-99c0-0e4a024d547c

@weizhouapache weizhouapache marked this pull request as ready for review December 9, 2024 12:33
@weizhouapache
Copy link
Member Author

LGTM, tested manually and the saml user is able to switch the domains successfully

Video recording

https://www.loom.com/share/bd87a0752712429eaf60f5490af3c3dc?sid=70d14bdc-a27f-4d92-99c0-0e4a024d547c

thanks @kiranchavala for testing !

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

@DaanHoogland DaanHoogland merged commit f9b1767 into apache:4.19 Dec 9, 2024
25 checks passed
@DaanHoogland DaanHoogland deleted the 4.19-fix-saml-switch-domain branch December 9, 2024 15:45
weizhouapache added a commit to weizhouapache/cloudstack that referenced this pull request Dec 11, 2024
DaanHoogland added a commit that referenced this pull request Dec 20, 2024
* 4.20:
  VR: apply iptables rules when add/remove static routes (#10064)
  Certificate and VM hostname validation improvements (#10051)
  set ulimit for server according to redhat spec (#10040)
  kvm-storage: provide isVMMigrate information to storage plugins (#10093)
  Allow config drive deletion of migrated VM, on host maintenance (#10045)
  linstor: improve heartbeat check with also asking linstor (#10105)
  server: simplify role change validation (#9173)
  UI: create VPC network offering with conserve mode (#10082)
  server: fix typo removeaccessvpn in VirtualRouterElement (#10086)
  UI: remove duplicated Instance Name in Public IP details page (#10087)
  UI: Fixes in the Usage UI (#10000)
  SAML2: add cookie with HttpOnly too #10013 (#10047)
  ui: Allow font-awesome icon usage and optimise icon size inconsistency (#9744)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 26, 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.

Unable to change the domain when a user is authenticated by SAML
4 participants