Open chas0amx opened 2 years ago
:bulb: Any updates on that :interrobang:
Depending on your configuration, SOPS may need to do a role assumption on each encrypt/decrypt. Even if you have your session cached, the role assumption is a "new login", hence the MFA.
Сan be partly solved with totp (https://github.com/arcanericky/totp) in this way: export AWS_PROFILE=extra; totp aws | sops -d secrets.prod.yaml
I have next in ~/.aws/credentials
Next, I do:
export AWS_PROFILE=extra aws s3 ls
it asks MFA code only one time, but when I dosops -d secrets.prod.yaml
it asksAssume Role MFA token code:
all the timeWhy? It is so inconvenient. The same with helm plugin (https://github.com/jkroepke/helm-secrets)