[discourse] Authorization configuration #4328
-
Originally posted by wahyugnc on Discourse Hello Team, Currently, I am trying to enable authorization, but it is not activating even though I have enabled the feature, but not work bash set FLIPT_AUTHORIZATION_REQUIRED=true Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 20 comments
-
I wasn't able to find documentation or code references that explain why authorization isn't activating or detail the correct setup for the local authorization backend and policy.rego file. I tried searching both the docs and the codebase, but didn't find any relevant guidance or troubleshooting steps. Could you share more details about your Flipt version, how you're running it (Docker, binary, etc.), and any logs or errors you see? That info might help pinpoint the issue. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Reply from mark on Discourse: Hey @wahyugnc ! sorry for the delay in responding. I need to enable notifications for this Discourse platform. May I ask which version of Flipt server you are running? |
Beta Was this translation helpful? Give feedback.
-
Reply from mark on Discourse: Also are you able to post the contents of |
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: Hi @mark , I use flipt version |
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: Same with example
|
Beta Was this translation helpful? Give feedback.
-
Reply from mark on Discourse: Hmm ok. Can you set |
Beta Was this translation helpful? Give feedback.
-
Reply from mark on Discourse: AH we found the issue its an issue on our end. we left the |
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: Sori i’m late, this is log
|
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: Is this not in the documentation yet? |
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: and how do I put policy.rego in experimental ? |
Beta Was this translation helpful? Give feedback.
-
Reply from mark on Discourse: We just released a fix in v1.46.2. If you upgrade to this version you shouldn’t have to mess w experimental at all. Sorry about that |
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: thank you for helping me, i have another problem, if i integrate oidc keycloak, then i also enable static token, if using api which token to use? is aceessToken oidc or static token? I tried both but it didn’t work |
Beta Was this translation helpful? Give feedback.
-
Reply from george on Discourse: Hey Wahyugnc! Static tokens should work. OIDC is primarily intended for the UI and browser session authentication. Which Flipt clients are you using? or if you’re using a hand rolled one, how are you presenting the static token on the requests? |
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: Hi @george , I am trying to use flipt api, with sample request,
response
The following is an example of a Yaml config
Is there something wrong with my configuration? |
Beta Was this translation helpful? Give feedback.
-
Reply from george on Discourse: Thanks for sharing that @wahyugnc ! On initial glance I can’t see anything immediately obvious. Just to clarify, you’re putting your static token where the |
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: Yes, static token |
Beta Was this translation helpful? Give feedback.
-
Reply from george on Discourse: Do you have access to the UI by loging in with keycloak? Or does that also not work? Im wondering if perhaps your bootstrap token is not what you expect. It only gets respected the first time you run Flipt, if its empty the first time, it makes a random one up and logs that on first load. |
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: Yes, access to the UI with keycloak is succesfully, i generate new token from the UI, but the token is not valid, this is example log
|
Beta Was this translation helpful? Give feedback.
-
Reply from wahyugnc on Discourse: Hi, @george , i try to restart flipt and i can call the api, maybe cache issue ?, i already activate cache config |
Beta Was this translation helpful? Give feedback.
-
Reply from george on Discourse: Hey @wahyugnc ! Interesting! So after a restart it works, and you have the (redis? or memory?) cache enabled? |
Beta Was this translation helpful? Give feedback.
Reply from mark on Discourse:
We just released a fix in v1.46.2. If you upgrade to this version you shouldn’t have to mess w experimental at all. Sorry about that