Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform cannot connect to team account #42

Open
cmarasescu opened this issue Jun 23, 2020 · 2 comments
Open

Terraform cannot connect to team account #42

cmarasescu opened this issue Jun 23, 2020 · 2 comments

Comments

@cmarasescu
Copy link

Hello,

We have a team account in 1Password and we are using the following sign-in address while using the 1Password cli: .ent.1password.com

I'm trying to configure the 1password provider in Terraform, using the followind fields:

provider "onepassword" {
        version = ">= 0.6.3"   #I'm using the latest release of the 1password provider
        email = var.onepassword_email
        password = var.onepassword_password
        secret_key = var.onepassword_secret_key
        subdomain = "myteam.ent" # Optional. Comes from <subdomain>.1password.com.
}

The above code fails to connect to my 1Password vault, it throws the below error:

Error: Cannot signin: [ERROR] 2020/06/23 14:43:21 Couldn't connect to the sign in address you provided. Make sure the address is correct and check your network connection, then try again.

Is this a bug or is there something wrong in the way I've filled the subdomain field?
I'm using the following versions:

Terraform v0.12.26

  • provider.onepassword v0.6.3

Thanks!

@cmarasescu
Copy link
Author

Hello,

Maybe the issue is related to a bug in the latest release of the 1password cli (op) => affected version is v1.1.0:
https://discussions.agilebits.com/discussion/114031/mac-cli-fails-with-cant-sign-in-enter-your-full-sign-in-address

As a current workaround I'm using the previous version of 1password cli, v1.0.0

@cmarasescu
Copy link
Author

Hello,

I've tested all combinations and I've finally made it work by adding the full sign-in address under subdomain field => "myteam.ent.1password.com"

Full provider definition:

provider "onepassword" {
        version = ">= 0.6.3"   #I'm using the latest release of the 1password provider
        email = var.onepassword_email
        password = var.onepassword_password
        secret_key = var.onepassword_secret_key
        subdomain = "myteam.ent.1password.com" # Optional. Comes from <subdomain>.1password.com.
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant