-
I need to understand a little more about how govc is using the .govmomi/sessions/. Logged in as root, on a host where my team runs govc command, I can perform functions as 'alice' if there is a valid session for 'alice' in ~/.govmomi/sessions/
The solution is to run govc session.logout at the end of my script I guess. I just wasn't aware of this sessions persistence nor do I know where to find documentation on this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is an option to turn off the session cache, We should make this more clear in the docs and add more details. |
Beta Was this translation helpful? Give feedback.
There is an option to turn off the session cache,
-persist-session=false
or via envexport GOVC_PERSIST_SESSION=false
See: https://github.com/vmware/govmomi/blob/main/govc/USAGE.md#govc-usage
We should make this more clear in the docs and add more details.