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

you examples in resource harbor_robot_account does not work and any different Configuration does not work too #428

Closed
Nello-Angelo opened this issue Apr 16, 2024 · 6 comments

Comments

@Nello-Angelo
Copy link

Screenshot at Apr 16 20-22-45
@Nello-Angelo
Copy link
Author

resource "harbor_robot_account" "system" {
  name        = "example-system"
  description = "system level robot account"
  level       = "system"
  secret      = resource.random_password.password.result
  permissions {
    access {
      action   = "create"
      resource = "labels"
    }
    kind      = "system"
    namespace = "/"
  }
}

this Configuration does not work

@Nello-Angelo
Copy link
Author

for project works correct

@flbla
Copy link
Contributor

flbla commented Apr 16, 2024

@Nello-Angelo which version of harbor do you use ?
I think it's a rbac change in harbor 2.10

@Nello-Angelo
Copy link
Author

Version v2.10.1-b7b8847

@Nello-Angelo
Copy link
Author

does it normal behave?

@flbla
Copy link
Contributor

flbla commented Apr 17, 2024

it's label without the "s" at the end with harbor 2.10 (I suppose it's a changed in the Harbor API) :

resource "harbor_robot_account" "system" {
  name        = "example-system"
  description = "system level robot account"
  level       = "system"
  permissions {
    access {
      action   = "create"
      resource = "label"
    }
    kind      = "system"
    namespace = "/"
  }
}

I will update the documentation.
Thanks for the bug report @Nello-Angelo

@flbla flbla closed this as completed Apr 17, 2024
flbla added a commit that referenced this issue Apr 17, 2024
flbla added a commit that referenced this issue Apr 17, 2024
Signed-off-by: flbla <flbla@users.noreply.github.com>
flbla added a commit that referenced this issue Apr 17, 2024
Signed-off-by: flbla <flbla@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.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

2 participants