ansible-collections / ibm.spectrum_virtualize

IBM Spectrum Virtualize
GNU General Public License v3.0
21 stars 26 forks source link

Support authentication through token #12

Closed freedge closed 3 years ago

freedge commented 4 years ago
SUMMARY

The idea would be to be able to specify a token (such as the one returned as X-Auth-Token after a POST to /auth) instead of username/password. This would prevent extra calls to the auth API, it would also make sure we are not uselessly creating sessions on the SVC side.

In addition, it would be much awesome if we could retrieve this token through the SSH cli. The idea would be to use the cli for the sole purpose of getting a token, that can be reuse after for Ansible playbooks. For security reasons, we usually favor authentication through SSH key exchange, so it would be a nice improvement here as well.

ISSUE TYPE
COMPONENT NAME

the login mechanism

ADDITIONAL INFORMATION
   serial:1
   - tasks:
      ibm_svc_host:
        clustername: '{{ svc_ip }}'
        token: "{{ lookup('env','IBMSVC_TOKEN') }}"
Shilpi-J commented 3 years ago

Single authentication added in 1.5.0 Module: ibm_svc_auth