Write Safely. Switch Instantly.
Build complex policies in a visual UI, then instantly switch to DSL — or start with code and refine in form. Keymate keeps both modes in sync and secure.
Write Safely. Switch Instantly.
How Inline Authoring Works
Inline Policy Authoring in Keymate lets users define policies directly within permission workflows — using either form-based UI or direct DSL entry. The two modes are kept in sync using a shared Abstract Syntax Tree (AST) structure. Users can preview how their visual inputs convert to DSL, or toggle into form mode from written logic for safety checks, localization, or guided edits.
Bi-directional Sync
Visual Mode: user.department = "Legal", context.ip NOT IN ["vpn"]. DSL Mode: user.department == "Legal" && !context.ip.startsWith("vpn")
Why It's Unique in Keymate
Bi-directional Visual ↔ DSL Toggle
Seamlessly switch between UI and text with full parity.
Inline Authoring in Permissions UI
Define policies directly while assigning or updating permissions.
Expression Preview & Sync
View DSL live while editing in form mode (or vice versa).
AST-Based Expression Handling
Backend and frontend share the same underlying expression tree for consistency.
Sandboxed DSL Evaluation
Prevent malformed or dangerous input with secure syntax validation.
Scoped Input Modes
Hide/show policy fields depending on context (e.g. for tenant, time, risk).
Frequently Asked Questions
How to Use This Feature
Follow these simple steps to use inline authoring.