Giter VIP home page Giter VIP logo

Comments (4)

mrparkers avatar mrparkers commented on August 28, 2024 1

Hi @fharding1, thanks for the issue! You're right that the provider does not currently support this, I'd be happy to accept a PR that adds this functionality.

I think the HCL you posted makes sense and is the best approach. I agree that adding default groups on the keycloak_realm resource does not make sense, mostly because there would be no way to apply your entire configuration with a single run of terraform apply, like you mentioned. Also, that resource has too many attributes on it already 😄

Feel free to let me know if you have any questions or run into issues while working on this.

from terraform-provider-keycloak.

mrparkers avatar mrparkers commented on August 28, 2024

Something else I just thought of - it may be a good idea to do some extra validation against using the keycloak_group_memberships resource on a default group, or at least document the pitfalls of using both of these resources on the same group.

from terraform-provider-keycloak.

fharding1 avatar fharding1 commented on August 28, 2024

Because of:

Note that this resource attempts to be an authoritative source over group members.

Do you think it makes sense to just not allow a default group to be used alongside keycloak_group_memberships? Is that even doable?

from terraform-provider-keycloak.

fharding1 avatar fharding1 commented on August 28, 2024

So I'm actually thinking it might make sense to have one keycloak_default_groups resource per realm which looks like this:

resource "keycloak_default_group" "example_group" {
  realm_id = "${keycloak_realm.realm.id}"
  group_ids = ["${keycloak_group.example_group.id}", "${keycloak_group.example_group_2.id}"]
}

This would be similar to how the keycloak_group_memberships resource works. It makes PUT/DELETE a bit weirder, but the GET endpoint makes a lot more sense.

from terraform-provider-keycloak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.