-
I'm not seeing any sort of template support in the code, am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
For info: So in order to support this, we'd have to add a way to add extra params to render the final policies? Can you provide an example of how you'd like to configure this in the Cedarling? |
Beta Was this translation helpful? Give feedback.
-
IMHO, this would be faster, because you are removing the ABAC section of your policy:
In the Cedarling, you can use the role mapping feature. Unfortunately, we have not 100% finished the docs, but here is what we currently have! But here is some more info:
This page may also give you some insights into how and when the tokens are processed. BTW, Tarp has the Cedarling WASM in it, so you can test using that very quickly (running as a browser extension). IMHO this would be faster and easier to maintain. You can also group your actions, so instead of saying |
Beta Was this translation helpful? Give feedback.
-
Thank you. Our software allows users to create and modify arbitrary roles, so we cannot hardcode any roles, and each action will have a different approval process. The policy does not know the role at bootstrap time, nor will it until authorization requests occur from a signed-in user, and it instantiates a template. Here's an example of what our logic may look like.
The users will be able to modify the permission at any time: This prevents me from grouping the project permissions, or requiring the role to be known before making the first authz request. I may still be able to use the dynamically created roles that you mention, in the absence of template support |
Beta Was this translation helpful? Give feedback.
-
So you have created a document, and any person with Role51 should be able to View or Edit it? |
Beta Was this translation helpful? Give feedback.
-
I have created Role51, and any user on it should have relevant permissions on all projects: I have seen that design pattern, the design patterns page was quite helpful. Our models don't currently have relationships quite like that, but we may in the future. |
Beta Was this translation helpful? Give feedback.
-
@SafinWasi, any thoughts about the best way to design the policies for this? |
Beta Was this translation helpful? Give feedback.
I checked the notes, and this is on the roadmap, but we haven't done it yet. Any details you can provide about how you think it should work would be helpful.