Open hlourencomarques opened 1 month ago
Hi @hlourencomarques, I tried the exact same code you provided and I have no issue with latests versions of the provider :
resource "harbor_robot_account" "test" {
name = "test"
level = "project"
permissions {
kind = "project"
namespace = "my-namespace"
access {
action = "read"
resource = "repository"
}
}
}
harbor_robot_account.name: Creating...
harbor_robot_account.test: Creation complete after 0s [id=/robots/2]
Automated tests were also ran on Harbor 2.9 and Terraform 1.9 without any issues for these tags
I think your issue due to this change : https://github.com/goharbor/terraform-provider-harbor/pull/448/files Do you use an admin account to create robot account ? If not, it's probably a lack of rights
Hello @flbla,
Sorry for the delay; I was on vacation.
I'm using an account with only the Project Admin role, not the (Harbor) Admin role. This may be the root cause.
Thank you for preparing the PR to fix this issue. I hope it will be merged soon.
Describe the bug Starting at version 3.10.12, I cannot create a very simple robot account in Harbor without any error. The robot account gets created but the Terraform apply command ends with the following error:
To Reproduce
Create a configuration file, e.g. harbor.tf:
Apply changes:
terraform apply
Confirm the application of changes:
Expected behavior Change applied successfully.
Additional context This is working with the provider version 3.10.11 and older.