fix: grant kc-admin-api to admin oidc clients #578

Merged
anish merged 1 commit from fix/kc-admin-api into main 2026-11-09 04:19:39 +00:00
Owner
No description provided.
fix: grant kc-admin-api to admin oidc clients
Some checks failed
CI / checks-1 (pull_request) Successful in 38s
CI / checks (pull_request) Successful in 0s
Validate / Governance (pull_request_target) Successful in 51s
atlantis/plan: keycloak Plan: 1 to add, 0 to change, 0 to destroy.
atlantis/plan 1/1 projects planned successfully.
atlantis/policy_check 0/0 projects had policies checked successfully.
atlantis/apply: keycloak Apply succeeded.
atlantis/apply 1/1 projects applied successfully.
CI / checks-1 (push) Failing after 21s
CI / checks (push) Failing after 0s
Reconcile PostHog Invites / Reconcile PostHog invites (push) Successful in 29s
nixbot/nix-build gitea:ScottyLabs/governance#checks.x86_64-linux.mutants failed
nixbot/nix-eval evaluation succeeded
nixbot/nix-build build failed
c8f3781004
Signed-off-by: Anish Pallati <i@anish.land>
Owner

Ran Plan for dir: generated/tofu/keycloak workspace: default

Plan Failed: This project is currently locked by an unapplied plan from pull #571. To continue, delete the lock from #571 or apply that plan and merge the pull request.

Once the lock is released, comment atlantis plan here to re-plan.

Ran Plan for dir: `generated/tofu/keycloak` workspace: `default` **Plan Failed**: This project is currently locked by an unapplied plan from pull #571. To continue, delete the lock from #571 or apply that plan and merge the pull request. Once the lock is released, comment `atlantis plan` here to re-plan.
Author
Owner

atlantis plan

atlantis plan
Owner

Ran Plan for project: keycloak dir: generated/tofu/keycloak workspace: default

Show Output
Compiling proc-macro2 v1.0.106
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.45
   Compiling cfg-if v1.0.4
   Compiling libc v0.2.183
   Compiling shlex v1.3.0
   Compiling find-msvc-tools v0.1.9
   Compiling serde_core v1.0.228
   Compiling cc v1.2.57
   Compiling zmij v1.0.21
   Compiling rustversion v1.0.23
   Compiling syn v2.0.117
   Compiling ring v0.17.14
   Compiling itoa v1.0.18
   Compiling serde_json v1.0.149
   Compiling scopeguard v1.2.0
   Compiling serde v1.0.228
   Compiling anstyle v1.0.14
   Compiling zeroize v1.8.2
   Compiling encoding_rs v0.8.42
   Compiling rustls-pki-types v1.14.0
   Compiling getrandom v0.2.17
   Compiling serde_derive v1.0.228
   Compiling untrusted v0.9.0
   Compiling memchr v2.8.0
   Compiling httparse v1.10.1
   Compiling autocfg v1.5.1
   Compiling crc32fast v1.5.0
   Compiling ref-cast v1.0.25
   Compiling smallvec v1.15.1
   Compiling num-traits v0.2.19
   Compiling ref-cast-impl v1.0.25
   Compiling serde_derive_internals v0.29.1
   Compiling multiversion_no_op v1.0.0
   Compiling base64 v0.22.1
   Compiling rustls v0.23.46
   Compiling log v0.4.29
   Compiling parking_lot_core v0.9.12
   Compiling simd-adler32 v0.3.8
   Compiling core_detect v1.0.0
   Compiling simdutf8 v0.1.5
   Compiling adler2 v2.0.1
   Compiling bytes v1.11.1
   Compiling miniz_oxide v0.8.9
   Compiling http v1.4.0
   Compiling schemars_derive v1.2.1
   Compiling rustls-webpki v0.103.16
   Compiling dyn-clone v1.0.20
   Compiling once_cell v1.21.4
   Compiling unicode-width v0.2.2
   Compiling arraydeque v0.5.1
   Compiling thiserror v2.0.18
   Compiling subtle v2.6.1
   Compiling utf8parse v0.2.2
   Compiling anstyle-parse v1.0.0
   Compiling annotate-snippets v0.12.17
   Compiling granit-parser v2.0.0
   Compiling schemars v1.2.1
   Compiling flate2 v1.1.9
   Compiling ureq-proto v0.6.0
   Compiling encoding_rs_io v0.1.8
   Compiling thiserror-impl v2.0.18
   Compiling webpki-roots v1.0.11
   Compiling lock_api v0.4.14
   Compiling nohash-hasher v0.2.0
   Compiling utf8-zero v0.8.1
   Compiling colorchoice v1.0.5
   Compiling percent-encoding v2.3.2
   Compiling anstyle-query v1.1.5
   Compiling is_terminal_polyfill v1.70.2
   Compiling parking_lot v0.12.5
   Compiling ureq v3.3.0
   Compiling anstream v1.0.0
   Compiling serde-saphyr v2.0.0
   Compiling governance-schema v0.1.0 (/var/lib/atlantis/repos/ScottyLabs/governance/578/default/crates/governance-schema)
   Compiling anyhow v1.0.104
   Compiling strsim v0.11.1
   Compiling clap_lex v1.1.0
   Compiling heck v0.5.0
   Compiling clap_builder v4.6.0
   Compiling governance-core v0.1.0 (/var/lib/atlantis/repos/ScottyLabs/governance/578/default/crates/governance-core)
   Compiling clap_derive v4.6.0
   Compiling dotenvy v0.15.7
   Compiling governance-tfgen v0.1.0 (/var/lib/atlantis/repos/ScottyLabs/governance/578/default/crates/governance-tfgen)
   Compiling clap v4.6.0
   Compiling governance v0.1.0 (/var/lib/atlantis/repos/ScottyLabs/governance/578/default/crates/governance-cli)
    Finished `release` profile [optimized] target(s) in 52.98s

