Open mazw77 opened 1 year ago
I think OS_AUTH_METHODS
must be a list however I don't know how to define a list as env variable.
I tried it using clouds.yaml
and defined it as
auth_methods: ['totp']
auth_type: v3multifactor
Though the error message is basically the same: The plugin totp could not be found
.
Also tried v3totp
as auth_type
, no change.
Related to this, is there any possibility to bypass MFA for API access?
When using the Terraform provider, I just pass my access_key/secret_key of my user and do not need to specify the TOTP code.
I tried all possible combinations in cloud.yaml I could think of but without success.
If I got it right from the TF provider code, it uses an auth_type
of "aksk" but doing so in clouds.yaml
gives me again The plugin aksk could not be found
. https://github.com/opentelekomcloud/python-otcextensions/issues/43 states that AK/SK authentication is not supported but the Terraform provider seems to be able to use it?
@mazw77 @eht16 did you try this: https://docs.openstack.org/openstacksdk/latest/user/config/configuration.html#mfa-support ?
@anton-sidelnikov thanks, I just tried it but it also gives: mfa totp code verify fail (HTTP 401)
Though my question was rather how to use AK/SK authentication with the API in a similar way it is done by the Terraform provider.
I am trying to use openstack CLI with MFA (authenticator APP on iPhone). But I do not succeed. When using additional settings for MFA/TOTP I get the strange error "The plugin t could not be found"