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

realm attributes should not be read only on platform_group resource #159

Closed
piotrminkina opened this issue Nov 21, 2024 · 1 comment
Closed
Assignees

Comments

@piotrminkina
Copy link

Is your feature request related to a problem? Please describe.
I'm using realm and realm_attributes attributes to preconfigure groups that comes from LDAP. This way I can then use references to these groups when defining permissions using the platform_permission resource. With the spin-off of the platform_group resource to the artifactory_group resource, why can realm attributes no longer be configured?

Describe the solution you'd like
I would like that as in resource artifactory_group the attribute realm and realm_attributes could still be configurable.

Describe alternatives you've considered
This is probably the best solution so far.

Additional context

Example of my usage:

resource "artifactory_group" "ldap_publishers" {
  name             = "art.publishers"
  description      = "Publishers of the Artifactory app"
  auto_join        = false
  admin_privileges = false
  realm            = "ldap"
  realm_attributes = "ldapGroupName=art.publishers;groupsStrategy=STATIC;groupDn=cn=ART.Publishers,ou=Applications,ou=Groups,[...]"
}

resource "platform_permission" "anything" {
  name = "Anything"

  build = {
    targets = [
      {
        name             = "artifactory-build-info"
        includes_pattern = ["**"]
      },
    ]
    actions = {
      groups = [
        {
          name        = artifactory_group.ldap_publishers.name
          permissions = ["READ", "WRITE"]
        },
      ]
    }
  }
  artifact = {
    targets = [
      {
        name             = "ANY"
        includes_pattern = ["**"]
      },
    ]
    actions = {
      groups = [
        {
          name        = artifactory_group.ldap_publishers.name
          permissions = ["READ", "WRITE"]
        },
      ]
    }
  }
}
@alexhung
Copy link
Member

@piotrminkina The Access API for managing Groups does not support setting realm or realm_attribute fields. Please contact your JFrog customer service person for feature request. You can mention JIRA ticket JA-14705 for reference.

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