-
Notifications
You must be signed in to change notification settings - Fork 295
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
🌱 Don't require Validate session privileges to check if user session is active #2235
Conversation
Hi @laozc. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/lgtm @srm09 or @randomvariable , would be awesome to get your take on this. |
LGTM label has been added. Git tree hash: eea4888bf2744c5cd234a0a7a0a6d38232b8e438
|
Had to read the govmomi code for UserSession to understand what happened. It makes sense, but maybe worth leaving a comment that UserSession(blah) actually does a managed object retrieval for future devs. |
I think this is not correct:
If I got it correctly it is just that Validate Session is required on the root (?). And using UserSession (aka getting currentSession) requires less permissions. I'm fine in general with the change, but is there any vCenter documentation confirming that UserSession / currentSession requires no specific pemissions? (@laozc @randomvariable) |
I don't know if there's something confirming that permissions are not required, but permissions are described here https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-security/GUID-ED56F3C4-77D0-49E3-88B6-B99B8B437B62.html Similar to what we do with CloudTrail in CAPA, at some point may want to enable the privilege recorder https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-security/GUID-8A5066BB-BE0C-48AD-9DDB-F3446AD3B9F6.html and capture the output, though that might be restricted in VMC. |
Thx for the info. That could become very useful going forward |
/lgtm |
LGTM label has been added. Git tree hash: a0d09581253b94e95388b3774ea64d3aa148f805
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Session active check does not work for Datacenter scoped TKG admin account.
API
SessionIsActive
requiresValidateSession
permission which is not listed in current doc.It can be replaced with a simple Datacenter retrieval call to do the same thing.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2066