{"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"3c0d47082320c9bb02d3788ab2b052c696af91abc2ae438437ae71a26936c7c2","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/3c0d47082320c9bb02d3788ab2b052c696af91abc2ae438437ae71a26936c7c2","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/3c0d47082320c9bb02d3788ab2b052c696af91abc2ae438437ae71a26936c7c2"} {"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"86cbb62fb4d82d4dc402b3281444539a5625c4bb4c86bbc4912c70e690a2e374","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/86cbb62fb4d82d4dc402b3281444539a5625c4bb4c86bbc4912c70e690a2e374","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/86cbb62fb4d82d4dc402b3281444539a5625c4bb4c86bbc4912c70e690a2e374"} {"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"False","lastTransitionTime":"2026-06-12T17:49:28Z","reason":"HostsNotLinked","message":"No hosts linked to the resource"},{"type":"Ready","status":"False","lastTransitionTime":"2026-06-12T17:49:28Z","reason":"Reconciling"}],"summary":{"ready":false,"hostsReady":[],"numHostsReady":"0/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:28Z","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-12T17:49:28Z","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-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa"} {"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/cc09b530b46a73b0d4ddb40e465580cff15db19d77e93e4903c9737647deeb1a","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/cc09b530b46a73b0d4ddb40e465580cff15db19d77e93e4903c9737647deeb1a"} {"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:28Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-06-12T17:49:29Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-06-12T17:49:29Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa"],"numHostsReady":"1/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"False","lastTransitionTime":"2026-06-12T17:49:29Z","reason":"HostsNotLinked","message":"No hosts linked to the resource"},{"type":"Ready","status":"False","lastTransitionTime":"2026-06-12T17:49:29Z","reason":"Reconciling"}],"summary":{"ready":false,"hostsReady":[],"numHostsReady":"0/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"18e32965997cdd9967355c6fa5264ed12c0a215989d459ed88d7d6de02865f76","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"01918e70442d2cb18c94316131b0e0a241b4a5d12df5b1e1981a3bef420bbdb5","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/18e32965997cdd9967355c6fa5264ed12c0a215989d459ed88d7d6de02865f76","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"e50f5fdcb9fb7e124557afe69edae9a95d05da488eae1cc4b5c1c7c1220a826a","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-06-12T17:49:29Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-06-12T17:49:29Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa"],"numHostsReady":"1/1","numIdentitySources":3,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/18e32965997cdd9967355c6fa5264ed12c0a215989d459ed88d7d6de02865f76"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/01918e70442d2cb18c94316131b0e0a241b4a5d12df5b1e1981a3bef420bbdb5","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/01918e70442d2cb18c94316131b0e0a241b4a5d12df5b1e1981a3bef420bbdb5"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"331dc257e65f55f80700a586f7807093eda7b3d8e7d91215dc3c47731508480c","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/35d34d59676c333235d7c9f02273e0380bb39f27cfd30856fedc0f7c0e5f79aa"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/e50f5fdcb9fb7e124557afe69edae9a95d05da488eae1cc4b5c1c7c1220a826a","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/e50f5fdcb9fb7e124557afe69edae9a95d05da488eae1cc4b5c1c7c1220a826a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"311b1be286674fd5684c9ac59b318287dade9769cfe4aeebd8c88e2dc6b72418","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"bf72a6316f6ed79299511e58d068836cdc71dbca5e23944f783c9340ffa0aee1","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/331dc257e65f55f80700a586f7807093eda7b3d8e7d91215dc3c47731508480c","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/331dc257e65f55f80700a586f7807093eda7b3d8e7d91215dc3c47731508480c"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/311b1be286674fd5684c9ac59b318287dade9769cfe4aeebd8c88e2dc6b72418","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"4dc577fd60594d78a4a8bebe396f4b5a928f41bdc3f95c06d717cf1ddc3158b2","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/311b1be286674fd5684c9ac59b318287dade9769cfe4aeebd8c88e2dc6b72418"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/bf72a6316f6ed79299511e58d068836cdc71dbca5e23944f783c9340ffa0aee1","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"7371c34ce8e4df2309ee8f952c87f921947b289427b6e9ea579dcb9970fc1b86","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/bf72a6316f6ed79299511e58d068836cdc71dbca5e23944f783c9340ffa0aee1"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/d3b195a61a7f24c6bf1fba40f9f2e2565facb6af92e959c1546ac398a9172618","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/d3b195a61a7f24c6bf1fba40f9f2e2565facb6af92e959c1546ac398a9172618"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/4dc577fd60594d78a4a8bebe396f4b5a928f41bdc3f95c06d717cf1ddc3158b2","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/4dc577fd60594d78a4a8bebe396f4b5a928f41bdc3f95c06d717cf1ddc3158b2"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"edcceb5a2e0cf1edde0fc3ed43068ce5b123a6fdc41949959c2c3b7a5a48bf24","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/3dd75e19cd66d310c30638e330078972afd6d2d96305f91055bc6a6f363fb8d3"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"c9f2cdb36f800bc8ef8831e6117ec4c6cc521d8cd63b718b7906225d0f25e59f","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/7371c34ce8e4df2309ee8f952c87f921947b289427b6e9ea579dcb9970fc1b86","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/7371c34ce8e4df2309ee8f952c87f921947b289427b6e9ea579dcb9970fc1b86"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/5fea747cb803a5ee3aeb620187bd9ec74ccccd10a92474ef528215a7ff146c8f","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/5fea747cb803a5ee3aeb620187bd9ec74ccccd10a92474ef528215a7ff146c8f"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/e38d76c6f386f12bc12190c87b39e6e77e182be454f85659a9197c301f2cd9be"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/edcceb5a2e0cf1edde0fc3ed43068ce5b123a6fdc41949959c2c3b7a5a48bf24","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/edcceb5a2e0cf1edde0fc3ed43068ce5b123a6fdc41949959c2c3b7a5a48bf24"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/c9f2cdb36f800bc8ef8831e6117ec4c6cc521d8cd63b718b7906225d0f25e59f","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/c9f2cdb36f800bc8ef8831e6117ec4c6cc521d8cd63b718b7906225d0f25e59f"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/319a353672fc7601c875fa3f8b807adf60b64f093f022b2a1c3dfef3ac8cd4f4","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/319a353672fc7601c875fa3f8b807adf60b64f093f022b2a1c3dfef3ac8cd4f4"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/b1f82c4ba6cc7617f9c0b90067f72f4a25fdc5de2564c14ccb90af534a2905f6","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","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-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/b1f82c4ba6cc7617f9c0b90067f72f4a25fdc5de2564c14ccb90af534a2905f6"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"df733b2c652bfe2458c9e19932b1091e939c1a62178d6879462b3b4f73fca4bb","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/3dc75fc8307b952a3e873400cf417e90f2861e8a225abec4b22708deb7901db7","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/3dc75fc8307b952a3e873400cf417e90f2861e8a225abec4b22708deb7901db7"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/a89b0896df0d8cd430f1c81b6eb292ddc044daed393537d009a6330718f58d4b"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/80f10756c0e833d16937036ed66f1daf5bef95559ef05a5e852766b97b9bdaef","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/80f10756c0e833d16937036ed66f1daf5bef95559ef05a5e852766b97b9bdaef"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/df733b2c652bfe2458c9e19932b1091e939c1a62178d6879462b3b4f73fca4bb","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/df733b2c652bfe2458c9e19932b1091e939c1a62178d6879462b3b4f73fca4bb"} {"level":"debug","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig.jwt","msg":"openid connect configuration updated","authconfig":"kuadrant-system/9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a","issuerUrl":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/9bbfc0b2e9e9acadd41342cd7c36a24afa8a5eef942d161782a6adae8411158a"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/3efb8e937aa19b5e0bdd0c3eb5b4ece33299385dcfc89205b8934853facbdcf0"} {"level":"info","ts":"2026-06-12T17:49:29Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/2200947db0f3acc41dd3fca21efa06f90c57afddd36d719bdda2dc74a0bd0a11"} {"level":"info","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56518","PortSpecifier":{"PortValue":56518}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56518","PortSpecifier":{"PortValue":56518}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286596,"nanos":366834273},"http":{"id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","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":1781286896,"groups":["Engineering","Project-Alpha"],"iat":1781286596,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:0875d866-3141-0599-80f9-7ea94882188d","preferred_username":"alice_lead","scope":"profile email","sid":"2MHmn1BRdmc2EJAmsYvNdqb_","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286896,"groups":["Engineering","Project-Alpha"],"iat":1781286596,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:0875d866-3141-0599-80f9-7ea94882188d","preferred_username":"alice_lead","scope":"profile email","sid":"2MHmn1BRdmc2EJAmsYvNdqb_","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","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-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"8f0efdb4-de42-4cb1-80e4-ea51485f974d","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"c9e94f55-8635-4e96-ab83-9d072bb40bb3","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56530","PortSpecifier":{"PortValue":56530}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"c9e94f55-8635-4e96-ab83-9d072bb40bb3","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"c9e94f55-8635-4e96-ab83-9d072bb40bb3","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56530","PortSpecifier":{"PortValue":56530}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286596,"nanos":481160370},"http":{"id":"c9e94f55-8635-4e96-ab83-9d072bb40bb3","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"c9e94f55-8635-4e96-ab83-9d072bb40bb3","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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.identity.kubernetesauth","msg":"calling kubernetes token review api","request id":"c9e94f55-8635-4e96-ab83-9d072bb40bb3","tokenreview":{"name":""}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"c9e94f55-8635-4e96-ab83-9d072bb40bb3","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-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"c9e94f55-8635-4e96-ab83-9d072bb40bb3","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required"}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"c9e94f55-8635-4e96-ab83-9d072bb40bb3","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-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"23b9c496-442e-4ada-a759-66e3785b9b6a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56540","PortSpecifier":{"PortValue":56540}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"23b9c496-442e-4ada-a759-66e3785b9b6a","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"23b9c496-442e-4ada-a759-66e3785b9b6a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56540","PortSpecifier":{"PortValue":56540}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286596,"nanos":525526259},"http":{"id":"23b9c496-442e-4ada-a759-66e3785b9b6a","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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=52.71.36.72;host=maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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.133.0.11","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQQoETkFNRRI5GjdtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC04NTU5Y2Q1NzQ0LTZ2ZHN2CiAKCU5BTUVTUEFDRRITGhFvcGVuc2hpZnQtaW5ncmVzcwp0CgVPV05FUhJrGmlrdWJlcm5ldGVzOi8vYXBpcy9hcHBzL3YxL25hbWVzcGFjZXMvb3BlbnNoaWZ0LWluZ3Jlc3MvZGVwbG95bWVudHMvbWFhcy1kZWZhdWx0LWdhdGV3YXktb3BlbnNoaWZ0LWRlZmF1bHQKOQoNV09SS0xPQURfTkFNRRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdA==","x-envoy-peer-metadata-id":"router~10.133.0.29~maas-default-gateway-openshift-default-8559cd5744-6vdsv.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"52.71.36.72,10.133.0.11","x-forwarded-host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","x-forwarded-port":"443","x-forwarded-proto":"https","x-request-id":"23b9c496-442e-4ada-a759-66e3785b9b6a"},"path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https","protocol":"HTTP/1.1"}},"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"metadata_context":{}}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"23b9c496-442e-4ada-a759-66e3785b9b6a","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-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"23b9c496-442e-4ada-a759-66e3785b9b6a","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required"}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"23b9c496-442e-4ada-a759-66e3785b9b6a","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-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"21f90bf5-3d55-426c-a4ba-6c318df7639c","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56554","PortSpecifier":{"PortValue":56554}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"21f90bf5-3d55-426c-a4ba-6c318df7639c","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"21f90bf5-3d55-426c-a4ba-6c318df7639c","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56554","PortSpecifier":{"PortValue":56554}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286596,"nanos":552430467},"http":{"id":"21f90bf5-3d55-426c-a4ba-6c318df7639c","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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=52.71.36.72;host=maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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.133.0.11","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQQoETkFNRRI5GjdtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC04NTU5Y2Q1NzQ0LTZ2ZHN2CiAKCU5BTUVTUEFDRRITGhFvcGVuc2hpZnQtaW5ncmVzcwp0CgVPV05FUhJrGmlrdWJlcm5ldGVzOi8vYXBpcy9hcHBzL3YxL25hbWVzcGFjZXMvb3BlbnNoaWZ0LWluZ3Jlc3MvZGVwbG95bWVudHMvbWFhcy1kZWZhdWx0LWdhdGV3YXktb3BlbnNoaWZ0LWRlZmF1bHQKOQoNV09SS0xPQURfTkFNRRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdA==","x-envoy-peer-metadata-id":"router~10.133.0.29~maas-default-gateway-openshift-default-8559cd5744-6vdsv.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"52.71.36.72,10.133.0.11","x-forwarded-host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","x-forwarded-port":"443","x-forwarded-proto":"https","x-request-id":"21f90bf5-3d55-426c-a4ba-6c318df7639c"},"path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https","protocol":"HTTP/1.1"}},"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"metadata_context":{}}} {"level":"info","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"21f90bf5-3d55-426c-a4ba-6c318df7639c","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required"}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"21f90bf5-3d55-426c-a4ba-6c318df7639c","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-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56570","PortSpecifier":{"PortValue":56570}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56570","PortSpecifier":{"PortValue":56570}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286596,"nanos":922956532},"http":{"id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","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":1781286896,"groups":["Site-Reliability"],"iat":1781286596,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1e0b248f-572f-b75e-8337-c3d40d4e1cb9","preferred_username":"bob_sre","scope":"profile email","sid":"O2QX2gripP_xlCvCZeNlbmXz","sub":"59d7ec53-67d3-4038-985b-bb6a551b348b","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286896,"groups":["Site-Reliability"],"iat":1781286596,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:1e0b248f-572f-b75e-8337-c3d40d4e1cb9","preferred_username":"bob_sre","scope":"profile email","sid":"O2QX2gripP_xlCvCZeNlbmXz","sub":"59d7ec53-67d3-4038-985b-bb6a551b348b","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","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-12T17:49:56Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","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-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:49:56Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"156ae886-74fd-405b-8950-e0f9f60d8d4a","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56572","PortSpecifier":{"PortValue":56572}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"3a592530-5023-4e7b-8d9d-130a5985dac5","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56572","PortSpecifier":{"PortValue":56572}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286597,"nanos":162049273},"http":{"id":"3a592530-5023-4e7b-8d9d-130a5985dac5","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","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":1781286897,"groups":["Engineering","Project-Alpha"],"iat":1781286597,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:d19e4bf9-c4a2-dd11-6bf9-6ddc136a2618","preferred_username":"alice_lead","scope":"profile email","sid":"MMBjzhlNtA64WWBoc-Sk27MH","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286897,"groups":["Engineering","Project-Alpha"],"iat":1781286597,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:d19e4bf9-c4a2-dd11-6bf9-6ddc136a2618","preferred_username":"alice_lead","scope":"profile email","sid":"MMBjzhlNtA64WWBoc-Sk27MH","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","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-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"3a592530-5023-4e7b-8d9d-130a5985dac5","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"981a319a-830b-4a42-a0c6-0db907080284","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56580","PortSpecifier":{"PortValue":56580}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"981a319a-830b-4a42-a0c6-0db907080284","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"981a319a-830b-4a42-a0c6-0db907080284","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56580","PortSpecifier":{"PortValue":56580}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286597,"nanos":191562507},"http":{"id":"981a319a-830b-4a42-a0c6-0db907080284","method":"GET","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"981a319a-830b-4a42-a0c6-0db907080284","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-igLuSs8Mti7w6F30_WCf9BYXBRmRF90V9FGGbcZYeGQhnOn3wSc8yn9viHVO"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"981a319a-830b-4a42-a0c6-0db907080284","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-igLuSs8Mti7w6F30_WCf9BYXBRmRF90V9FGGbcZYeGQhnOn3wSc8yn9viHVO\"}"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"981a319a-830b-4a42-a0c6-0db907080284","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"981a319a-830b-4a42-a0c6-0db907080284","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"981a319a-830b-4a42-a0c6-0db907080284","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"981a319a-830b-4a42-a0c6-0db907080284","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"981a319a-830b-4a42-a0c6-0db907080284","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"981a319a-830b-4a42-a0c6-0db907080284","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"981a319a-830b-4a42-a0c6-0db907080284","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"981a319a-830b-4a42-a0c6-0db907080284","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"981a319a-830b-4a42-a0c6-0db907080284","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":"info","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"981a319a-830b-4a42-a0c6-0db907080284","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"981a319a-830b-4a42-a0c6-0db907080284","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286597,"nanos":210059660},"http":{"id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-igLuSs8Mti7w6F30_WCf9BYXBRmRF90V9FGGbcZYeGQhnOn3wSc8yn9viHVO"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-igLuSs8Mti7w6F30_WCf9BYXBRmRF90V9FGGbcZYeGQhnOn3wSc8yn9viHVO\"}"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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.133.0.29: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-igLuSs8Mti7w6F30_WCf9BYXBRmRF90V9FGGbcZYeGQhnOn3wSc8yn9viHVO","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.32","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQQoETkFNRRI5GjdtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC04NTU5Y2Q1NzQ0LTZ2ZHN2CiAKCU5BTUVTUEFDRRITGhFvcGVuc2hpZnQtaW5ncmVzcwp0CgVPV05FUhJrGmlrdWJlcm5ldGVzOi8vYXBpcy9hcHBzL3YxL25hbWVzcGFjZXMvb3BlbnNoaWZ0LWluZ3Jlc3MvZGVwbG95bWVudHMvbWFhcy1kZWZhdWx0LWdhdGV3YXktb3BlbnNoaWZ0LWRlZmF1bHQKOQoNV09SS0xPQURfTkFNRRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdA==","x-envoy-peer-metadata-id":"router~10.133.0.29~maas-default-gateway-openshift-default-8559cd5744-6vdsv.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.32","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":210059660,"seconds":1781286597},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.32:40448","port":40448}}} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","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_str","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"b526f1f9-cca6-4d98-a397-b3ae5f3c895b","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-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"f35fb0c1-bb00-45c9-a016-01bae736bf3a","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56594","PortSpecifier":{"PortValue":56594}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","method":"POST","path":"/llm/facebook-opt-125m-simulated/v1/chat/completions","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56594","PortSpecifier":{"PortValue":56594}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286597,"nanos":244209073},"http":{"id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-igLuSs8Mti7w6F30_WCf9BYXBRmRF90V9FGGbcZYeGQhnOn3wSc8yn9viHVO"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","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-igLuSs8Mti7w6F30_WCf9BYXBRmRF90V9FGGbcZYeGQhnOn3wSc8yn9viHVO\"}"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","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.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"groups","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"userid","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"selected_subscription","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"b526f1f9-cca6-4d98-a397-b3ae5f3c895b","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-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"899ab19d-542a-489e-a2f6-f7b85f9a9fc7","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56610","PortSpecifier":{"PortValue":56610}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"69ec88d7-04ef-45bf-9f36-e68bff881115","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56610","PortSpecifier":{"PortValue":56610}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286597,"nanos":341031593},"http":{"id":"69ec88d7-04ef-45bf-9f36-e68bff881115","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","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":1781286897,"groups":["Engineering","Project-Alpha"],"iat":1781286597,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:99436326-3aa8-465b-2bb2-cc3f75c42904","preferred_username":"alice_lead","scope":"profile email","sid":"gdvzsEtI_SfqLIz98P9GOctI","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286897,"groups":["Engineering","Project-Alpha"],"iat":1781286597,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:99436326-3aa8-465b-2bb2-cc3f75c42904","preferred_username":"alice_lead","scope":"profile email","sid":"gdvzsEtI_SfqLIz98P9GOctI","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","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-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"69ec88d7-04ef-45bf-9f36-e68bff881115","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56624","PortSpecifier":{"PortValue":56624}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","method":"DELETE","path":"/maas-api/v1/api-keys/2b8fdf52-e2e4-4391-8101-41671a4f5edf","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56624","PortSpecifier":{"PortValue":56624}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286597,"nanos":371121517},"http":{"id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","method":"DELETE","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/2b8fdf52-e2e4-4391-8101-41671a4f5edf",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","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":1781286897,"groups":["Engineering","Project-Alpha"],"iat":1781286597,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:99436326-3aa8-465b-2bb2-cc3f75c42904","preferred_username":"alice_lead","scope":"profile email","sid":"gdvzsEtI_SfqLIz98P9GOctI","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286897,"groups":["Engineering","Project-Alpha"],"iat":1781286597,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:99436326-3aa8-465b-2bb2-cc3f75c42904","preferred_username":"alice_lead","scope":"profile email","sid":"gdvzsEtI_SfqLIz98P9GOctI","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/2b8fdf52-e2e4-4391-8101-41671a4f5edf",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","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-12T17:49:57Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","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-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:49:57Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"473810f7-b5e5-4d8f-b4b7-9345db8bac5f","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56634","PortSpecifier":{"PortValue":56634}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56634","PortSpecifier":{"PortValue":56634}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286600,"nanos":408364683},"http":{"id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","method":"GET","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-9LiOntnIi0Tj9c1c_Ov2NCrIxKi5b5c77VNJnE7pTxodb13IdjbqOXxFZTO9"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","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-9LiOntnIi0Tj9c1c_Ov2NCrIxKi5b5c77VNJnE7pTxodb13IdjbqOXxFZTO9\"}"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","input":{"auth":{"identity":"Bearer **** revoked or expired","valid":false}}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access denied","request id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","authorized":false,"response":"PERMISSION_DENIED","object":{"code":7,"status":403,"message":"Unauthorized"}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"bf1782b9-c69c-4962-9efb-e3434ce12c3c","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"66858df2-4cbe-421a-a96b-979ba3421cb9","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56642","PortSpecifier":{"PortValue":56642}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"66858df2-4cbe-421a-a96b-979ba3421cb9","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"66858df2-4cbe-421a-a96b-979ba3421cb9","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56642","PortSpecifier":{"PortValue":56642}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286600,"nanos":534639774},"http":{"id":"66858df2-4cbe-421a-a96b-979ba3421cb9","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"66858df2-4cbe-421a-a96b-979ba3421cb9","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity.kubernetesauth","msg":"calling kubernetes token review api","request id":"66858df2-4cbe-421a-a96b-979ba3421cb9","tokenreview":{"name":""}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"cannot validate identity","request id":"66858df2-4cbe-421a-a96b-979ba3421cb9","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"66858df2-4cbe-421a-a96b-979ba3421cb9","authorized":false,"response":"UNAUTHENTICATED","object":{"code":16,"status":401,"message":"Authentication required"}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"66858df2-4cbe-421a-a96b-979ba3421cb9","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56654","PortSpecifier":{"PortValue":56654}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56654","PortSpecifier":{"PortValue":56654}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286600,"nanos":703348491},"http":{"id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","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":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:844d1370-99b3-007b-4cfc-5c5fdc8ff192","preferred_username":"alice_lead","scope":"profile email","sid":"f9sOgYQ9Z58Lvmim_zDq3kKJ","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:844d1370-99b3-007b-4cfc-5c5fdc8ff192","preferred_username":"alice_lead","scope":"profile email","sid":"f9sOgYQ9Z58Lvmim_zDq3kKJ","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"c725c873-a612-4c2d-a9b0-0a4b046ff1fd","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56668","PortSpecifier":{"PortValue":56668}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56668","PortSpecifier":{"PortValue":56668}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286600,"nanos":734708244},"http":{"id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","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":1781286900,"groups":["Site-Reliability"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:5b39dea5-753e-e3ed-2f5e-e6119ce44e1a","preferred_username":"bob_sre","scope":"profile email","sid":"ZyndWXtjFFww7q1CamVKeroW","sub":"59d7ec53-67d3-4038-985b-bb6a551b348b","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286900,"groups":["Site-Reliability"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:5b39dea5-753e-e3ed-2f5e-e6119ce44e1a","preferred_username":"bob_sre","scope":"profile email","sid":"ZyndWXtjFFww7q1CamVKeroW","sub":"59d7ec53-67d3-4038-985b-bb6a551b348b","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"8e46dc1f-24d1-46d6-bef8-a806416e766a","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56684","PortSpecifier":{"PortValue":56684}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"02e70dd3-b724-4d25-8f46-4694a3700279","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56684","PortSpecifier":{"PortValue":56684}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286600,"nanos":826511960},"http":{"id":"02e70dd3-b724-4d25-8f46-4694a3700279","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","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":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:3a5f488f-ffd4-462b-89be-e5816d35d92f","preferred_username":"alice_lead","scope":"profile email","sid":"Pvf28DmMg9bnUxI6NBeEVWaW","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:3a5f488f-ffd4-462b-89be-e5816d35d92f","preferred_username":"alice_lead","scope":"profile email","sid":"Pvf28DmMg9bnUxI6NBeEVWaW","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"02e70dd3-b724-4d25-8f46-4694a3700279","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56686","PortSpecifier":{"PortValue":56686}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","method":"DELETE","path":"/maas-api/v1/api-keys/5909f45e-4a54-4ea4-9465-92e1fe28f353","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56686","PortSpecifier":{"PortValue":56686}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286600,"nanos":857372459},"http":{"id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","method":"DELETE","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/5909f45e-4a54-4ea4-9465-92e1fe28f353",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","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":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:3a5f488f-ffd4-462b-89be-e5816d35d92f","preferred_username":"alice_lead","scope":"profile email","sid":"Pvf28DmMg9bnUxI6NBeEVWaW","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:3a5f488f-ffd4-462b-89be-e5816d35d92f","preferred_username":"alice_lead","scope":"profile email","sid":"Pvf28DmMg9bnUxI6NBeEVWaW","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/5909f45e-4a54-4ea4-9465-92e1fe28f353",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"3b4dedb2-2e8c-48e5-add5-7493daaae025","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56700","PortSpecifier":{"PortValue":56700}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"9642a102-b3f3-432f-9373-d6e50f0ad554","method":"DELETE","path":"/maas-api/v1/api-keys/5909f45e-4a54-4ea4-9465-92e1fe28f353","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56700","PortSpecifier":{"PortValue":56700}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286600,"nanos":895750309},"http":{"id":"9642a102-b3f3-432f-9373-d6e50f0ad554","method":"DELETE","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/5909f45e-4a54-4ea4-9465-92e1fe28f353",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","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":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:3a5f488f-ffd4-462b-89be-e5816d35d92f","preferred_username":"alice_lead","scope":"profile email","sid":"Pvf28DmMg9bnUxI6NBeEVWaW","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:3a5f488f-ffd4-462b-89be-e5816d35d92f","preferred_username":"alice_lead","scope":"profile email","sid":"Pvf28DmMg9bnUxI6NBeEVWaW","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"DELETE",":path":"/maas-api/v1/api-keys/5909f45e-4a54-4ea4-9465-92e1fe28f353",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"9642a102-b3f3-432f-9373-d6e50f0ad554","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56704","PortSpecifier":{"PortValue":56704}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56704","PortSpecifier":{"PortValue":56704}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286600,"nanos":985499956},"http":{"id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","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":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:18bf516e-7659-95f3-611c-31b0ea2a66fc","preferred_username":"alice_lead","scope":"profile email","sid":"w0MCaK3FMbANvqgKgi-cRW06","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286900,"groups":["Engineering","Project-Alpha"],"iat":1781286600,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:18bf516e-7659-95f3-611c-31b0ea2a66fc","preferred_username":"alice_lead","scope":"profile email","sid":"w0MCaK3FMbANvqgKgi-cRW06","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline","msg":"skipping config","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** canceled"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline","msg":"skipping config","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","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":{}}},"reason":"context canceled"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline","msg":"skipping config","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** canceled"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","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-12T17:50:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","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-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"07a69ac0-3c5c-4836-9030-c579fca85dc6","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56706","PortSpecifier":{"PortValue":56706}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"796d20eb-0c86-4588-91b2-19c75a3440ab","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56706","PortSpecifier":{"PortValue":56706}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":23050650},"http":{"id":"796d20eb-0c86-4588-91b2-19c75a3440ab","method":"GET","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1YZKbHXBNS2vKZ1kc_JkXzJFozHrf65XWBeoBqkePq3FVeExDnMZz89NWXym5"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","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-1YZKbHXBNS2vKZ1kc_JkXzJFozHrf65XWBeoBqkePq3FVeExDnMZz89NWXym5\"}"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"796d20eb-0c86-4588-91b2-19c75a3440ab","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":30783747},"http":{"id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1YZKbHXBNS2vKZ1kc_JkXzJFozHrf65XWBeoBqkePq3FVeExDnMZz89NWXym5"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-1YZKbHXBNS2vKZ1kc_JkXzJFozHrf65XWBeoBqkePq3FVeExDnMZz89NWXym5\"}"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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.133.0.29: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-1YZKbHXBNS2vKZ1kc_JkXzJFozHrf65XWBeoBqkePq3FVeExDnMZz89NWXym5","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.32","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQQoETkFNRRI5GjdtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC04NTU5Y2Q1NzQ0LTZ2ZHN2CiAKCU5BTUVTUEFDRRITGhFvcGVuc2hpZnQtaW5ncmVzcwp0CgVPV05FUhJrGmlrdWJlcm5ldGVzOi8vYXBpcy9hcHBzL3YxL25hbWVzcGFjZXMvb3BlbnNoaWZ0LWluZ3Jlc3MvZGVwbG95bWVudHMvbWFhcy1kZWZhdWx0LWdhdGV3YXktb3BlbnNoaWZ0LWRlZmF1bHQKOQoNV09SS0xPQURfTkFNRRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdA==","x-envoy-peer-metadata-id":"router~10.133.0.29~maas-default-gateway-openshift-default-8559cd5744-6vdsv.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.32","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":30783747,"seconds":1781286601},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.32:40448","port":40448}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","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_str","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"b6f7d7c6-8a84-466d-b18b-cf643e1a5a55","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"93e346a4-de4f-4ed8-92e7-3c99dfd57efd","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"764eabfc-dc61-48db-9463-25f90f095d16","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56722","PortSpecifier":{"PortValue":56722}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"764eabfc-dc61-48db-9463-25f90f095d16","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"764eabfc-dc61-48db-9463-25f90f095d16","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56722","PortSpecifier":{"PortValue":56722}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":126746503},"http":{"id":"764eabfc-dc61-48db-9463-25f90f095d16","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"764eabfc-dc61-48db-9463-25f90f095d16","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":1781286901,"groups":["Engineering","Project-Alpha"],"iat":1781286601,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:ad5c2706-f07f-399d-47f6-7a74958a1ac3","preferred_username":"alice_lead","scope":"profile email","sid":"iu9aBbWnwV-rrfh0CEbEHm-D","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"764eabfc-dc61-48db-9463-25f90f095d16","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286901,"groups":["Engineering","Project-Alpha"],"iat":1781286601,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:ad5c2706-f07f-399d-47f6-7a74958a1ac3","preferred_username":"alice_lead","scope":"profile email","sid":"iu9aBbWnwV-rrfh0CEbEHm-D","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"764eabfc-dc61-48db-9463-25f90f095d16","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"764eabfc-dc61-48db-9463-25f90f095d16","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"764eabfc-dc61-48db-9463-25f90f095d16","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"764eabfc-dc61-48db-9463-25f90f095d16","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"764eabfc-dc61-48db-9463-25f90f095d16","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"764eabfc-dc61-48db-9463-25f90f095d16","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"764eabfc-dc61-48db-9463-25f90f095d16","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"764eabfc-dc61-48db-9463-25f90f095d16","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56732","PortSpecifier":{"PortValue":56732}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"6a1e94af-c825-4f7c-b52f-355bab56d173","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56732","PortSpecifier":{"PortValue":56732}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":158362731},"http":{"id":"6a1e94af-c825-4f7c-b52f-355bab56d173","method":"GET","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1azpqbKdhR29VhHK3_2NeFIBSnWhYTKElxCdoIRkvjWFY7Bc744KLxdK1r0dd"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","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-1azpqbKdhR29VhHK3_2NeFIBSnWhYTKElxCdoIRkvjWFY7Bc744KLxdK1r0dd\"}"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"6a1e94af-c825-4f7c-b52f-355bab56d173","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56740","PortSpecifier":{"PortValue":56740}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56740","PortSpecifier":{"PortValue":56740}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":189479769},"http":{"id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","method":"GET","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1azpqbKdhR29VhHK3_2NeFIBSnWhYTKElxCdoIRkvjWFY7Bc744KLxdK1r0dd"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","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-1azpqbKdhR29VhHK3_2NeFIBSnWhYTKElxCdoIRkvjWFY7Bc744KLxdK1r0dd\"}"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","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":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"8f0d6960-84d7-43f1-bb3d-d58c8bb38a6a","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":196662582},"http":{"id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1azpqbKdhR29VhHK3_2NeFIBSnWhYTKElxCdoIRkvjWFY7Bc744KLxdK1r0dd"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-1azpqbKdhR29VhHK3_2NeFIBSnWhYTKElxCdoIRkvjWFY7Bc744KLxdK1r0dd\"}"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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.133.0.29: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-1azpqbKdhR29VhHK3_2NeFIBSnWhYTKElxCdoIRkvjWFY7Bc744KLxdK1r0dd","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.32","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQQoETkFNRRI5GjdtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC04NTU5Y2Q1NzQ0LTZ2ZHN2CiAKCU5BTUVTUEFDRRITGhFvcGVuc2hpZnQtaW5ncmVzcwp0CgVPV05FUhJrGmlrdWJlcm5ldGVzOi8vYXBpcy9hcHBzL3YxL25hbWVzcGFjZXMvb3BlbnNoaWZ0LWluZ3Jlc3MvZGVwbG95bWVudHMvbWFhcy1kZWZhdWx0LWdhdGV3YXktb3BlbnNoaWZ0LWRlZmF1bHQKOQoNV09SS0xPQURfTkFNRRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdA==","x-envoy-peer-metadata-id":"router~10.133.0.29~maas-default-gateway-openshift-default-8559cd5744-6vdsv.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.32","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":196662582,"seconds":1781286601},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.32:40448","port":40448}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","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_str","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"be02946b-47b9-49d9-9522-7d1a65bae5ad","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"f24a1121-661f-46e4-bd61-5ec20a3c22d8","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56752","PortSpecifier":{"PortValue":56752}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56752","PortSpecifier":{"PortValue":56752}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":295853841},"http":{"id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","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":1781286901,"groups":["Engineering","Project-Alpha"],"iat":1781286601,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:2f11b871-f969-80e1-8608-54174ee9f58d","preferred_username":"alice_lead","scope":"profile email","sid":"v1CdfJwk0ZebJ-7ih5xJ8aJQ","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286901,"groups":["Engineering","Project-Alpha"],"iat":1781286601,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:2f11b871-f969-80e1-8608-54174ee9f58d","preferred_username":"alice_lead","scope":"profile email","sid":"v1CdfJwk0ZebJ-7ih5xJ8aJQ","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"afef5979-5304-4a17-9450-b3c6fa8efd4d","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56764","PortSpecifier":{"PortValue":56764}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"9fd918d9-32e4-438e-b7d2-da0023770405","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56764","PortSpecifier":{"PortValue":56764}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":329722136},"http":{"id":"9fd918d9-32e4-438e-b7d2-da0023770405","method":"GET","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","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-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM\"}"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"9fd918d9-32e4-438e-b7d2-da0023770405","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":337332620},"http":{"id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM\"}"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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.133.0.29: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-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM","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.32","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQQoETkFNRRI5GjdtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC04NTU5Y2Q1NzQ0LTZ2ZHN2CiAKCU5BTUVTUEFDRRITGhFvcGVuc2hpZnQtaW5ncmVzcwp0CgVPV05FUhJrGmlrdWJlcm5ldGVzOi8vYXBpcy9hcHBzL3YxL25hbWVzcGFjZXMvb3BlbnNoaWZ0LWluZ3Jlc3MvZGVwbG95bWVudHMvbWFhcy1kZWZhdWx0LWdhdGV3YXktb3BlbnNoaWZ0LWRlZmF1bHQKOQoNV09SS0xPQURfTkFNRRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdA==","x-envoy-peer-metadata-id":"router~10.133.0.29~maas-default-gateway-openshift-default-8559cd5744-6vdsv.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.32","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"0884b9ab-affa-46ec-bacd-d90802f2ee53"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":337332620,"seconds":1781286601},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.32:40448","port":40448}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","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_str","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"c5e5740b-3ec7-49a4-a838-64f72ce48f97","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"0884b9ab-affa-46ec-bacd-d90802f2ee53","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56774","PortSpecifier":{"PortValue":56774}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","method":"GET","path":"/maas-api/v1/models","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56774","PortSpecifier":{"PortValue":56774}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":371167566},"http":{"id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","method":"GET","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com",":method":"GET",":path":"/maas-api/v1/models",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","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-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM\"}"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: subscription-info"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","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":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"65cfe1bb-ce6b-4392-82db-8b7c6d6cf0c5","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.32:40448","PortSpecifier":{"PortValue":40448}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":378255885},"http":{"id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM\"}"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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.133.0.29: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-1KAOWpoSMWCPGzZyr_9SHr7EfYaWCDEEhWMriJNWGd5iSAC9NGyntmcxOhmWM","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.32","x-envoy-peer-metadata":"ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwqLAQoGTEFCRUxTEoABKn4KSwofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdAovCiNzZXJ2aWNlLmlzdGlvLmlvL2Nhbm9uaWNhbC1yZXZpc2lvbhIIGgZsYXRlc3QKQQoETkFNRRI5GjdtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdC04NTU5Y2Q1NzQ0LTZ2ZHN2CiAKCU5BTUVTUEFDRRITGhFvcGVuc2hpZnQtaW5ncmVzcwp0CgVPV05FUhJrGmlrdWJlcm5ldGVzOi8vYXBpcy9hcHBzL3YxL25hbWVzcGFjZXMvb3BlbnNoaWZ0LWluZ3Jlc3MvZGVwbG95bWVudHMvbWFhcy1kZWZhdWx0LWdhdGV3YXktb3BlbnNoaWZ0LWRlZmF1bHQKOQoNV09SS0xPQURfTkFNRRIoGiZtYWFzLWRlZmF1bHQtZ2F0ZXdheS1vcGVuc2hpZnQtZGVmYXVsdA==","x-envoy-peer-metadata-id":"router~10.133.0.29~maas-default-gateway-openshift-default-8559cd5744-6vdsv.openshift-ingress~openshift-ingress.svc.cluster.local","x-forwarded-for":"10.133.0.32","x-forwarded-proto":"https","x-maas-subscription":"simulator-subscription","x-request-id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8"},"host":"maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local","id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","method":"GET","path":"/llm/facebook-opt-125m-simulated/v1/models","protocol":"HTTP/1.1","scheme":"https","time":{"nanos":378255885,"seconds":1781286601},"url_path":"/llm/facebook-opt-125m-simulated/v1/models","user_agent":"Go-http-client/1.1"},"source":{"address":"10.133.0.32:40448","port":40448}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","config":{"Name":"X-MaaS-Group","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","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_str","Value":{}},{"Name":"userid","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","Engineering","Project-Alpha"],"groups_str":"system:authenticated,Engineering,Project-Alpha","keyId":"c5e5740b-3ec7-49a4-a838-64f72ce48f97","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"aaa22cb6-a9a0-4207-b001-2159ad9c9eb8","authorized":true,"response":"OK"} {"level":"info","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"245d7710-8279-4351-8469-25c0dbf9a942","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56788","PortSpecifier":{"PortValue":56788}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"245d7710-8279-4351-8469-25c0dbf9a942","method":"POST","path":"/maas-api/v1/api-keys","host":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"245d7710-8279-4351-8469-25c0dbf9a942","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.11:56788","PortSpecifier":{"PortValue":56788}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.133.0.29:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1781286601,"nanos":479472628},"http":{"id":"245d7710-8279-4351-8469-25c0dbf9a942","method":"POST","headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"245d7710-8279-4351-8469-25c0dbf9a942","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":1781286901,"groups":["Engineering","Project-Alpha"],"iat":1781286601,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:172fc64a-1e2c-85ce-ed66-04acee7166d2","preferred_username":"alice_lead","scope":"profile email","sid":"kChH115rMK-JXP1PD2ZTQv3n","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"245d7710-8279-4351-8469-25c0dbf9a942","input":{"auth":{"identity":{"acr":"1","allowed-origins":["*"],"azp":"test-client","email_verified":true,"exp":1781286901,"groups":["Engineering","Project-Alpha"],"iat":1781286601,"iss":"https://keycloak.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.prod.konfluxeaas.com/realms/tenant-a","jti":"onrtro:172fc64a-1e2c-85ce-ed66-04acee7166d2","preferred_username":"alice_lead","scope":"profile email","sid":"kChH115rMK-JXP1PD2ZTQv3n","sub":"45f1c159-684a-49cc-b6b7-1c90a46870fc","typ":"Bearer"}},"context":{"context_extensions":{"host":"4b78668c68e506f3e4245c5d1f1af6820d0987e90bac1b37e2a03d21cc7ed38d"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.133.0.29:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"maas.apps.f9d26dba-34eb-4abf-8200-d2a0fd8ed7ad.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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"245d7710-8279-4351-8469-25c0dbf9a942","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"245d7710-8279-4351-8469-25c0dbf9a942","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"245d7710-8279-4351-8469-25c0dbf9a942","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"245d7710-8279-4351-8469-25c0dbf9a942","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":"selected_subscription_key","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"245d7710-8279-4351-8469-25c0dbf9a942","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-12T17:50:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"245d7710-8279-4351-8469-25c0dbf9a942","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-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"245d7710-8279-4351-8469-25c0dbf9a942","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-06-12T17:50:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"245d7710-8279-4351-8469-25c0dbf9a942","authorized":true,"response":"OK"}