data.external.identities: Still reading... [10s elapsed]
data.external.identities: Still reading... [20s elapsed]
data.external.identities: Still reading... [30s elapsed]
data.external.identities: Read complete after 35s [id=-]

OpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create

OpenTofu will perform the following actions:

  # keycloak_openid_client_default_scopes.discord_verify_admin will be created
+ resource "keycloak_openid_client_default_scopes" "discord_verify_admin" {
+       client_id      = "8d0cc68a-2db1-4469-be63-cec537aabe82"
+       default_scopes = [
+           "acr",
+           "basic",
+           "email",
+           "kc-admin-api",
+           "profile",
+           "roles",
+           "service_account",
+           "web-origins",
        ]
+       id             = (known after apply)
+       realm_id       = "scottylabs"
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    atlantis apply -p keycloak
    
  • 🚮 To delete this plan and lock, click here
  • 🔁 To plan this project again, comment:
    atlantis plan -p keycloak
    

Plan: 1 to add, 0 to change, 0 to destroy.


  • ⏩ To apply all unapplied plans from this Pull Request, comment:
    atlantis apply
    
  • 🚮 To delete all plans and locks from this Pull Request, comment:
    atlantis unlock
    
Ran Plan for project: `keycloak` dir: `generated/tofu/keycloak` workspace: `default` <details><summary>Show Output</summary> ```diff Compiling proc-macro2 v1.0.106 Compiling unicode-ident v1.0.24 Compiling quote v1.0.45 Compiling cfg-if v1.0.4 Compiling libc v0.2.183 Compiling shlex v1.3.0 Compiling find-msvc-tools v0.1.9 Compiling serde_core v1.0.228 Compiling cc v1.2.57 Compiling zmij v1.0.21 Compiling rustversion v1.0.23 Compiling syn v2.0.117 Compiling ring v0.17.14 Compiling itoa v1.0.18 Compiling serde_json v1.0.149 Compiling scopeguard v1.2.0 Compiling serde v1.0.228 Compiling anstyle v1.0.14 Compiling zeroize v1.8.2 Compiling encoding_rs v0.8.42 Compiling rustls-pki-types v1.14.0 Compiling getrandom v0.2.17 Compiling serde_derive v1.0.228 Compiling untrusted v0.9.0 Compiling memchr v2.8.0 Compiling httparse v1.10.1 Compiling autocfg v1.5.1 Compiling crc32fast v1.5.0 Compiling ref-cast v1.0.25 Compiling smallvec v1.15.1 Compiling num-traits v0.2.19 Compiling ref-cast-impl v1.0.25 Compiling serde_derive_internals v0.29.1 Compiling multiversion_no_op v1.0.0 Compiling base64 v0.22.1 Compiling rustls v0.23.46 Compiling log v0.4.29 Compiling parking_lot_core v0.9.12 Compiling simd-adler32 v0.3.8 Compiling core_detect v1.0.0 Compiling simdutf8 v0.1.5 Compiling adler2 v2.0.1 Compiling bytes v1.11.1 Compiling miniz_oxide v0.8.9 Compiling http v1.4.0 Compiling schemars_derive v1.2.1 Compiling rustls-webpki v0.103.16 Compiling dyn-clone v1.0.20 Compiling once_cell v1.21.4 Compiling unicode-width v0.2.2 Compiling arraydeque v0.5.1 Compiling thiserror v2.0.18 Compiling subtle v2.6.1 Compiling utf8parse v0.2.2 Compiling anstyle-parse v1.0.0 Compiling annotate-snippets v0.12.17 Compiling granit-parser v2.0.0 Compiling schemars v1.2.1 Compiling flate2 v1.1.9 Compiling ureq-proto v0.6.0 Compiling encoding_rs_io v0.1.8 Compiling thiserror-impl v2.0.18 Compiling webpki-roots v1.0.11 Compiling lock_api v0.4.14 Compiling nohash-hasher v0.2.0 Compiling utf8-zero v0.8.1 Compiling colorchoice v1.0.5 Compiling percent-encoding v2.3.2 Compiling anstyle-query v1.1.5 Compiling is_terminal_polyfill v1.70.2 Compiling parking_lot v0.12.5 Compiling ureq v3.3.0 Compiling anstream v1.0.0 Compiling serde-saphyr v2.0.0 Compiling governance-schema v0.1.0 (/var/lib/atlantis/repos/ScottyLabs/governance/578/default/crates/governance-schema) Compiling anyhow v1.0.104 Compiling strsim v0.11.1 Compiling clap_lex v1.1.0 Compiling heck v0.5.0 Compiling clap_builder v4.6.0 Compiling governance-core v0.1.0 (/var/lib/atlantis/repos/ScottyLabs/governance/578/default/crates/governance-core) Compiling clap_derive v4.6.0 Compiling dotenvy v0.15.7 Compiling governance-tfgen v0.1.0 (/var/lib/atlantis/repos/ScottyLabs/governance/578/default/crates/governance-tfgen) Compiling clap v4.6.0 Compiling governance v0.1.0 (/var/lib/atlantis/repos/ScottyLabs/governance/578/default/crates/governance-cli) Finished `release` profile [optimized] target(s) in 52.98s data.external.identities: Still reading... [10s elapsed] data.external.identities: Still reading... [20s elapsed] data.external.identities: Still reading... [30s elapsed] data.external.identities: Read complete after 35s [id=-] OpenTofu used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create OpenTofu will perform the following actions: # keycloak_openid_client_default_scopes.discord_verify_admin will be created + resource "keycloak_openid_client_default_scopes" "discord_verify_admin" { + client_id = "8d0cc68a-2db1-4469-be63-cec537aabe82" + default_scopes = [ + "acr", + "basic", + "email", + "kc-admin-api", + "profile", + "roles", + "service_account", + "web-origins", ] + id = (known after apply) + realm_id = "scottylabs" } Plan: 1 to add, 0 to change, 0 to destroy. ``` </details> * :arrow_forward: To **apply** this plan, comment: ```shell atlantis apply -p keycloak ``` * :put_litter_in_its_place: To **delete** this plan and lock, click [here](https://atlantis.scottylabs.org/lock?id=ScottyLabs%252Fgovernance%252Fgenerated%252Ftofu%252Fkeycloak%252Fdefault%252Fkeycloak) * :repeat: To **plan** this project again, comment: ```shell atlantis plan -p keycloak ``` Plan: 1 to add, 0 to change, 0 to destroy. --- * :fast_forward: To **apply** all unapplied plans from this Pull Request, comment: ```shell atlantis apply ``` * :put_litter_in_its_place: To **delete** all plans and locks from this Pull Request, comment: ```shell atlantis unlock ```
Author
Owner

atlantis apply

atlantis apply
Owner

Ran Apply for project: keycloak dir: generated/tofu/keycloak workspace: default

Show Output
Finished `release` profile [optimized] target(s) in 0.05s

╷
│ Warning: Provider development overrides are in effect
│ 
│ The following provider development overrides are set in the CLI
│ configuration:
│  - svalabs/forgejo in /nix/store/wzahshq5w1wc53zq7hd9ppilgl1mh4w0-terraform-provider-forgejo-1.7.0-team-repository-and-topics
│ 
│ The behavior may therefore not match any released version of the provider
│ and applying changes may cause the state to become incompatible with
│ published releases.
╵
keycloak_openid_client_default_scopes.discord_verify_admin: Creating...
keycloak_openid_client_default_scopes.discord_verify_admin: Creation complete after 0s [id=scottylabs/8d0cc68a-2db1-4469-be63-cec537aabe82]

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Ran Apply for project: `keycloak` dir: `generated/tofu/keycloak` workspace: `default` <details><summary>Show Output</summary> ```diff Finished `release` profile [optimized] target(s) in 0.05s ╷ │ Warning: Provider development overrides are in effect │ │ The following provider development overrides are set in the CLI │ configuration: │ - svalabs/forgejo in /nix/store/wzahshq5w1wc53zq7hd9ppilgl1mh4w0-terraform-provider-forgejo-1.7.0-team-repository-and-topics │ │ The behavior may therefore not match any released version of the provider │ and applying changes may cause the state to become incompatible with │ published releases. ╵ keycloak_openid_client_default_scopes.discord_verify_admin: Creating... keycloak_openid_client_default_scopes.discord_verify_admin: Creation complete after 0s [id=scottylabs/8d0cc68a-2db1-4469-be63-cec537aabe82] Apply complete! Resources: 1 added, 0 changed, 0 destroyed. ``` </details>
anish merged commit c8f3781004 into main 2026-11-09 04:19:39 +00:00
anish deleted branch fix/kc-admin-api 2026-11-09 04:19:40 +00:00
Owner

Locks and plans deleted for the projects and workspaces modified in this pull request:

  • dir: generated/tofu/keycloak workspace: default
Locks and plans deleted for the projects and workspaces modified in this pull request: - dir: `generated/tofu/keycloak` workspace: `default`
Sign in to join this conversation.
No description provided.