Caching Keycloak responses question #479
-
Hi! :) I use the newest OPA version 0.55 and I still have a lot of requests to Keycloak and it seems to now work in my case. I found another issue which may be related to my problem: open-policy-agent/opa#2841 From response I have following headers:
Is there are still some problems with caching such responses with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Not that I'm aware of. Could you please provide a snippet for the full http.send request? Are you running OPA as a server or integrating via the Go API? |
Beta Was this translation helpful? Give feedback.
-
Yeah, sure - this is snippet:
This code make request for Keycloak token of user. I want to create some OPA access rules based on roles etc. in such JWT token. My approach is to get token "inside" OPA and cache it so I don't have to make request to Keycloak each time user make request :) I'm running OPA server with envoy and REST API as backend. |
Beta Was this translation helpful? Give feedback.
@anderseknert - The issue has been identified and related to version 0.55, but it has been effectively resolved via an upgrade to version 0.56 (we are performing the tests). There was missing a date header and our first impression is that it works.