crossplane-contrib / provider-keycloak

Apache License 2.0
21 stars 11 forks source link

added managementPolicies and fine-grained-authz resources #69

Closed zonybob closed 7 months ago

zonybob commented 7 months ago

added resource keycloak_openid_client_client_policy added resource keycloak_openid_client_group_policy added resource keycloak_openid_client_role_policy added resource keycloak_openid_client_user_policy added resource keycloak_openid_client_permissions added resource keycloak_group_permissions added resource keycloak_users_permissions

Description of your changes

Fixes #67 Fixes #68

I have:

How has this code been tested

This code was tested by creating and configuring instances of the following resources against a Keycloak 23.0.7 server with fine-grained-authz enabled:

Furthermore a Role was created with managementPolicies: ["Observe"] and was imported and deleted successfully (without disturbing the role in keycloak).

NOTE: There are some cross-resource resolution/ref errors as the import ID format differs from the natural/ref ID format.

zonybob commented 7 months ago

Actually having some issues with make reviewable test ...

panic: load embedded ruleguard rules: rules/rules.go:13: can't load fmt

goroutine 1 [running]:
github.com/go-critic/go-critic/checkers.init.22()
    github.com/go-critic/go-critic@v0.6.3/checkers/embedded_rules.go:47 +0x494
16:30:50 [FAIL]
make[2]: *** [go.lint] Error 1
make[1]: *** [lint] Error 2
make: *** [reviewable] Error 2

Will try to get it working...