{"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-06-11T20:32:22Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-06-11T20:32:22Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b"],"numHostsReady":"1/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"error","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"failed to update the resource","authconfig":{"name":"a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","namespace":"kuadrant-system"},"error":"Operation cannot be fulfilled on authconfigs.authorino.kuadrant.io \"a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b\": the object has been modified; please apply your changes to the latest version and try again","stacktrace":"github.com/kuadrant/authorino/controllers.(*AuthConfigStatusUpdater).updateAuthConfigStatus\n\t/usr/src/authorino/controllers/auth_config_status_updater.go:162\ngithub.com/kuadrant/authorino/controllers.(*AuthConfigStatusUpdater).Reconcile\n\t/usr/src/authorino/controllers/auth_config_status_updater.go:81\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"False","lastTransitionTime":"2026-06-11T20:32:22Z","reason":"HostsNotLinked","message":"No hosts linked to the resource"},{"type":"Ready","status":"False","lastTransitionTime":"2026-06-11T20:32:22Z","reason":"Reconciling"}],"summary":{"ready":false,"hostsReady":[],"numHostsReady":"0/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-06-11T20:32:22Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-06-11T20:32:22Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a"],"numHostsReady":"1/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"cc09b530b46a73b0d4ddb40e465580cff15db19d77e93e4903c9737647deeb1a","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"5fea747cb803a5ee3aeb620187bd9ec74ccccd10a92474ef528215a7ff146c8f","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/cc09b530b46a73b0d4ddb40e465580cff15db19d77e93e4903c9737647deeb1a","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-06-11T20:32:22Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-06-11T20:32:22Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b"],"numHostsReady":"1/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/cc09b530b46a73b0d4ddb40e465580cff15db19d77e93e4903c9737647deeb1a"} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/5fea747cb803a5ee3aeb620187bd9ec74ccccd10a92474ef528215a7ff146c8f","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/5fea747cb803a5ee3aeb620187bd9ec74ccccd10a92474ef528215a7ff146c8f"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"319a353672fc7601c875fa3f8b807adf60b64f093f022b2a1c3dfef3ac8cd4f4","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/319a353672fc7601c875fa3f8b807adf60b64f093f022b2a1c3dfef3ac8cd4f4","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/319a353672fc7601c875fa3f8b807adf60b64f093f022b2a1c3dfef3ac8cd4f4"} {"level":"debug","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:22Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"False","lastTransitionTime":"2026-06-11T20:32:23Z","reason":"HostsNotLinked","message":"No hosts linked to the resource"},{"type":"Ready","status":"False","lastTransitionTime":"2026-06-11T20:32:23Z","reason":"Reconciling"}],"summary":{"ready":false,"hostsReady":[],"numHostsReady":"0/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"9903213c635804dd416e9f12956f0fa896195627091daaf593a30df64cf640c5","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-06-11T20:32:23Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-06-11T20:32:23Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be"],"numHostsReady":"1/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/9903213c635804dd416e9f12956f0fa896195627091daaf593a30df64cf640c5","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/9903213c635804dd416e9f12956f0fa896195627091daaf593a30df64cf640c5"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"311b1be286674fd5684c9ac59b318287dade9769cfe4aeebd8c88e2dc6b72418","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"df733b2c652bfe2458c9e19932b1091e939c1a62178d6879462b3b4f73fca4bb","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/311b1be286674fd5684c9ac59b318287dade9769cfe4aeebd8c88e2dc6b72418","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"e50f5fdcb9fb7e124557afe69edae9a95d05da488eae1cc4b5c1c7c1220a826a","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/311b1be286674fd5684c9ac59b318287dade9769cfe4aeebd8c88e2dc6b72418"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"80f10756c0e833d16937036ed66f1daf5bef95559ef05a5e852766b97b9bdaef","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/df733b2c652bfe2458c9e19932b1091e939c1a62178d6879462b3b4f73fca4bb","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"bf72a6316f6ed79299511e58d068836cdc71dbca5e23944f783c9340ffa0aee1","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/df733b2c652bfe2458c9e19932b1091e939c1a62178d6879462b3b4f73fca4bb"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/e50f5fdcb9fb7e124557afe69edae9a95d05da488eae1cc4b5c1c7c1220a826a","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"b1f82c4ba6cc7617f9c0b90067f72f4a25fdc5de2564c14ccb90af534a2905f6","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/e50f5fdcb9fb7e124557afe69edae9a95d05da488eae1cc4b5c1c7c1220a826a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/80f10756c0e833d16937036ed66f1daf5bef95559ef05a5e852766b97b9bdaef","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"3c0d47082320c9bb02d3788ab2b052c696af91abc2ae438437ae71a26936c7c2","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/80f10756c0e833d16937036ed66f1daf5bef95559ef05a5e852766b97b9bdaef"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/bf72a6316f6ed79299511e58d068836cdc71dbca5e23944f783c9340ffa0aee1","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"d3b195a61a7f24c6bf1fba40f9f2e2565facb6af92e959c1546ac398a9172618","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/bf72a6316f6ed79299511e58d068836cdc71dbca5e23944f783c9340ffa0aee1"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/b1f82c4ba6cc7617f9c0b90067f72f4a25fdc5de2564c14ccb90af534a2905f6","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"c9f2cdb36f800bc8ef8831e6117ec4c6cc521d8cd63b718b7906225d0f25e59f","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/b1f82c4ba6cc7617f9c0b90067f72f4a25fdc5de2564c14ccb90af534a2905f6"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/3c0d47082320c9bb02d3788ab2b052c696af91abc2ae438437ae71a26936c7c2","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/3c0d47082320c9bb02d3788ab2b052c696af91abc2ae438437ae71a26936c7c2"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"edcceb5a2e0cf1edde0fc3ed43068ce5b123a6fdc41949959c2c3b7a5a48bf24","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/d3b195a61a7f24c6bf1fba40f9f2e2565facb6af92e959c1546ac398a9172618","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/d3b195a61a7f24c6bf1fba40f9f2e2565facb6af92e959c1546ac398a9172618"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"7371c34ce8e4df2309ee8f952c87f921947b289427b6e9ea579dcb9970fc1b86","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/c9f2cdb36f800bc8ef8831e6117ec4c6cc521d8cd63b718b7906225d0f25e59f","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"3dc75fc8307b952a3e873400cf417e90f2861e8a225abec4b22708deb7901db7","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/c9f2cdb36f800bc8ef8831e6117ec4c6cc521d8cd63b718b7906225d0f25e59f"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/edcceb5a2e0cf1edde0fc3ed43068ce5b123a6fdc41949959c2c3b7a5a48bf24","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/edcceb5a2e0cf1edde0fc3ed43068ce5b123a6fdc41949959c2c3b7a5a48bf24"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/7371c34ce8e4df2309ee8f952c87f921947b289427b6e9ea579dcb9970fc1b86","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"18e32965997cdd9967355c6fa5264ed12c0a215989d459ed88d7d6de02865f76","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/7371c34ce8e4df2309ee8f952c87f921947b289427b6e9ea579dcb9970fc1b86"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"01918e70442d2cb18c94316131b0e0a241b4a5d12df5b1e1981a3bef420bbdb5","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/3dc75fc8307b952a3e873400cf417e90f2861e8a225abec4b22708deb7901db7","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/3dc75fc8307b952a3e873400cf417e90f2861e8a225abec4b22708deb7901db7"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/18e32965997cdd9967355c6fa5264ed12c0a215989d459ed88d7d6de02865f76","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/18e32965997cdd9967355c6fa5264ed12c0a215989d459ed88d7d6de02865f76"} {"level":"debug","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/01918e70442d2cb18c94316131b0e0a241b4a5d12df5b1e1981a3bef420bbdb5","issuerUrl":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/01918e70442d2cb18c94316131b0e0a241b4a5d12df5b1e1981a3bef420bbdb5"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/2200947db0f3acc41dd3fca21efa06f90c57afddd36d719bdda2dc74a0bd0a11"} {"level":"info","ts":"2026-06-11T20:32:23Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/3efb8e937aa19b5e0bdd0c3eb5b4ece33299385dcfc89205b8934853facbdcf0"} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"897e9412-8565-477c-abed-f1c3b440f579","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:56978","PortSpecifier":{"PortValue":56978}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"897e9412-8565-477c-abed-f1c3b440f579","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"897e9412-8565-477c-abed-f1c3b440f579","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:56978","PortSpecifier":{"PortValue":56978}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209969,"nanos":226987633},"http":{"id":"897e9412-8565-477c-abed-f1c3b440f579","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"897e9412-8565-477c-abed-f1c3b440f579","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210269,"groups":["Engineering","Project-Alpha"],"iat":1781209969,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:76ab4b56-1453-b140-96c5-a2bf9d88495b","preferred_username":"alice_lead","scope":"profile email","sid":"Akh6tBjQGk4OU_SENs619AKe","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"897e9412-8565-477c-abed-f1c3b440f579","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210269,"groups":["Engineering","Project-Alpha"],"iat":1781209969,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:76ab4b56-1453-b140-96c5-a2bf9d88495b","preferred_username":"alice_lead","scope":"profile email","sid":"Akh6tBjQGk4OU_SENs619AKe","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"897e9412-8565-477c-abed-f1c3b440f579","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"897e9412-8565-477c-abed-f1c3b440f579","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"897e9412-8565-477c-abed-f1c3b440f579","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"897e9412-8565-477c-abed-f1c3b440f579","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"897e9412-8565-477c-abed-f1c3b440f579","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"897e9412-8565-477c-abed-f1c3b440f579","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"897e9412-8565-477c-abed-f1c3b440f579","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"897e9412-8565-477c-abed-f1c3b440f579","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"472a5cde-7b5d-4c4e-b371-791e79acd3e9","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:56986","PortSpecifier":{"PortValue":56986}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"472a5cde-7b5d-4c4e-b371-791e79acd3e9","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"472a5cde-7b5d-4c4e-b371-791e79acd3e9","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:56986","PortSpecifier":{"PortValue":56986}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209969,"nanos":352122379},"http":{"id":"472a5cde-7b5d-4c4e-b371-791e79acd3e9","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"472a5cde-7b5d-4c4e-b371-791e79acd3e9","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"reason":"failed to verify signature: failed to verify id token signature"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.identity.kubernetesauth","msg":"calling kubernetes token review api","request id":"472a5cde-7b5d-4c4e-b371-791e79acd3e9","tokenreview":{"name":""}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"472a5cde-7b5d-4c4e-b371-791e79acd3e9","config":{"Name":"openshift-identities","Priority":2,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":null,"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"Plain":null,"Noop":null,"ExtendedProperties":[]},"reason":"not authenticated"} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"472a5cde-7b5d-4c4e-b371-791e79acd3e9","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required"}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"472a5cde-7b5d-4c4e-b371-791e79acd3e9","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required","headers":[{"WWW-Authenticate":"request.headers.authorization realm=\"api-keys\""},{"WWW-Authenticate":"Bearer **** realm=\"openshift-identities\""}]}} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7bbd48d1-90cc-49c5-bda8-133cc5214474","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:56998","PortSpecifier":{"PortValue":56998}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"7bbd48d1-90cc-49c5-bda8-133cc5214474","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7bbd48d1-90cc-49c5-bda8-133cc5214474","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:56998","PortSpecifier":{"PortValue":56998}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209969,"nanos":393529311},"http":{"id":"7bbd48d1-90cc-49c5-bda8-133cc5214474","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer","content-length":"35","content-type":"application/json","forwarded":"for=44.212.242.249;host=maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com;proto=https","user-agent":"python-requests/2.32.5","x-envoy-decorator-operation":"maas-api.opendatahub.svc.cluster.local:8443/*","x-envoy-external-address":"10.132.0.13","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQAoETkFNRRI4GjZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC02ODdmZjY5OTYtY21xaGMKIAoJTkFNRVNQQUNFEhMaEW9wZW5zaGlmdC1pbmdyZXNzCnQKBU9XTkVSEmsaaWt1YmVybmV0ZXM6Ly9hcGlzL2FwcHMvdjEvbmFtZXNwYWNlcy9vcGVuc2hpZnQtaW5ncmVzcy9kZXBsb3ltZW50cy9tYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAo5Cg1XT1JLTE9BRF9OQU1FEigaJm1hYXMtZGVmYXVsdC1nYXRld2F5LW9wZW5zaGlmdC1kZWZhdWx0","x-envoy-peer-metadata-id":"router~10.132.0.46~maas-default-gateway-openshift-default-687ff6996-cmqhc.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"44.212.242.249,10.132.0.13","x-forwarded-host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","x-forwarded-port":"443","x-forwarded-proto":"https","x-request-id":"7bbd48d1-90cc-49c5-bda8-133cc5214474"},"path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https","protocol":"HTTP/1.1"}},"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"metadata_context":{}}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"7bbd48d1-90cc-49c5-bda8-133cc5214474","config":{"Name":"openshift-identities","Priority":2,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":null,"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"Plain":null,"Noop":null,"ExtendedProperties":[]},"reason":"credential not found"} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7bbd48d1-90cc-49c5-bda8-133cc5214474","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required"}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7bbd48d1-90cc-49c5-bda8-133cc5214474","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required","headers":[{"WWW-Authenticate":"request.headers.authorization realm=\"api-keys\""},{"WWW-Authenticate":"Bearer **** realm=\"openshift-identities\""}]}} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"f0037f56-b1a1-4a17-92ee-e74d526283a0","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57012","PortSpecifier":{"PortValue":57012}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"f0037f56-b1a1-4a17-92ee-e74d526283a0","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"f0037f56-b1a1-4a17-92ee-e74d526283a0","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57012","PortSpecifier":{"PortValue":57012}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209969,"nanos":424544383},"http":{"id":"f0037f56-b1a1-4a17-92ee-e74d526283a0","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","content-length":"36","content-type":"application/json","forwarded":"for=44.212.242.249;host=maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com;proto=https","user-agent":"python-requests/2.32.5","x-envoy-decorator-operation":"maas-api.opendatahub.svc.cluster.local:8443/*","x-envoy-external-address":"10.132.0.13","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQAoETkFNRRI4GjZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC02ODdmZjY5OTYtY21xaGMKIAoJTkFNRVNQQUNFEhMaEW9wZW5zaGlmdC1pbmdyZXNzCnQKBU9XTkVSEmsaaWt1YmVybmV0ZXM6Ly9hcGlzL2FwcHMvdjEvbmFtZXNwYWNlcy9vcGVuc2hpZnQtaW5ncmVzcy9kZXBsb3ltZW50cy9tYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAo5Cg1XT1JLTE9BRF9OQU1FEigaJm1hYXMtZGVmYXVsdC1nYXRld2F5LW9wZW5zaGlmdC1kZWZhdWx0","x-envoy-peer-metadata-id":"router~10.132.0.46~maas-default-gateway-openshift-default-687ff6996-cmqhc.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"44.212.242.249,10.132.0.13","x-forwarded-host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","x-forwarded-port":"443","x-forwarded-proto":"https","x-request-id":"f0037f56-b1a1-4a17-92ee-e74d526283a0"},"path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https","protocol":"HTTP/1.1"}},"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"metadata_context":{}}} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"f0037f56-b1a1-4a17-92ee-e74d526283a0","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required"}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"f0037f56-b1a1-4a17-92ee-e74d526283a0","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required","headers":[{"WWW-Authenticate":"request.headers.authorization realm=\"api-keys\""},{"WWW-Authenticate":"Bearer **** realm=\"openshift-identities\""}]}} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57014","PortSpecifier":{"PortValue":57014}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57014","PortSpecifier":{"PortValue":57014}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209969,"nanos":768884513},"http":{"id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210269,"groups":["Site-Reliability"],"iat":1781209969,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:009ab384-daf1-8f91-1005-ff3d0767dfe8","preferred_username":"bob_sre","scope":"profile email","sid":"7TokkYk_CfD4XgGW27bNnRh0","sub":"8fe3397e-06fd-443c-8670-8f2f91750f56","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210269,"groups":["Site-Reliability"],"iat":1781209969,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:009ab384-daf1-8f91-1005-ff3d0767dfe8","preferred_username":"bob_sre","scope":"profile email","sid":"7TokkYk_CfD4XgGW27bNnRh0","sub":"8fe3397e-06fd-443c-8670-8f2f91750f56","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"bob_sre"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Site-Reliability\"]"} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"de7b9050-c06e-45dd-9eb5-fba7cc285008","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57030","PortSpecifier":{"PortValue":57030}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"00242289-30c8-44a7-a40f-fef1e9ef915e","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57030","PortSpecifier":{"PortValue":57030}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209969,"nanos":987555354},"http":{"id":"00242289-30c8-44a7-a40f-fef1e9ef915e","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210269,"groups":["Engineering","Project-Alpha"],"iat":1781209969,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:a63dc109-9539-84ef-425b-48a82e5314b4","preferred_username":"alice_lead","scope":"profile email","sid":"bui5xINlJ8jDS_HwH5gEx1rr","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210269,"groups":["Engineering","Project-Alpha"],"iat":1781209969,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:a63dc109-9539-84ef-425b-48a82e5314b4","preferred_username":"alice_lead","scope":"profile email","sid":"bui5xINlJ8jDS_HwH5gEx1rr","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"info","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"00242289-30c8-44a7-a40f-fef1e9ef915e","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57040","PortSpecifier":{"PortValue":57040}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57040","PortSpecifier":{"PortValue":57040}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209970,"nanos":16477053},"http":{"id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","method":"GET","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-10SZULTLwx75VuO7s_L7ygk2MISKRGt42oSbuCVMMTduG6817zlDTaibay9cr"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-10SZULTLwx75VuO7s_L7ygk2MISKRGt42oSbuCVMMTduG6817zlDTaibay9cr\"}"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"5566376e-fad9-4f5c-82bd-a5767cd5d62f","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209970,"nanos":35915150},"http":{"id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","method":"GET","headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-10SZULTLwx75VuO7s_L7ygk2MISKRGt42oSbuCVMMTduG6817zlDTaibay9cr"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-10SZULTLwx75VuO7s_L7ygk2MISKRGt42oSbuCVMMTduG6817zlDTaibay9cr\"}"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":"subscription-info","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"],\"requestedModel\":\"llm/facebook-opt-125m-simulated\",\"requestedSubscription\":\"simulator-subscription\",\"username\":\"alice_lead\"}"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"subscription-info","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","input":{"auth":{"identity":"Bearer **** subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}}},"context":{"context_extensions":{"host":"3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** sk-oai-10SZULTLwx75VuO7s_L7ygk2MISKRGt42oSbuCVMMTduG6817zlDTaibay9cr","user-agent":"Go-http-client/1.1","x-envoy-decorator-operation":"facebook-opt-125m-simulated-kserve-workload-svc.llm.svc.cluster.local:8000/*","x-envoy-external-address":"10.133.0.38","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQAoETkFNRRI4GjZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC02ODdmZjY5OTYtY21xaGMKIAoJTkFNRVNQQUNFEhMaEW9wZW5zaGlmdC1pbmdyZXNzCnQKBU9XTkVSEmsaaWt1YmVybmV0ZXM6Ly9hcGlzL2FwcHMvdjEvbmFtZXNwYWNlcy9vcGVuc2hpZnQtaW5ncmVzcy9kZXBsb3ltZW50cy9tYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAo5Cg1XT1JLTE9BRF9OQU1FEigaJm1hYXMtZGVmYXVsdC1nYXRld2F5LW9wZW5zaGlmdC1kZWZhdWx0","x-envoy-peer-metadata-id":"router~10.132.0.46~maas-default-gateway-openshift-default-687ff6996-cmqhc.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.38","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":35915150,"seconds":1781209970},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.38:41602","port":41602}}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"subscription-valid","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"name\", \"\") != \"\"\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"error\", \"\") == \"\"\n\tphase := object.get(input.auth.metadata[\"subscription-info\"], \"phase\", \"\")\n\tany([phase == \"Active\", phase == \"Degraded\"])\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"deletionTimestamp\", \"\") == \"\"\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"groups","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"4fe4c183-8424-4b27-ac63-4475566b1d56","selected_subscription":"simulator-subscription","selected_subscription_key":"models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated","subscription_error":"","subscription_error_message":"","subscription_info":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true},"userid":"alice_lead"}} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"eb1cd833-ee45-4ed3-b5ad-3eff6e62d925","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57052","PortSpecifier":{"PortValue":57052}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","method":"POST","path":"/llm/facebook-opt-125m-simulated/v1/chat/completions","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57052","PortSpecifier":{"PortValue":57052}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209970,"nanos":67521510},"http":{"id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/llm/facebook-opt-125m-simulated/v1/chat/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-10SZULTLwx75VuO7s_L7ygk2MISKRGt42oSbuCVMMTduG6817zlDTaibay9cr"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-10SZULTLwx75VuO7s_L7ygk2MISKRGt42oSbuCVMMTduG6817zlDTaibay9cr\"}"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":"subscription-info","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"],\"requestedModel\":\"llm/facebook-opt-125m-simulated\",\"requestedSubscription\":\"simulator-subscription\",\"username\":\"alice_lead\"}"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"subscription-info","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","input":{"auth":{"identity":"Bearer **** subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}}},"context":{"context_extensions":{"host":"18e32965997cdd9967355c6fa5264ed12c0a215989d459ed88d7d6de02865f76"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/llm/facebook-opt-125m-simulated/v1/chat/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"subscription-valid","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"name\", \"\") != \"\"\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"error\", \"\") == \"\"\n\tphase := object.get(input.auth.metadata[\"subscription-info\"], \"phase\", \"\")\n\tany([phase == \"Active\", phase == \"Degraded\"])\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"deletionTimestamp\", \"\") == \"\"\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error_message","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"4fe4c183-8424-4b27-ac63-4475566b1d56","selected_subscription":"simulator-subscription","selected_subscription_key":"models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated","subscription_error":"","subscription_error_message":"","subscription_info":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true},"userid":"alice_lead"}} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"5351446f-7ec2-4d8f-a9fa-c784ab7891b3","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57062","PortSpecifier":{"PortValue":57062}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"8d1c1a4a-5d95-4cae-b987-829705810241","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57062","PortSpecifier":{"PortValue":57062}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209970,"nanos":178373928},"http":{"id":"8d1c1a4a-5d95-4cae-b987-829705810241","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210270,"groups":["Engineering","Project-Alpha"],"iat":1781209970,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:bd3245bc-7667-6ea6-427f-2184fe9e36c9","preferred_username":"alice_lead","scope":"profile email","sid":"H2aWaikSdywRC-8sR45Vkf88","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210270,"groups":["Engineering","Project-Alpha"],"iat":1781209970,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:bd3245bc-7667-6ea6-427f-2184fe9e36c9","preferred_username":"alice_lead","scope":"profile email","sid":"H2aWaikSdywRC-8sR45Vkf88","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"8d1c1a4a-5d95-4cae-b987-829705810241","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57074","PortSpecifier":{"PortValue":57074}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"91727bbf-a681-4c23-9a3c-e9aca8813203","method":"DELETE","path":"/maas-api/v1/api-keys/de1984fc-1e74-477c-b12f-7a5f2d2e87dc","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57074","PortSpecifier":{"PortValue":57074}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209970,"nanos":210105085},"http":{"id":"91727bbf-a681-4c23-9a3c-e9aca8813203","method":"DELETE","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/de1984fc-1e74-477c-b12f-7a5f2d2e87dc",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210270,"groups":["Engineering","Project-Alpha"],"iat":1781209970,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:bd3245bc-7667-6ea6-427f-2184fe9e36c9","preferred_username":"alice_lead","scope":"profile email","sid":"H2aWaikSdywRC-8sR45Vkf88","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210270,"groups":["Engineering","Project-Alpha"],"iat":1781209970,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:bd3245bc-7667-6ea6-427f-2184fe9e36c9","preferred_username":"alice_lead","scope":"profile email","sid":"H2aWaikSdywRC-8sR45Vkf88","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/de1984fc-1e74-477c-b12f-7a5f2d2e87dc",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"info","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:50Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"91727bbf-a681-4c23-9a3c-e9aca8813203","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57086","PortSpecifier":{"PortValue":57086}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57086","PortSpecifier":{"PortValue":57086}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":242327660},"http":{"id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","method":"GET","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1DqDACJUnR9t2Silu_LMXqNtKlkqqndqsVJWg8IX2X8zrTfOtAARsFnvk6B5O"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-1DqDACJUnR9t2Silu_LMXqNtKlkqqndqsVJWg8IX2X8zrTfOtAARsFnvk6B5O\"}"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** revoked or expired","valid":false}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","input":{"auth":{"identity":"Bearer **** revoked or expired","valid":false}}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access denied","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"reason":"Unauthorized"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","authorized":false,"response":"PERMISSION_DENIED","object":{"code":7,"status":403,"message":"Unauthorized"}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"4211e3ca-352c-4a2b-b20c-acccf99b5a5e","authorized":false,"response":"PERMISSION_DENIED","object":{"code":7,"status":403,"message":"Unauthorized","headers":[{"content-type":"text/plain"},{"x-ext-auth-reason":""}]}} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"9af356ba-974e-4a99-8bc0-d160f3656e90","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57102","PortSpecifier":{"PortValue":57102}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"9af356ba-974e-4a99-8bc0-d160f3656e90","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"9af356ba-974e-4a99-8bc0-d160f3656e90","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57102","PortSpecifier":{"PortValue":57102}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":363011398},"http":{"id":"9af356ba-974e-4a99-8bc0-d160f3656e90","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"9af356ba-974e-4a99-8bc0-d160f3656e90","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"reason":"failed to verify signature: failed to verify id token signature"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity.kubernetesauth","msg":"calling kubernetes token review api","request id":"9af356ba-974e-4a99-8bc0-d160f3656e90","tokenreview":{"name":""}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"9af356ba-974e-4a99-8bc0-d160f3656e90","config":{"Name":"openshift-identities","Priority":2,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":null,"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"Plain":null,"Noop":null,"ExtendedProperties":[]},"reason":"not authenticated"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"9af356ba-974e-4a99-8bc0-d160f3656e90","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required"}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"9af356ba-974e-4a99-8bc0-d160f3656e90","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required","headers":[{"WWW-Authenticate":"request.headers.authorization realm=\"api-keys\""},{"WWW-Authenticate":"Bearer **** realm=\"openshift-identities\""}]}} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57118","PortSpecifier":{"PortValue":57118}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"e4a11e16-542d-4325-9a54-3ba64bf07974","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57118","PortSpecifier":{"PortValue":57118}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":521284284},"http":{"id":"e4a11e16-542d-4325-9a54-3ba64bf07974","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1242c1f3-010c-d7a8-a8f1-67ed68fe7602","preferred_username":"alice_lead","scope":"profile email","sid":"4E03xpJTv3qt8EtE3fhpzTFJ","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1242c1f3-010c-d7a8-a8f1-67ed68fe7602","preferred_username":"alice_lead","scope":"profile email","sid":"4E03xpJTv3qt8EtE3fhpzTFJ","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"e4a11e16-542d-4325-9a54-3ba64bf07974","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57120","PortSpecifier":{"PortValue":57120}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57120","PortSpecifier":{"PortValue":57120}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":549664739},"http":{"id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Site-Reliability"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:9dbd9052-c09e-744c-b67d-1c4d20308f49","preferred_username":"bob_sre","scope":"profile email","sid":"ZI9pCJlK2xMSmUjc0vaHpiDU","sub":"8fe3397e-06fd-443c-8670-8f2f91750f56","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Site-Reliability"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:9dbd9052-c09e-744c-b67d-1c4d20308f49","preferred_username":"bob_sre","scope":"profile email","sid":"ZI9pCJlK2xMSmUjc0vaHpiDU","sub":"8fe3397e-06fd-443c-8670-8f2f91750f56","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Site-Reliability\"]"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"bob_sre"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"dde8b3ec-ada4-48aa-b1c0-4ab75a5489a0","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57126","PortSpecifier":{"PortValue":57126}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57126","PortSpecifier":{"PortValue":57126}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":641789070},"http":{"id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1cd6a4d2-7cc2-783c-ce5a-5d3c75a52260","preferred_username":"alice_lead","scope":"profile email","sid":"fu4weVEZtYQeuzp1sduvm98T","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1cd6a4d2-7cc2-783c-ce5a-5d3c75a52260","preferred_username":"alice_lead","scope":"profile email","sid":"fu4weVEZtYQeuzp1sduvm98T","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"1dcdf6d5-e5ac-484e-b69e-e56c151f2a8d","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57142","PortSpecifier":{"PortValue":57142}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","method":"DELETE","path":"/maas-api/v1/api-keys/49bacd92-f7e0-4f11-aa99-bf185e7ad053","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57142","PortSpecifier":{"PortValue":57142}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":671292363},"http":{"id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","method":"DELETE","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/49bacd92-f7e0-4f11-aa99-bf185e7ad053",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1cd6a4d2-7cc2-783c-ce5a-5d3c75a52260","preferred_username":"alice_lead","scope":"profile email","sid":"fu4weVEZtYQeuzp1sduvm98T","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1cd6a4d2-7cc2-783c-ce5a-5d3c75a52260","preferred_username":"alice_lead","scope":"profile email","sid":"fu4weVEZtYQeuzp1sduvm98T","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/49bacd92-f7e0-4f11-aa99-bf185e7ad053",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"375cc6c2-a62b-46b7-babf-6c8e43a849b5","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57152","PortSpecifier":{"PortValue":57152}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"ac4cdc1c-1893-4190-9815-813afe147bd4","method":"DELETE","path":"/maas-api/v1/api-keys/49bacd92-f7e0-4f11-aa99-bf185e7ad053","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57152","PortSpecifier":{"PortValue":57152}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":699787780},"http":{"id":"ac4cdc1c-1893-4190-9815-813afe147bd4","method":"DELETE","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/49bacd92-f7e0-4f11-aa99-bf185e7ad053",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1cd6a4d2-7cc2-783c-ce5a-5d3c75a52260","preferred_username":"alice_lead","scope":"profile email","sid":"fu4weVEZtYQeuzp1sduvm98T","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1cd6a4d2-7cc2-783c-ce5a-5d3c75a52260","preferred_username":"alice_lead","scope":"profile email","sid":"fu4weVEZtYQeuzp1sduvm98T","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/49bacd92-f7e0-4f11-aa99-bf185e7ad053",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"ac4cdc1c-1893-4190-9815-813afe147bd4","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57166","PortSpecifier":{"PortValue":57166}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57166","PortSpecifier":{"PortValue":57166}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":795112757},"http":{"id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:fe7be9cf-c10d-1c03-8b2b-2c0ae0003340","preferred_username":"alice_lead","scope":"profile email","sid":"vcjJ_chc1iPScfSSi8UjtiQw","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:fe7be9cf-c10d-1c03-8b2b-2c0ae0003340","preferred_username":"alice_lead","scope":"profile email","sid":"vcjJ_chc1iPScfSSi8UjtiQw","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"16c5f01d-7cb9-405d-9f07-a0053bc6626a","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57176","PortSpecifier":{"PortValue":57176}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57176","PortSpecifier":{"PortValue":57176}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":827414170},"http":{"id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","method":"GET","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-pzX2yCGU7fXVoubf_sV2f2oqDLzrAZp4KzFeDw8oyUquyQHqdDMSSh1jLgzE"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-pzX2yCGU7fXVoubf_sV2f2oqDLzrAZp4KzFeDw8oyUquyQHqdDMSSh1jLgzE\"}"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7c478fa3-89f6-41c1-87d2-775d644cd5f2","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":835876883},"http":{"id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","method":"GET","headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-pzX2yCGU7fXVoubf_sV2f2oqDLzrAZp4KzFeDw8oyUquyQHqdDMSSh1jLgzE"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-pzX2yCGU7fXVoubf_sV2f2oqDLzrAZp4KzFeDw8oyUquyQHqdDMSSh1jLgzE\"}"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":"subscription-info","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"],\"requestedModel\":\"llm/facebook-opt-125m-simulated\",\"requestedSubscription\":\"simulator-subscription\",\"username\":\"alice_lead\"}"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"subscription-info","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","input":{"auth":{"identity":"Bearer **** subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}}},"context":{"context_extensions":{"host":"3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** sk-oai-pzX2yCGU7fXVoubf_sV2f2oqDLzrAZp4KzFeDw8oyUquyQHqdDMSSh1jLgzE","user-agent":"Go-http-client/1.1","x-envoy-decorator-operation":"facebook-opt-125m-simulated-kserve-workload-svc.llm.svc.cluster.local:8000/*","x-envoy-external-address":"10.133.0.38","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQAoETkFNRRI4GjZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC02ODdmZjY5OTYtY21xaGMKIAoJTkFNRVNQQUNFEhMaEW9wZW5zaGlmdC1pbmdyZXNzCnQKBU9XTkVSEmsaaWt1YmVybmV0ZXM6Ly9hcGlzL2FwcHMvdjEvbmFtZXNwYWNlcy9vcGVuc2hpZnQtaW5ncmVzcy9kZXBsb3ltZW50cy9tYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAo5Cg1XT1JLTE9BRF9OQU1FEigaJm1hYXMtZGVmYXVsdC1nYXRld2F5LW9wZW5zaGlmdC1kZWZhdWx0","x-envoy-peer-metadata-id":"router~10.132.0.46~maas-default-gateway-openshift-default-687ff6996-cmqhc.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.38","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":835876883,"seconds":1781209973},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.38:41602","port":41602}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"subscription-valid","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"name\", \"\") != \"\"\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"error\", \"\") == \"\"\n\tphase := object.get(input.auth.metadata[\"subscription-info\"], \"phase\", \"\")\n\tany([phase == \"Active\", phase == \"Degraded\"])\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"deletionTimestamp\", \"\") == \"\"\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"groups","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"c544861a-33d1-41df-a412-6333c8a4c735","selected_subscription":"simulator-subscription","selected_subscription_key":"models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated","subscription_error":"","subscription_error_message":"","subscription_info":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true},"userid":"alice_lead"}} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"1a47223e-4987-41aa-8e65-0bc505e4f1d5","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57186","PortSpecifier":{"PortValue":57186}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57186","PortSpecifier":{"PortValue":57186}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":949514041},"http":{"id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:57bccb2b-367c-83a6-a8b0-9cace8ac9c76","preferred_username":"alice_lead","scope":"profile email","sid":"Vtjphbwi_b-syz0ZiabbPyPF","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210273,"groups":["Engineering","Project-Alpha"],"iat":1781209973,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:57bccb2b-367c-83a6-a8b0-9cace8ac9c76","preferred_username":"alice_lead","scope":"profile email","sid":"Vtjphbwi_b-syz0ZiabbPyPF","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"fac365d5-8f44-4cd4-a2ac-dcc4fcda67fe","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57188","PortSpecifier":{"PortValue":57188}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"08d110e3-1254-4fee-a525-50cb4b669c5d","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57188","PortSpecifier":{"PortValue":57188}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209973,"nanos":978876682},"http":{"id":"08d110e3-1254-4fee-a525-50cb4b669c5d","method":"GET","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1HIYXlNmRyiqqc1cH_7rbUumEP60amRNlCO1CS0qNfrw29qrnSHQrFPqsT7fU"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-1HIYXlNmRyiqqc1cH_7rbUumEP60amRNlCO1CS0qNfrw29qrnSHQrFPqsT7fU\"}"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"info","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:53Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"08d110e3-1254-4fee-a525-50cb4b669c5d","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57190","PortSpecifier":{"PortValue":57190}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"1152ff07-0504-4b51-8864-2c040fc7c060","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57190","PortSpecifier":{"PortValue":57190}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209974,"nanos":7942656},"http":{"id":"1152ff07-0504-4b51-8864-2c040fc7c060","method":"GET","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1HIYXlNmRyiqqc1cH_7rbUumEP60amRNlCO1CS0qNfrw29qrnSHQrFPqsT7fU"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-1HIYXlNmRyiqqc1cH_7rbUumEP60amRNlCO1CS0qNfrw29qrnSHQrFPqsT7fU\"}"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"1152ff07-0504-4b51-8864-2c040fc7c060","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209974,"nanos":16012569},"http":{"id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","method":"GET","headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1HIYXlNmRyiqqc1cH_7rbUumEP60amRNlCO1CS0qNfrw29qrnSHQrFPqsT7fU"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-1HIYXlNmRyiqqc1cH_7rbUumEP60amRNlCO1CS0qNfrw29qrnSHQrFPqsT7fU\"}"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":"subscription-info","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"],\"requestedModel\":\"llm/facebook-opt-125m-simulated\",\"requestedSubscription\":\"simulator-subscription\",\"username\":\"alice_lead\"}"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"subscription-info","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","input":{"auth":{"identity":"Bearer **** subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}}},"context":{"context_extensions":{"host":"3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** sk-oai-1HIYXlNmRyiqqc1cH_7rbUumEP60amRNlCO1CS0qNfrw29qrnSHQrFPqsT7fU","user-agent":"Go-http-client/1.1","x-envoy-decorator-operation":"facebook-opt-125m-simulated-kserve-workload-svc.llm.svc.cluster.local:8000/*","x-envoy-external-address":"10.133.0.38","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQAoETkFNRRI4GjZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC02ODdmZjY5OTYtY21xaGMKIAoJTkFNRVNQQUNFEhMaEW9wZW5zaGlmdC1pbmdyZXNzCnQKBU9XTkVSEmsaaWt1YmVybmV0ZXM6Ly9hcGlzL2FwcHMvdjEvbmFtZXNwYWNlcy9vcGVuc2hpZnQtaW5ncmVzcy9kZXBsb3ltZW50cy9tYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAo5Cg1XT1JLTE9BRF9OQU1FEigaJm1hYXMtZGVmYXVsdC1nYXRld2F5LW9wZW5zaGlmdC1kZWZhdWx0","x-envoy-peer-metadata-id":"router~10.132.0.46~maas-default-gateway-openshift-default-687ff6996-cmqhc.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.38","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":16012569,"seconds":1781209974},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.38:41602","port":41602}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"subscription-valid","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"name\", \"\") != \"\"\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"error\", \"\") == \"\"\n\tphase := object.get(input.auth.metadata[\"subscription-info\"], \"phase\", \"\")\n\tany([phase == \"Active\", phase == \"Degraded\"])\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"deletionTimestamp\", \"\") == \"\"\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"groups","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"6d38ede5-9145-4cef-9585-4440c26c2744","selected_subscription":"simulator-subscription","selected_subscription_key":"models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated","subscription_error":"","subscription_error_message":"","subscription_info":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true},"userid":"alice_lead"}} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"746db65f-7a33-4d95-ab5d-174d6c6e6cb7","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57202","PortSpecifier":{"PortValue":57202}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"a759def0-2d54-4cae-b51f-8bd203365bf8","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57202","PortSpecifier":{"PortValue":57202}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209974,"nanos":107911543},"http":{"id":"a759def0-2d54-4cae-b51f-8bd203365bf8","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210274,"groups":["Engineering","Project-Alpha"],"iat":1781209974,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:21219c88-af0f-cfdb-0495-c3fbac14c1cf","preferred_username":"alice_lead","scope":"profile email","sid":"kpuSReQ2t-Hlrud2uvXGTZOu","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210274,"groups":["Engineering","Project-Alpha"],"iat":1781209974,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:21219c88-af0f-cfdb-0495-c3fbac14c1cf","preferred_username":"alice_lead","scope":"profile email","sid":"kpuSReQ2t-Hlrud2uvXGTZOu","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"a759def0-2d54-4cae-b51f-8bd203365bf8","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57214","PortSpecifier":{"PortValue":57214}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57214","PortSpecifier":{"PortValue":57214}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209974,"nanos":137854756},"http":{"id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","method":"GET","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y\"}"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"3285d2d5-ac04-4929-a0c7-7dc475c7e854","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"0d733ae1-833b-4145-b3fd-11e650188dbc","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209974,"nanos":145130998},"http":{"id":"0d733ae1-833b-4145-b3fd-11e650188dbc","method":"GET","headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y\"}"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":"subscription-info","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"],\"requestedModel\":\"llm/facebook-opt-125m-simulated\",\"requestedSubscription\":\"simulator-subscription\",\"username\":\"alice_lead\"}"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"subscription-info","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","input":{"auth":{"identity":"Bearer **** subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}}},"context":{"context_extensions":{"host":"3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y","user-agent":"Go-http-client/1.1","x-envoy-decorator-operation":"facebook-opt-125m-simulated-kserve-workload-svc.llm.svc.cluster.local:8000/*","x-envoy-external-address":"10.133.0.38","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQAoETkFNRRI4GjZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC02ODdmZjY5OTYtY21xaGMKIAoJTkFNRVNQQUNFEhMaEW9wZW5zaGlmdC1pbmdyZXNzCnQKBU9XTkVSEmsaaWt1YmVybmV0ZXM6Ly9hcGlzL2FwcHMvdjEvbmFtZXNwYWNlcy9vcGVuc2hpZnQtaW5ncmVzcy9kZXBsb3ltZW50cy9tYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAo5Cg1XT1JLTE9BRF9OQU1FEigaJm1hYXMtZGVmYXVsdC1nYXRld2F5LW9wZW5zaGlmdC1kZWZhdWx0","x-envoy-peer-metadata-id":"router~10.132.0.46~maas-default-gateway-openshift-default-687ff6996-cmqhc.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.38","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"0d733ae1-833b-4145-b3fd-11e650188dbc"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"0d733ae1-833b-4145-b3fd-11e650188dbc","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":145130998,"seconds":1781209974},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.38:41602","port":41602}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"subscription-valid","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"name\", \"\") != \"\"\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"error\", \"\") == \"\"\n\tphase := object.get(input.auth.metadata[\"subscription-info\"], \"phase\", \"\")\n\tany([phase == \"Active\", phase == \"Degraded\"])\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"deletionTimestamp\", \"\") == \"\"\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"groups","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"5e1dad4f-a365-41bf-912b-3a6cd46b6813","selected_subscription":"simulator-subscription","selected_subscription_key":"models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated","subscription_error":"","subscription_error_message":"","subscription_info":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true},"userid":"alice_lead"}} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"0d733ae1-833b-4145-b3fd-11e650188dbc","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57228","PortSpecifier":{"PortValue":57228}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"e7f69853-9047-4006-921d-21105fcbcb0b","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57228","PortSpecifier":{"PortValue":57228}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209974,"nanos":177616912},"http":{"id":"e7f69853-9047-4006-921d-21105fcbcb0b","method":"GET","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y\"}"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"e7f69853-9047-4006-921d-21105fcbcb0b","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.38:41602","PortSpecifier":{"PortValue":41602}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209974,"nanos":184940903},"http":{"id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","method":"GET","headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":"apiKeyValidation","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y\"}"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":"subscription-info","method":"POST","url":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"],\"requestedModel\":\"llm/facebook-opt-125m-simulated\",\"requestedSubscription\":\"simulator-subscription\",\"username\":\"alice_lead\"}"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"subscription-info","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api.opendatahub.svc.cluster.local:8443/internal/v1/subscriptions/select","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","input":{"auth":{"identity":"Bearer **** subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true}}},"context":{"context_extensions":{"host":"3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local",":method":"GET",":path":"/llm/facebook-opt-125m-simulated/v1/models",":scheme":"https","accept-encoding":"gzip","authorization":"Bearer **** sk-oai-nR8A3kV56nriQrUS_TU8aCzCEvWqlzjMVVBNXBuqwd9uKeGBqxuXk9Bao99Y","user-agent":"Go-http-client/1.1","x-envoy-decorator-operation":"facebook-opt-125m-simulated-kserve-workload-svc.llm.svc.cluster.local:8000/*","x-envoy-external-address":"10.133.0.38","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQAoETkFNRRI4GjZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC02ODdmZjY5OTYtY21xaGMKIAoJTkFNRVNQQUNFEhMaEW9wZW5zaGlmdC1pbmdyZXNzCnQKBU9XTkVSEmsaaWt1YmVybmV0ZXM6Ly9hcGlzL2FwcHMvdjEvbmFtZXNwYWNlcy9vcGVuc2hpZnQtaW5ncmVzcy9kZXBsb3ltZW50cy9tYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAo5Cg1XT1JLTE9BRF9OQU1FEigaJm1hYXMtZGVmYXVsdC1nYXRld2F5LW9wZW5zaGlmdC1kZWZhdWx0","x-envoy-peer-metadata-id":"router~10.132.0.46~maas-default-gateway-openshift-default-687ff6996-cmqhc.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.38","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":184940903,"seconds":1781209974},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.38:41602","port":41602}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"subscription-valid","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"name\", \"\") != \"\"\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"error\", \"\") == \"\"\n\tphase := object.get(input.auth.metadata[\"subscription-info\"], \"phase\", \"\")\n\tany([phase == \"Active\", phase == \"Degraded\"])\n\tobject.get(input.auth.metadata[\"subscription-info\"], \"deletionTimestamp\", \"\") == \"\"\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"X-MaaS-Subscription","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Subscription","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"simulator-subscription"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"groups","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"5e1dad4f-a365-41bf-912b-3a6cd46b6813","selected_subscription":"simulator-subscription","selected_subscription_key":"models-as-a-service/simulator-subscription@llm/facebook-opt-125m-simulated","subscription_error":"","subscription_error_message":"","subscription_info":{"description":"Free-tier subscription with 100 tokens/min rate limit","displayName":"Simulator Subscription (Free)","modelRefs":[{"description":"A simulated OPT-125M model for free-tier testing","display_name":"Facebook OPT 125M (Simulated)","name":"facebook-opt-125m-simulated","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"simulator-subscription","namespace":"models-as-a-service","phase":"Active","priority":10,"ready":true},"userid":"alice_lead"}} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"3728ec9f-1f2a-4613-a1e6-913d3f5eb774","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"977774f5-caa3-4066-805c-2992a5abe04a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57244","PortSpecifier":{"PortValue":57244}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"977774f5-caa3-4066-805c-2992a5abe04a","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"977774f5-caa3-4066-805c-2992a5abe04a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.13:57244","PortSpecifier":{"PortValue":57244}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.46:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781209974,"nanos":280612050},"http":{"id":"977774f5-caa3-4066-805c-2992a5abe04a","method":"POST","headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"977774f5-caa3-4066-805c-2992a5abe04a","config":{"Name":"oidc-identities","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":null,"OAuth2":null,"JWTAuthentication":{"AuthCredentials":{"KeySelector":"Bearer","In":"authorization_header"}},"MTLS":null,"HMAC":null,"APIKey":null,"KubernetesAuth":null,"Plain":null,"Noop":null,"ExtendedProperties":[]},"object":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210274,"groups":["Engineering","Project-Alpha"],"iat":1781209974,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:8d12f00a-aae8-58de-924a-f07d56f36315","preferred_username":"alice_lead","scope":"profile email","sid":"E1QUfspZvYrweVTMF68C822e","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"977774f5-caa3-4066-805c-2992a5abe04a","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781210274,"groups":["Engineering","Project-Alpha"],"iat":1781209974,"iss":"https://keycloak.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:8d12f00a-aae8-58de-924a-f07d56f36315","preferred_username":"alice_lead","scope":"profile email","sid":"E1QUfspZvYrweVTMF68C822e","sub":"84aa21f3-a524-4396-84de-1246dde2808a","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.46:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.086453ac-ab27-48f1-b59a-21ab5c5a9651.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"977774f5-caa3-4066-805c-2992a5abe04a","config":{"Name":"tenant-gateway-isolation","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":null,"OPA":{"Rego":"# Tenant hostname isolation stub.\n# Replace with a real maas-api call to validate that the API key's tenant\n# matches the gateway hostname (prevents Coke key on Pepsi gateway).\nallow { true }","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"977774f5-caa3-4066-805c-2992a5abe04a","config":{"Name":"auth-valid","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"allow {\n object.get(input.auth.metadata, \"apiKeyValidation\", {})\n input.auth.metadata.apiKeyValidation.valid == true\n}\nallow {\n not input.auth.metadata.apiKeyValidation\n}","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"977774f5-caa3-4066-805c-2992a5abe04a","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"llm/facebook-opt-125m-simulated\":{\"users\":null,\"groups\":[\"system:authenticated\"]},\"llm/premium-simulated-simulated-premium\":{\"users\":[\"system:serviceaccount:premium-users-namespace:premium-service-account\"],\"groups\":[\"premium-user\"]}}\n\nrequest_path := object.get(input.context.request.http, \"path\", \"\")\nrequest_headers := object.get(input.context.request.http, \"headers\", {})\n\npath_parts := [p | p := split(request_path, \"/\")[_]; p != \"\"]\n\npath_model_identity := sprintf(\"%s/%s\", [path_parts[0], path_parts[1]]) {\n\tcount(path_parts) >= 2\n}\n\nheader_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nmodel_identity := path_model_identity {\n\tstartswith(request_path, \"/llm/\")\n} else := header_model_identity {\n\theader_model_identity != \"\"\n} else := \"\"\n\nusername := input.auth.metadata.apiKeyValidation.username\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.username != \"\" }\nelse := input.auth.identity.preferred_username\n\t{ object.get(input.auth, \"identity\", {}).preferred_username != \"\" }\nelse := input.auth.identity.sub\n\t{ object.get(input.auth, \"identity\", {}).sub != \"\" }\nelse := input.auth.identity.user.username\n\t{ object.get(input.auth, \"identity\", {}).user.username != \"\" }\nelse := \"\"\n\ngroups := input.auth.metadata.apiKeyValidation.groups\n\t{ object.get(input.auth, \"metadata\", {}).apiKeyValidation.groups != [] }\nelse := input.auth.identity.groups\n\t{ object.get(input.auth, \"identity\", {}).groups != [] }\nelse := input.auth.identity.user.groups\n\t{ object.get(input.auth, \"identity\", {}).user.groups != [] }\nelse := []\n\nmodel_rules := object.get(model_access, model_identity, null)\n\n# Management endpoints (e.g. /v1/models, /v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by the /llm/ when-condition.\nallow {\n\tmodel_identity == \"\"\n}\n\n# Inference path: deny by default when no MaaSAuthPolicy covers this model.\n# Allow only when the caller's username or a group is explicitly listed.\nallow {\n\tmodel_rules != null\n\tmodel_rules.users[_] == username\n}\n\nallow {\n\tmodel_rules != null\n\tg := groups[_]\n\tmodel_rules.groups[_] == g\n}\n","ExternalSource":null,"AllValues":false},"JSON":null,"KubernetesAuthz":null,"Authzed":null},"object":{"allow":true}} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"977774f5-caa3-4066-805c-2992a5abe04a","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"977774f5-caa3-4066-805c-2992a5abe04a","config":{"Name":"X-MaaS-Username-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"alice_lead"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"977774f5-caa3-4066-805c-2992a5abe04a","config":{"Name":"X-MaaS-Group-Token","Priority":1,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Group","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{}}},"object":"[\"system:authenticated\",\"Engineering\",\"Project-Alpha\"]"} {"level":"info","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"977774f5-caa3-4066-805c-2992a5abe04a","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-11T20:32:54Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"977774f5-caa3-4066-805c-2992a5abe04a","authorized":true,"response":"OK"}