conceal icon indicating copy to clipboard operation
conceal copied to clipboard

[RFC] 1Password and OTP Support

Open scrummer opened this issue 2 years ago • 1 comments

Just discovered this tool and love the approach of it. IMO this has great potential.

However I'd like to ask about two things that are missing for my case and might be a great benefit for others too.

1st: 1Password support - great tool that comes with a CLI to interact with. In commercial areas I guess 1PW is a very common password manager and it should not miss on the list of supported password managers.

2nd: The possibility to also read a One-Time Code/Password from an entry since this is more than common to have configured. Sth like:

resource "profile" "some-service" {
  environment "default" {
    command = "SERVICE_PW=$MY_SERVICE_PW some-command"
    args = "login -u $MY_SERVICE_LOGIN --password --otp $OTP"
    env = {
      id = "MY_SERVICE"
      login = "MY_SERVICE_LOGIN"
      password = "MY_SERVICE_PW"
      otp = "MY_SERVICE_OTP
    }
  }
}

So this is just an RFC - what do you think about it?

Best, Jan

scrummer avatar Jun 21 '23 13:06 scrummer

Hello @scrummer ,

Thank you for getting in touch and providing your valuable feedback. I agree with you on supporting 1Password, also the idea of having OTP will be an addition value to the project,

Would you consider submitting pull requests with your suggested changes?

mostafahussein avatar Nov 21 '23 17:11 mostafahussein