You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I cannot specify api_key since it fails and requests to specify access_token (which then takes precedence)
(I am aware that the key is deprecated and I want to move to the token asap 😃 )
│ Error: Missing JFrog Access Token
│
│ with provider["registry.terraform.io/jfrog/artifactory"],
│ on test.tf line 11, in provider "artifactory":
│ 11: provider "artifactory" {
│
│ While configuring the provider, the Access Token was not found in the JFROG_ACCESS_TOKEN/ARTIFACTORY_ACCESS_TOKEN environment variable or provider
│ configuration block access_token attribute.
╵
I assume the problem is that only the token is validated without checking if the key was specified:
Describe the bug
I cannot specify
api_key
since it fails and requests to specifyaccess_token
(which then takes precedence)(I am aware that the key is deprecated and I want to move to the token asap 😃 )
I reduced my problem to the following dummy code
failing with
I assume the problem is that only the token is validated without checking if the key was specified:
terraform-provider-artifactory/pkg/artifactory/provider/framework.go
Lines 142 to 150 in 1942a28
With:
v1.7.5
ondarwin_arm64
registry.terraform.io/jfrog/artifactory
v10.7.6
7.41.12
Expected behavior
The Terraform run is successfully authenticating using the
api_key
and does not ask for theaccess_token
.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: