Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tf/modules/keycloak/roles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "keycloak_role" "demo_role" {
for_each = local.roles
realm_id = keycloak_realm.rode_demo.id
client_id = keycloak_openid_client.rode.id
name = each.key
name = replace(each.key, " ", "")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably just modify the local.roles variable instead of doing this, since it would reflect the actual strings that rode is expecting

Copy link
Copy Markdown
Contributor Author

@alexashley alexashley Jul 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left the local variable as-is since it's also used to create users and groups. We could keep have the user accounts all named after the role (PolicyAdministrator), but right now they're lower-case and hyphenated: policy-administrator.

I could go either way, but that's why I just changed the name in the role.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, it's probably fine then

}

resource "keycloak_group" "demo_group" {
Expand Down