{"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"False","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"HostsNotLinked","message":"No hosts linked to the resource"},{"type":"Ready","status":"False","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"Reconciling"}],"summary":{"ready":false,"hostsReady":[],"numHostsReady":"0/1","numIdentitySources":2,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99"} {"level":"error","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"failed to update the resource","authconfig":{"name":"926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99","namespace":"kuadrant-system"},"error":"Operation cannot be fulfilled on authconfigs.authorino.kuadrant.io \"926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99\": the object has been modified; please apply your changes to the latest version and try again","stacktrace":"github.com/kuadrant/authorino/controllers.(*AuthConfigStatusUpdater).updateAuthConfigStatus\n\t/usr/src/authorino/controllers/auth_config_status_updater.go:162\ngithub.com/kuadrant/authorino/controllers.(*AuthConfigStatusUpdater).Reconcile\n\t/usr/src/authorino/controllers/auth_config_status_updater.go:81\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227"} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99"} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99"],"numHostsReady":"1/1","numIdentitySources":2,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"False","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"HostsNotLinked","message":"No hosts linked to the resource"},{"type":"Ready","status":"False","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"Reconciling"}],"summary":{"ready":false,"hostsReady":[],"numHostsReady":"0/1","numIdentitySources":2,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48"} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48"],"numHostsReady":"1/1","numIdentitySources":2,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99"} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48"} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"aa3c416b6cd276a5af9578b7a9a484e472159ce72d2910a0c309e90914bde4e1","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/aa3c416b6cd276a5af9578b7a9a484e472159ce72d2910a0c309e90914bde4e1"} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"False","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"HostsNotLinked","message":"No hosts linked to the resource"},{"type":"Ready","status":"False","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"Reconciling"}],"summary":{"ready":false,"hostsReady":[],"numHostsReady":"0/1","numIdentitySources":2,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"3c7c3eb099d3a14994cfb3c7aca199d842a7db60660dd88c57696e7f8e4184f7","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369"} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"bc97ff71038105f7834cdbfcaf4ff74f46864ac031af31f92e274a06d3a55af7","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369"],"numHostsReady":"1/1","numIdentitySources":2,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/3c7c3eb099d3a14994cfb3c7aca199d842a7db60660dd88c57696e7f8e4184f7"} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"bf613bebe81ecfb4c2c744048942f2bc069ceeb6dde3669b97e0db44766733df","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"be9e4d33e09b26ce001e9c4fb2f5e5bd48c3693f0009efca170e3a641d612455","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"False","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"HostsNotLinked","message":"No hosts linked to the resource"},{"type":"Ready","status":"False","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"Reconciling"}],"summary":{"ready":false,"hostsReady":[],"numHostsReady":"0/1","numIdentitySources":2,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369"} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/bc97ff71038105f7834cdbfcaf4ff74f46864ac031af31f92e274a06d3a55af7"} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status changed","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"},"authconfig/status":{"conditions":[{"type":"Available","status":"True","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"HostsLinked"},{"type":"Ready","status":"True","lastTransitionTime":"2026-07-09T17:29:37Z","reason":"Reconciled"}],"summary":{"ready":true,"hostsReady":["89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369"],"numHostsReady":"1/1","numIdentitySources":2,"numMetadataSources":2,"numAuthorizationPolicies":4,"numResponseItems":6,"festivalWristbandEnabled":false}}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status updated","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"debug","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig.statusupdater","msg":"resource status did not change","authconfig":{"name":"89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369","namespace":"kuadrant-system"}} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/bf613bebe81ecfb4c2c744048942f2bc069ceeb6dde3669b97e0db44766733df"} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/be9e4d33e09b26ce001e9c4fb2f5e5bd48c3693f0009efca170e3a641d612455"} {"level":"info","ts":"2026-07-09T17:29:37Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"kuadrant-system/89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369"} {"level":"info","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7d248839-e42f-459c-bd68-a0932b62755f","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40338","PortSpecifier":{"PortValue":40338}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"7d248839-e42f-459c-bd68-a0932b62755f","method":"POST","path":"/maas-api/v1/api-keys","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7d248839-e42f-459c-bd68-a0932b62755f","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40338","PortSpecifier":{"PortValue":40338}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618181,"nanos":182145164},"http":{"id":"7d248839-e42f-459c-bd68-a0932b62755f","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.identity.kubernetesauth","msg":"calling kubernetes token review api","request id":"7d248839-e42f-459c-bd68-a0932b62755f","tokenreview":{"name":""}} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"7d248839-e42f-459c-bd68-a0932b62755f","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":[]},"object":{"authenticated":true,"user":{"username":"system:serviceaccount:default:tester-regular-user","uid":"c9082093-e9af-435d-ac3f-90fe97c44eac","groups":["system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"extra":{"authentication.kubernetes.io/credential-id":["JTI=5fca02f2-5069-42e8-973b-defdbc9d7ea6"]}},"audiences":["https://prod-eaas-bucket.s3.us-east-1.amazonaws.com/466268780955"]}} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"7d248839-e42f-459c-bd68-a0932b62755f","input":{"auth":{"identity":{"audiences":["https://prod-eaas-bucket.s3.us-east-1.amazonaws.com/466268780955"],"authenticated":true,"user":{"extra":{"authentication.kubernetes.io/credential-id":["JTI=5fca02f2-5069-42e8-973b-defdbc9d7ea6"]},"groups":["system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"uid":"c9082093-e9af-435d-ac3f-90fe97c44eac","username":"system:serviceaccount:default:tester-regular-user"}}},"context":{"context_extensions":{"host":"e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.134.0.59:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7d248839-e42f-459c-bd68-a0932b62755f","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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7d248839-e42f-459c-bd68-a0932b62755f","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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7d248839-e42f-459c-bd68-a0932b62755f","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"7d248839-e42f-459c-bd68-a0932b62755f","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"keyName","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7d248839-e42f-459c-bd68-a0932b62755f","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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7d248839-e42f-459c-bd68-a0932b62755f","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":"system:serviceaccount:default:tester-regular-user"} {"level":"info","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7d248839-e42f-459c-bd68-a0932b62755f","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7d248839-e42f-459c-bd68-a0932b62755f","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:34946","PortSpecifier":{"PortValue":34946}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.52:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","method":"POST","path":"/maas-api/v1/api-keys","host":"e2e-shared-b-ba9b25.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:34946","PortSpecifier":{"PortValue":34946}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.52:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618181,"nanos":248615234},"http":{"id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","method":"POST","headers":{":authority":"e2e-shared-b-ba9b25.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.identity.kubernetesauth","msg":"calling kubernetes token review api","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","tokenreview":{"name":""}} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","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":[]},"object":{"authenticated":true,"user":{"username":"system:serviceaccount:default:tester-regular-user","uid":"c9082093-e9af-435d-ac3f-90fe97c44eac","groups":["system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"extra":{"authentication.kubernetes.io/credential-id":["JTI=5fca02f2-5069-42e8-973b-defdbc9d7ea6"]}},"audiences":["https://prod-eaas-bucket.s3.us-east-1.amazonaws.com/466268780955"]}} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","input":{"auth":{"identity":{"audiences":["https://prod-eaas-bucket.s3.us-east-1.amazonaws.com/466268780955"],"authenticated":true,"user":{"extra":{"authentication.kubernetes.io/credential-id":["JTI=5fca02f2-5069-42e8-973b-defdbc9d7ea6"]},"groups":["system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"uid":"c9082093-e9af-435d-ac3f-90fe97c44eac","username":"system:serviceaccount:default:tester-regular-user"}}},"context":{"context_extensions":{"host":"ac52af489be91f5d943d28845cad65ed9cc4f2d08c83184e41617a463d17d71e"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.52:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"e2e-shared-b-ba9b25.apps.1aa61c6d-fe41-4ec3-9219-466268780955.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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-b-ba9b25/rate-test-model-ba9b25\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","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":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","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":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"info","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"31c03e7a-98e0-452b-9830-c3d2036d8eea","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40344","PortSpecifier":{"PortValue":40344}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40344","PortSpecifier":{"PortValue":40344}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618181,"nanos":290455814},"http":{"id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ\"}"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","subscription":"e2e-rate-iso-a-7d6bb6","tenant":"e2e-shared-a-553a9f","userId":"0745f138-bb69-468c-9b2e-a03eb6311793","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-7d6bb6\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","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-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","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":"e2e-rate-iso-a-7d6bb6"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","selected_subscription":"e2e-rate-iso-a-7d6bb6","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-7d6bb6@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:41Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"65dbe6b7-e44c-4026-b62b-a7f3580e7436","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40348","PortSpecifier":{"PortValue":40348}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"ab902cda-b0a6-4a17-b443-f1a221f11176","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40348","PortSpecifier":{"PortValue":40348}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618182,"nanos":358299858},"http":{"id":"ab902cda-b0a6-4a17-b443-f1a221f11176","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ"} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ\"}"} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","subscription":"e2e-rate-iso-a-7d6bb6","tenant":"e2e-shared-a-553a9f","userId":"0745f138-bb69-468c-9b2e-a03eb6311793","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-7d6bb6\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","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-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","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-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","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-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","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":"e2e-rate-iso-a-7d6bb6"} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","selected_subscription":"e2e-rate-iso-a-7d6bb6","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-7d6bb6@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:42Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"ab902cda-b0a6-4a17-b443-f1a221f11176","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40364","PortSpecifier":{"PortValue":40364}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40364","PortSpecifier":{"PortValue":40364}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618183,"nanos":395150178},"http":{"id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ"} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ\"}"} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","subscription":"e2e-rate-iso-a-7d6bb6","tenant":"e2e-shared-a-553a9f","userId":"0745f138-bb69-468c-9b2e-a03eb6311793","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-7d6bb6\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","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-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","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-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","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-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","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":"e2e-rate-iso-a-7d6bb6"} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","selected_subscription":"e2e-rate-iso-a-7d6bb6","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-7d6bb6@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:43Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"651082ad-354e-45ae-b7f1-22ea538ef8d7","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40380","PortSpecifier":{"PortValue":40380}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40380","PortSpecifier":{"PortValue":40380}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618184,"nanos":436579818},"http":{"id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ"} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ\"}"} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","subscription":"e2e-rate-iso-a-7d6bb6","tenant":"e2e-shared-a-553a9f","userId":"0745f138-bb69-468c-9b2e-a03eb6311793","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-7d6bb6\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","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-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","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-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","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-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","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":"e2e-rate-iso-a-7d6bb6"} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","selected_subscription":"e2e-rate-iso-a-7d6bb6","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-7d6bb6@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:44Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"e9890d7d-0a3a-4d8b-92ba-b0c80ffd558e","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40396","PortSpecifier":{"PortValue":40396}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40396","PortSpecifier":{"PortValue":40396}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618185,"nanos":480708599},"http":{"id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ"} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ\"}"} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","subscription":"e2e-rate-iso-a-7d6bb6","tenant":"e2e-shared-a-553a9f","userId":"0745f138-bb69-468c-9b2e-a03eb6311793","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-7d6bb6\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","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-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","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-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","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-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","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":"e2e-rate-iso-a-7d6bb6"} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","selected_subscription":"e2e-rate-iso-a-7d6bb6","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-7d6bb6@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:45Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7fdfbb5e-13c7-4777-84fe-96935737f27b","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40398","PortSpecifier":{"PortValue":40398}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"2ef97933-e67d-4d77-85d2-165d0a797e32","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40398","PortSpecifier":{"PortValue":40398}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618186,"nanos":523346777},"http":{"id":"2ef97933-e67d-4d77-85d2-165d0a797e32","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ"} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ\"}"} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","subscription":"e2e-rate-iso-a-7d6bb6","tenant":"e2e-shared-a-553a9f","userId":"0745f138-bb69-468c-9b2e-a03eb6311793","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-7d6bb6\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","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-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","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-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","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-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","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":"e2e-rate-iso-a-7d6bb6"} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","selected_subscription":"e2e-rate-iso-a-7d6bb6","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-7d6bb6@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:46Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"2ef97933-e67d-4d77-85d2-165d0a797e32","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40402","PortSpecifier":{"PortValue":40402}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40402","PortSpecifier":{"PortValue":40402}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618187,"nanos":563644068},"http":{"id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ"} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ\"}"} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","subscription":"e2e-rate-iso-a-7d6bb6","tenant":"e2e-shared-a-553a9f","userId":"0745f138-bb69-468c-9b2e-a03eb6311793","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-7d6bb6\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","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-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","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-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","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-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","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":"e2e-rate-iso-a-7d6bb6"} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","selected_subscription":"e2e-rate-iso-a-7d6bb6","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-7d6bb6@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:47Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"7f184fe1-80b6-4575-9237-92417f3a9d8f","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40416","PortSpecifier":{"PortValue":40416}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"4689128f-45b4-4bd3-9d88-5612afd35a17","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40416","PortSpecifier":{"PortValue":40416}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618188,"nanos":603494096},"http":{"id":"4689128f-45b4-4bd3-9d88-5612afd35a17","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ"} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ\"}"} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","subscription":"e2e-rate-iso-a-7d6bb6","tenant":"e2e-shared-a-553a9f","userId":"0745f138-bb69-468c-9b2e-a03eb6311793","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-7d6bb6\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","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-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","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-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","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-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","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":"e2e-rate-iso-a-7d6bb6"} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","selected_subscription":"e2e-rate-iso-a-7d6bb6","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-7d6bb6@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:48Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"4689128f-45b4-4bd3-9d88-5612afd35a17","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"48946901-5f28-4493-b509-bcf381a4490b","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40430","PortSpecifier":{"PortValue":40430}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"48946901-5f28-4493-b509-bcf381a4490b","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"48946901-5f28-4493-b509-bcf381a4490b","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:40430","PortSpecifier":{"PortValue":40430}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618189,"nanos":638759608},"http":{"id":"48946901-5f28-4493-b509-bcf381a4490b","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"48946901-5f28-4493-b509-bcf381a4490b","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ"} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"48946901-5f28-4493-b509-bcf381a4490b","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-ze99ad9e9gmgakcj_hpdlujmEBNqx7AK35l7MP6mxXojBZqq2hr8xJ0s01gJ\"}"} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"48946901-5f28-4493-b509-bcf381a4490b","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","subscription":"e2e-rate-iso-a-7d6bb6","tenant":"e2e-shared-a-553a9f","userId":"0745f138-bb69-468c-9b2e-a03eb6311793","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"48946901-5f28-4493-b509-bcf381a4490b","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-7d6bb6\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"48946901-5f28-4493-b509-bcf381a4490b","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"48946901-5f28-4493-b509-bcf381a4490b","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"48946901-5f28-4493-b509-bcf381a4490b","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-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"48946901-5f28-4493-b509-bcf381a4490b","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-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"48946901-5f28-4493-b509-bcf381a4490b","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-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"48946901-5f28-4493-b509-bcf381a4490b","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"48946901-5f28-4493-b509-bcf381a4490b","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":"e2e-rate-iso-a-7d6bb6"} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"48946901-5f28-4493-b509-bcf381a4490b","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"48946901-5f28-4493-b509-bcf381a4490b","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"48946901-5f28-4493-b509-bcf381a4490b","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"0745f138-bb69-468c-9b2e-a03eb6311793","keyName":"e2e-rate-a-7d6bb6","selected_subscription":"e2e-rate-iso-a-7d6bb6","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-7d6bb6@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-7d6bb6","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"48946901-5f28-4493-b509-bcf381a4490b","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:49Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"48946901-5f28-4493-b509-bcf381a4490b","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:52372","PortSpecifier":{"PortValue":52372}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"b31016ce-3a50-4205-82fc-99d8c8858cff","method":"POST","path":"/maas-api/v1/api-keys","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:52372","PortSpecifier":{"PortValue":52372}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618198,"nanos":354156754},"http":{"id":"b31016ce-3a50-4205-82fc-99d8c8858cff","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.identity.kubernetesauth","msg":"calling kubernetes token review api","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","tokenreview":{"name":""}} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","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":[]},"object":{"authenticated":true,"user":{"username":"system:serviceaccount:default:tester-regular-user","uid":"c9082093-e9af-435d-ac3f-90fe97c44eac","groups":["system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"extra":{"authentication.kubernetes.io/credential-id":["JTI=5fca02f2-5069-42e8-973b-defdbc9d7ea6"]}},"audiences":["https://prod-eaas-bucket.s3.us-east-1.amazonaws.com/466268780955"]}} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","input":{"auth":{"identity":{"audiences":["https://prod-eaas-bucket.s3.us-east-1.amazonaws.com/466268780955"],"authenticated":true,"user":{"extra":{"authentication.kubernetes.io/credential-id":["JTI=5fca02f2-5069-42e8-973b-defdbc9d7ea6"]},"groups":["system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"uid":"c9082093-e9af-435d-ac3f-90fe97c44eac","username":"system:serviceaccount:default:tester-regular-user"}}},"context":{"context_extensions":{"host":"e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.134.0.59:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"keyName","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyId","Value":{}},{"Name":"groups","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription_key","Value":{}},{"Name":"subscription_error","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","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":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"info","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"b31016ce-3a50-4205-82fc-99d8c8858cff","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:51782","PortSpecifier":{"PortValue":51782}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.52:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","method":"POST","path":"/maas-api/v1/api-keys","host":"e2e-shared-b-ba9b25.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:51782","PortSpecifier":{"PortValue":51782}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.52:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618198,"nanos":394068538},"http":{"id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","method":"POST","headers":{":authority":"e2e-shared-b-ba9b25.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/maas-api/v1/api-keys",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.identity.kubernetesauth","msg":"calling kubernetes token review api","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","tokenreview":{"name":""}} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","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":[]},"object":{"authenticated":true,"user":{"username":"system:serviceaccount:default:tester-regular-user","uid":"c9082093-e9af-435d-ac3f-90fe97c44eac","groups":["system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"extra":{"authentication.kubernetes.io/credential-id":["JTI=5fca02f2-5069-42e8-973b-defdbc9d7ea6"]}},"audiences":["https://prod-eaas-bucket.s3.us-east-1.amazonaws.com/466268780955"]}} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","input":{"auth":{"identity":{"audiences":["https://prod-eaas-bucket.s3.us-east-1.amazonaws.com/466268780955"],"authenticated":true,"user":{"extra":{"authentication.kubernetes.io/credential-id":["JTI=5fca02f2-5069-42e8-973b-defdbc9d7ea6"]},"groups":["system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"uid":"c9082093-e9af-435d-ac3f-90fe97c44eac","username":"system:serviceaccount:default:tester-regular-user"}}},"context":{"context_extensions":{"host":"ac52af489be91f5d943d28845cad65ed9cc4f2d08c83184e41617a463d17d71e"},"destination":{"address":{"Address":{"SocketAddress":{"PortSpecifier":{"PortValue":443},"address":"10.132.0.52:443"}}}},"metadata_context":{},"request":{"http":{"headers":{":authority":"e2e-shared-b-ba9b25.apps.1aa61c6d-fe41-4ec3-9219-466268780955.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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-b-ba9b25/rate-test-model-ba9b25\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"cannot build dynamic response","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","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":"subscription_error_message","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}}]},"Plain":null},"reason":"no such key: metadata"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","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":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"info","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"0b2b366e-daf7-4d15-b683-0e6dfc041a29","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:52382","PortSpecifier":{"PortValue":52382}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:52382","PortSpecifier":{"PortValue":52382}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618198,"nanos":430743646},"http":{"id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:58Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"345ed16c-e30f-4125-a6d6-43c16ba61dd6","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:52394","PortSpecifier":{"PortValue":52394}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:52394","PortSpecifier":{"PortValue":52394}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618199,"nanos":468469246},"http":{"id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","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-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","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-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","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-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:29:59Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"0bdbcd4f-db45-44c9-844c-dc45cf9cfadd","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45342","PortSpecifier":{"PortValue":45342}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"4eebf366-33f6-4999-bda9-a9b076910a54","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45342","PortSpecifier":{"PortValue":45342}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618200,"nanos":503706254},"http":{"id":"4eebf366-33f6-4999-bda9-a9b076910a54","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","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-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","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-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","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-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"info","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:00Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"4eebf366-33f6-4999-bda9-a9b076910a54","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45350","PortSpecifier":{"PortValue":45350}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45350","PortSpecifier":{"PortValue":45350}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618201,"nanos":552344936},"http":{"id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","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-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","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-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","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-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:01Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"2d92f1ee-102a-4f04-b22f-05ed34f6d011","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"b90e6604-6287-4167-820c-47faa9376224","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45352","PortSpecifier":{"PortValue":45352}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"b90e6604-6287-4167-820c-47faa9376224","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"b90e6604-6287-4167-820c-47faa9376224","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45352","PortSpecifier":{"PortValue":45352}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618202,"nanos":615537465},"http":{"id":"b90e6604-6287-4167-820c-47faa9376224","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"b90e6604-6287-4167-820c-47faa9376224","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"b90e6604-6287-4167-820c-47faa9376224","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"b90e6604-6287-4167-820c-47faa9376224","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"b90e6604-6287-4167-820c-47faa9376224","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"b90e6604-6287-4167-820c-47faa9376224","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"b90e6604-6287-4167-820c-47faa9376224","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"b90e6604-6287-4167-820c-47faa9376224","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-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"b90e6604-6287-4167-820c-47faa9376224","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-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"b90e6604-6287-4167-820c-47faa9376224","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"b90e6604-6287-4167-820c-47faa9376224","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-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"b90e6604-6287-4167-820c-47faa9376224","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"b90e6604-6287-4167-820c-47faa9376224","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"b90e6604-6287-4167-820c-47faa9376224","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"b90e6604-6287-4167-820c-47faa9376224","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"b90e6604-6287-4167-820c-47faa9376224","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:02Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"b90e6604-6287-4167-820c-47faa9376224","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45358","PortSpecifier":{"PortValue":45358}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45358","PortSpecifier":{"PortValue":45358}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618203,"nanos":656558486},"http":{"id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","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-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","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-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","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-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:03Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"9d680fec-86fd-40e4-a240-b6dd61e12f20","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45366","PortSpecifier":{"PortValue":45366}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45366","PortSpecifier":{"PortValue":45366}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618204,"nanos":697517667},"http":{"id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","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-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","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-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","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-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:04Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"5ac9fb35-5a9b-42b3-83cc-47f04b554af1","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45382","PortSpecifier":{"PortValue":45382}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"88f372ea-e781-45c9-9677-51c6b267aeb4","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45382","PortSpecifier":{"PortValue":45382}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618205,"nanos":734950284},"http":{"id":"88f372ea-e781-45c9-9677-51c6b267aeb4","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","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-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","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-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","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-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:05Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"88f372ea-e781-45c9-9677-51c6b267aeb4","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45394","PortSpecifier":{"PortValue":45394}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"ee3922cd-18cc-47d3-a508-e88ef4073990","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45394","PortSpecifier":{"PortValue":45394}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618206,"nanos":772115115},"http":{"id":"ee3922cd-18cc-47d3-a508-e88ef4073990","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","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-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","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-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","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-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:06Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"ee3922cd-18cc-47d3-a508-e88ef4073990","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45406","PortSpecifier":{"PortValue":45406}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"133aa086-16e8-4f3a-9155-d5d683c486fb","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45406","PortSpecifier":{"PortValue":45406}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618207,"nanos":810979816},"http":{"id":"133aa086-16e8-4f3a-9155-d5d683c486fb","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","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-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","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-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","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-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:07Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"133aa086-16e8-4f3a-9155-d5d683c486fb","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45410","PortSpecifier":{"PortValue":45410}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","method":"POST","path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions","host":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:45410","PortSpecifier":{"PortValue":45410}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.134.0.59:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618208,"nanos":855417822},"http":{"id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","method":"POST","headers":{":authority":"e2e-shared-a-553a9f.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-4Hi1sNnbQJCI05b9_KUw5HLC6673jv4PLD9o6pv32AFt4aKKx49xiZ5Y4kuP\"}"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","subscription":"e2e-rate-iso-a-885194","tenant":"e2e-shared-a-553a9f","userId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-a-553a9f.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\",\"requestedSubscription\":\"e2e-rate-iso-a-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","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-e2e-shared-a-553a9f.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","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-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","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-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","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-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","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":"e2e-rate-iso-a-885194"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error_message","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"groups","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"keyId","Value":{}},{"Name":"subscription_error","Value":{}},{"Name":"userid","Value":{}},{"Name":"keyName","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"e1020567-a2b2-4ee2-89d9-08288cc8b306","keyName":"e2e-rate-a-885194","selected_subscription":"e2e-rate-iso-a-885194","selected_subscription_key":"ai-tenant-e2e-shared-a-553a9f/e2e-rate-iso-a-885194@ai-tenant-e2e-shared-a-553a9f/rate-test-model-553a9f","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-553a9f","source":"internal","token_rate_limits":[{"limit":3,"window":"1m"}]}],"name":"e2e-rate-iso-a-885194","namespace":"ai-tenant-e2e-shared-a-553a9f","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"f65a6bb8-1670-4064-a5d9-279c7c8d53fe","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:51746","PortSpecifier":{"PortValue":51746}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.52:443","PortSpecifier":{"PortValue":443}}}}},"request":{"http":{"id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","method":"POST","path":"/ai-tenant-e2e-shared-b-ba9b25/rate-test-model-ba9b25/v1/completions","host":"e2e-shared-b-ba9b25.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com","scheme":"https"}}}} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth","msg":"incoming authorization request","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","object":{"source":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.12:51746","PortSpecifier":{"PortValue":51746}}}}},"destination":{"address":{"Address":{"SocketAddress":{"address":"10.132.0.52:443","PortSpecifier":{"PortValue":443}}}}},"request":{"time":{"seconds":1783618208,"nanos":895148612},"http":{"id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","method":"POST","headers":{":authority":"e2e-shared-b-ba9b25.apps.1aa61c6d-fe41-4ec3-9219-466268780955.prod.konfluxeaas.com",":method":"POST",":path":"/ai-tenant-e2e-shared-b-ba9b25/rate-test-model-ba9b25/v1/completions",":scheme":"https","accept":"*/*","accept-encoding":"gzip, deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.identity","msg":"identity validated","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","config":{"Name":"api-keys","Priority":0,"Conditions":{"Left":{"Selector":"request.headers.authorization","Operator":5,"Value":"^Bearer **** sk-oai-JyEDd61AeepzGpNF_Tu7NLjxIgDdKGkUHwv3K8Wzo171FwHG2oq3AE1PuR0J"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","config":"apiKeyValidation","method":"POST","url":"https://maas-api-e2e-shared-b-ba9b25.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","headers":{"Content-Type":["application/json"]},"body":"{\"key\":\"sk-oai-JyEDd61AeepzGpNF_Tu7NLjxIgDdKGkUHwv3K8Wzo171FwHG2oq3AE1PuR0J\"}"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","config":{"Name":"apiKeyValidation","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Metrics":false,"Cache":{},"UserInfo":null,"UMA":null,"GenericHTTP":{"Endpoint":"https://maas-api-e2e-shared-b-ba9b25.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/api-keys/validate","DynamicEndpoint":null,"Method":"POST","Body":{},"Parameters":[],"Headers":[],"ContentType":"application/json","SharedSecret":"","OAuth2":null,"OAuth2TokenForceFetch":false,"AuthCredentials":null}},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"keyId":"bb2bcc98-fc1d-4463-81c9-6110ea4c06f8","keyName":"e2e-rate-b-885194","subscription":"e2e-rate-iso-b-885194","tenant":"e2e-shared-b-ba9b25","userId":"bb2bcc98-fc1d-4463-81c9-6110ea4c06f8","username":"system:serviceaccount:default:tester-regular-user","valid":true}} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.metadata.http","msg":"sending request","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","config":"subscription-info","method":"POST","url":"https://maas-api-e2e-shared-b-ba9b25.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select","headers":{"Content-Type":["application/json"]},"body":"{\"groups\":[\"system:authenticated\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"],\"requestedModel\":\"ai-tenant-e2e-shared-b-ba9b25/rate-test-model-ba9b25\",\"requestedSubscription\":\"e2e-rate-iso-b-885194\",\"username\":\"system:serviceaccount:default:tester-regular-user\"}"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.metadata","msg":"fetched auth metadata","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","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-e2e-shared-b-ba9b25.odh-ai-gateway-infra.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":{"modelRefs":[{"name":"rate-test-model-ba9b25","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"e2e-rate-iso-b-885194","namespace":"ai-tenant-e2e-shared-b-ba9b25","phase":"Active","ready":true}} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"evaluating for input","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","input":{"auth":{"identity":"Bearer **** deflate","authorization":"Bearer **** deflate","authorization":"Bearer **** {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","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-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","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-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","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-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.authorization","msg":"access granted","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","config":{"Name":"require-group-membership","Priority":0,"Conditions":{"Left":null,"Right":null},"Metrics":false,"Cache":{},"OPA":{"Rego":"\nmodel_access := {\"ai-tenant-e2e-shared-b-ba9b25/rate-test-model-ba9b25\":{\"users\":null,\"groups\":[\"system:authenticated\"]}}\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\tpath_parts[0] != \"v1\"\n\tpath_parts[0] != \"maas-api\"\n}\n\nraw_header_model_identity := object.get(request_headers, \"x-gateway-model-name\", \"\")\n\nheader_model_identity := sprintf(\"%s/%s\", [split(raw_header_model_identity, \"/\")[1], split(raw_header_model_identity, \"/\")[3]]) {\n\tstartswith(raw_header_model_identity, \"publishers/\")\n} else := raw_header_model_identity\n\nmodel_identity := path_model_identity {\n\tpath_model_identity != \"\"\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, /maas-api/v1/api-keys) carry no model context.\n# Allow them here; subscription and rate-limit checks are gated by model-route conditions.\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-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","config":{"Name":"X-MaaS-Group","Priority":0,"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\",\"system:serviceaccounts\",\"system:serviceaccounts:default\",\"system:authenticated\"]"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","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":"e2e-rate-iso-b-885194"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","config":{"Name":"X-MaaS-Username","Priority":0,"Conditions":{"Left":{},"Right":{"Left":null,"Right":null}},"Wrapper":"httpHeader","WrapperKey":"X-MaaS-Username","Metrics":false,"Cache":null,"Wristband":null,"DynamicJSON":null,"Plain":{"Value":{"Static":null,"Pattern":"auth.metadata.apiKeyValidation.username"}}},"object":"system:serviceaccount:default:tester-regular-user"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth.authpipeline.response","msg":"dynamic response built","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","config":{"Name":"identity","Priority":0,"Conditions":{"Left":null,"Right":null},"Wrapper":"envoyDynamicMetadata","WrapperKey":"identity","Metrics":true,"Cache":null,"Wristband":null,"DynamicJSON":{"Properties":[{"Name":"subscription_error","Value":{}},{"Name":"subscription_info","Value":{}},{"Name":"keyName","Value":{}},{"Name":"subscription_error_message","Value":{}},{"Name":"groups","Value":{}},{"Name":"keyId","Value":{}},{"Name":"userid","Value":{}},{"Name":"groups_str","Value":{}},{"Name":"selected_subscription","Value":{}},{"Name":"selected_subscription_key","Value":{}}]},"Plain":null},"object":{"groups":["system:authenticated","system:serviceaccounts","system:serviceaccounts:default","system:authenticated"],"groups_str":"system:authenticated,system:serviceaccounts,system:serviceaccounts:default,system:authenticated","keyId":"bb2bcc98-fc1d-4463-81c9-6110ea4c06f8","keyName":"e2e-rate-b-885194","selected_subscription":"e2e-rate-iso-b-885194","selected_subscription_key":"ai-tenant-e2e-shared-b-ba9b25/e2e-rate-iso-b-885194@ai-tenant-e2e-shared-b-ba9b25/rate-test-model-ba9b25","subscription_error":"","subscription_error_message":"","subscription_info":{"modelRefs":[{"name":"rate-test-model-ba9b25","source":"internal","token_rate_limits":[{"limit":100,"window":"1m"}]}],"name":"e2e-rate-iso-b-885194","namespace":"ai-tenant-e2e-shared-b-ba9b25","phase":"Active","ready":true},"userid":"system:serviceaccount:default:tester-regular-user"}} {"level":"info","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","authorized":true,"response":"OK"} {"level":"debug","ts":"2026-07-09T17:30:08Z","logger":"authorino.service.auth","msg":"outgoing authorization response","request id":"81789462-faa3-48ad-bb1c-0a166ef5d0fa","authorized":true,"response":"OK"} {"level":"info","ts":"2026-07-09T17:30:16Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/6d1962e1e50419a624a553de4ecbc10ce0491705f7ae34a87e1366463cd51b4f"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/015427a2ad7e8cf236cad1c4faaeccd5c6dd6f8b04692a418d763d31eff01654"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/66f36df008cbdc55962bc8baeccfb701acdece3e98c10b833842abc7cee1ef71"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/69182b473188cdca35aadadf702161ee750276eefe078230b75d61e0911643ac"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/0671a8bb2235e57da022ec837368607c751d44b01793c02c360e8407749dca8f"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/26a2cdc2a5ac8f13b4206b08f3d792d7a878184090cc999fe7ce2b31682219d1"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/ca4a06df5511cd5050d006a6a5949809da296036c36b443d21c624c65d428270"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/bc97ff71038105f7834cdbfcaf4ff74f46864ac031af31f92e274a06d3a55af7"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/e78c3321a54abf08f79e21b38c244795145c8f177a1f8117facdec527087aaf3"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/80d46227adac5fb10ab3cc10305079a1578167fedfcd306432c8152ce5270dad"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/ae56d5d99efee57bf201fdf3768215cca3a6c23f4598e4f754268c7d0502923a"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/aa3c416b6cd276a5af9578b7a9a484e472159ce72d2910a0c309e90914bde4e1"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/d89d8fe6f8d4922c641120240010235d1cf497808618e292238449b6deba2594"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/feff076925d8c0fd104318e27caf8116f6addc4831ef1cbf0b5c1da8974d9c00"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/3c7c3eb099d3a14994cfb3c7aca199d842a7db60660dd88c57696e7f8e4184f7"} {"level":"info","ts":"2026-07-09T17:30:17Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/bf613bebe81ecfb4c2c744048942f2bc069ceeb6dde3669b97e0db44766733df"} {"level":"info","ts":"2026-07-09T17:30:35Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/926d4a0d8249f7c561ce94b358b24ef6445447a68f44aab7630449750fc70a99"} {"level":"info","ts":"2026-07-09T17:30:35Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/89ce05d51339d4ea69e28296a3cd7955f7beecbaa3d7e2ac1418f26bf213b369"} {"level":"info","ts":"2026-07-09T17:30:35Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/e7fbc59aff234ae3b364022fb4707717e4afae9d30afbc7ba3c3fd46f92fbd48"} {"level":"info","ts":"2026-07-09T17:30:35Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/be9e4d33e09b26ce001e9c4fb2f5e5bd48c3693f0009efca170e3a641d612455"} {"level":"info","ts":"2026-07-09T17:30:43Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/1e030a1a20621ff266094ee8be8b56513470823c2456a9c167ae3206e995914c"} {"level":"info","ts":"2026-07-09T17:30:43Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/ac52af489be91f5d943d28845cad65ed9cc4f2d08c83184e41617a463d17d71e"} {"level":"info","ts":"2026-07-09T17:30:43Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/241194e96be84708746e8a244ac3568ae7c20beff60e7e2f7872ffb8696f19ec"} {"level":"info","ts":"2026-07-09T17:30:43Z","logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"kuadrant-system/e69441f6cd2975d356677524d617fbab7657d119abb62fabac0ae7f1e92b488c"}