ingox commented on PR #174:
URL: 
https://github.com/apache/cloudstack-cloudmonkey/pull/174#issuecomment-3209270614

   > @shwstppr @DaanHoogland @ingox
   > 
   > sorry for late comment
   > 
   > my idea is a bit radical: we should forget the current keys and user 
credentials when user tries to use another user (different env, 
domain/username, or apikey/secretkey)
   > 
   > To be clear,
   > 
   >     * cmk without arguments: load the default profile. fallback to 
username if keys do not work.
   > 
   >     * cmk with profile: load the specified profile. fallback to username 
if keys do not work.
   > 
   >     * cmk with -s or -k: load the endpoint URL from default/specified 
profile or passed by `-u`. But forget the 
domain/username/password/apikey/secretkey in profiles
   > 
   >     * `set apikey` or `set secretkey` in cmk shell:  forget the 
domain/username/password/apikey/secretkey loaded from profiles
   > 
   >     * `set domain` to a different value : forget the 
domain/username/password/apikey/secretkey loaded from profiles
   > 
   >     * `set username` to a different value : forget the 
username/password/apikey/secretkey loaded from profiles
   
   That is a consistent approach and understandable.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to