

FGA policies now support two new special variables—check_ctx
and warrant_ctx
—along with a new helper function, get_metadata
. Use check_ctx
to access information about the current access check (e.g., resource_type, resource_id), and warrant_ctx
to reference warrants attributes matched during evaluation. The get_metadata
helper lets you fetch resource metadata directly within a policy, eliminating the need to pass those values manually via the context parameter. Together, these additions make it easier to write dynamic, context-aware policies. View the FGA docs for more information.