Open fayak opened 9 months ago
You cannot bind a policy to a stage in authentik at all, the policy can only be bound to the binding of a stage to a flow. You can use the ID of the flow stage binding as a target in the policy binding: https://registry.terraform.io/providers/goauthentik/authentik/latest/docs/resources/flow_stage_binding
you can bind a policy to the flow stage binding and I assume that's the thing that @fayak was reffering to the problem with that there is no data authentik_flow_stage_binding, so you can only do that to your created authentik_flow_stage_binding
Hi,
I'm trying to follow https://goauthentik.io/integrations/sources/google/#username-mapping as code. I came up with this:
The
authentik_policy_binding
doesn't seems to like mytarget
argument. I tried creating manually the binding, and importing it, I now have an ID fortarget
that doesn't match anything. I tried dumping authentik DB to see where this ID is mentioned, and it's mentioned only once, in the tablepublic.authentik_flows_flowstagebinding
.I think there is no way to bind an expression policy to a stage currently