You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/10/06 09:11:02 UTC

[GitHub] [cloudstack-cloudmonkey] PaulAngus opened a new issue #104: Enable passing of profile information in cmk commandline

PaulAngus opened a new issue #104:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/104


   ### Feature Request
   
   **Enable the passing of profile information in cmk command line**
   
   ### Use Case
   
   - Storing API and Secret Keys in a plain text file presents a large security hole.
   - Also, when using scripting from a central location where multiple profiles are in use, switching between profiles and altering config is cumbersome.
   - Plus cmk cannot be used against multiple environments (profiles) at the same time,
   
   ###  Subsequent Usage
   
   Being able to override these parameters would allow config to be:
   
   ```
   prompt     = ߐ
   asyncblock = true
   timeout    = 1800
   output     = json
   verifycert = true
   profile    = localcloud
   
   [localcloud]
   url       = http://localhost:8080/client/api
   username  = 
   password  = 
   domain    = /
   apikey    = 
   secretkey =
   ```
   one could then use:
   
   cmk **cmk_url**=http://acs_host:8080/client/api **cmk_apikey**=$APIKEY **cmk_secretkey**=$SECRETKEY **cmk_output**=csv **list hosts**
   
   When scripting, APIKEY and SECRETKEY can be stored in a vault
   


-- 
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: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-cloudmonkey] PaulAngus commented on issue #104: Enable passing of profile information in cmk commandline

Posted by GitBox <gi...@apache.org>.
PaulAngus commented on issue #104:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/104#issuecomment-936043774


   Hi Rohit.
   
   I want avoid a text file with the endpoint and credentials in it.
   Using the existing nomenclature there would be
   
    -s     secret key
    -k     api key
    -u     api endpoint url
    -o     output
   
   possibly also
   -a asyncblock
   -v verifycert
   ....
   


-- 
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: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-cloudmonkey] rhtyd commented on issue #104: Enable passing of profile information in cmk commandline

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #104:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/104#issuecomment-935818274


   With latest v6.2.0 you can now pass the -c option to specify custom config/server profile https://github.com/apache/cloudstack-cloudmonkey/wiki/Getting-Started#getting-help 


-- 
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: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-cloudmonkey] rhtyd edited a comment on issue #104: Enable passing of profile information in cmk commandline

Posted by GitBox <gi...@apache.org>.
rhtyd edited a comment on issue #104:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/104#issuecomment-935818274


   With latest v6.2.0 you can now pass the -p and -c options to specify custom config/server profile https://github.com/apache/cloudstack-cloudmonkey/wiki/Getting-Started#getting-help 


-- 
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: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org